2026/02/09 Update
Added and activated PRCX. Updated PEPS. Full compile.
This commit is contained in:
@@ -215,7 +215,8 @@ Silvercloud
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pwfxp_def"
|
||||
#include "pwfxp_prc_race"
|
||||
//#include "pwfxp_prc_race"
|
||||
#include "inc_ecl"
|
||||
|
||||
|
||||
int PWFXP_GetLevel(object oPC)
|
||||
@@ -263,7 +264,7 @@ float PWFXP_GetECLModifier(object oPC)
|
||||
// 1. first time kill
|
||||
// 2. pc hitdice change (e.g. levelup)
|
||||
float fECLMod;
|
||||
fECLMod = IntToFloat(nHD) / (IntToFloat(nHD) + IntToFloat(GetECLMod(oPC)));
|
||||
fECLMod = IntToFloat(nHD) / (IntToFloat(nHD) + IntToFloat(GetECL(oPC)));
|
||||
SetLocalFloat(oPC,"PWFXP_ECL_MODIFIER", fECLMod);
|
||||
SetLocalInt(oPC,"PWFXP_ECL_HITDICE",nHD);
|
||||
return fECLMod;
|
||||
@@ -443,7 +444,8 @@ void main()
|
||||
// get group bonus modifier
|
||||
fGroupBonusModifier = PWFXP_GetGroupBonusModifier(nGroupSize);
|
||||
// get subrace ECL modifier
|
||||
fECLModifier = PWFXP_GetECLModifier(oGroupMbr);
|
||||
fECLModifier = IntToFloat(GetECL(oGroupMbr));
|
||||
//fECLModifier = PWFXP_GetECLModifier(oGroupMbr);
|
||||
// calculate final modifier
|
||||
fFinalModifier = fLevelModifier * fDistanceModifier * fCRModifier * fMiscModifier * fGroupBonusModifier * fECLModifier;
|
||||
|
||||
@@ -455,7 +457,8 @@ void main()
|
||||
"%] CRD ["+IntToString((fCR-fMbrLevel) < 0.0) + "/" + IntToString(FloatToInt((fCRModifier-1)*100))+
|
||||
"%] MSC ["+IntToString(FloatToInt((fMiscModifier-1)*100))+
|
||||
"%] GRP ["+IntToString(FloatToInt((fGroupBonusModifier-1)*100))+
|
||||
"%] ECL ["+IntToString(FloatToInt((fECLModifier-1)*100))+
|
||||
//"%] ECL ["+IntToString(FloatToInt((fECLModifier-1)*100))+
|
||||
"%] ECL ["+IntToString(FloatToInt((fECLModifier)))+
|
||||
"%] GRS ["+IntToString(nGroupSize)+
|
||||
"] DIV ["+GetSubString(FloatToString(fDivisor),6,5) +
|
||||
"] FIN ["+IntToString(FloatToInt((fFinalModifier-1)*100))+
|
||||
|
||||
Reference in New Issue
Block a user