2025/05/02 Update

Updated Foresight to use EffectBonusFeat.
Updated PRCRemoveProtections to not dispel extraordinary & supernatural effects.
Expanded DAMAGE_BONUS cap to 50.
Expanded various functions to use new DAMAGE_BONUS cap.
This commit is contained in:
Jaysyn904
2025-05-02 14:38:26 -04:00
parent 9815ea91a1
commit 880d0e5527
14 changed files with 619 additions and 89 deletions

View File

@@ -75,7 +75,37 @@ void ControlObject(object oManifester, object oItem, float fDuration)
int nInt = GetAbilityModifier(ABILITY_INTELLIGENCE, oManifester);
// Work around for the damage bonus
int nDam;
if (nInt >= 20) nDam = DAMAGE_BONUS_20;
if (nInt >= 50) nDam = DAMAGE_BONUS_50;
else if (nInt == 49) nDam = DAMAGE_BONUS_49;
else if (nInt == 48) nDam = DAMAGE_BONUS_48;
else if (nInt == 47) nDam = DAMAGE_BONUS_47;
else if (nInt == 46) nDam = DAMAGE_BONUS_46;
else if (nInt == 45) nDam = DAMAGE_BONUS_45;
else if (nInt == 44) nDam = DAMAGE_BONUS_44;
else if (nInt == 43) nDam = DAMAGE_BONUS_43;
else if (nInt == 42) nDam = DAMAGE_BONUS_42;
else if (nInt == 41) nDam = DAMAGE_BONUS_41;
else if (nInt == 40) nDam = DAMAGE_BONUS_40;
else if (nInt == 39) nDam = DAMAGE_BONUS_39;
else if (nInt == 38) nDam = DAMAGE_BONUS_38;
else if (nInt == 37) nDam = DAMAGE_BONUS_37;
else if (nInt == 36) nDam = DAMAGE_BONUS_36;
else if (nInt == 35) nDam = DAMAGE_BONUS_35;
else if (nInt == 34) nDam = DAMAGE_BONUS_34;
else if (nInt == 33) nDam = DAMAGE_BONUS_33;
else if (nInt == 32) nDam = DAMAGE_BONUS_32;
else if (nInt == 31) nDam = DAMAGE_BONUS_31;
else if (nInt == 30) nDam = DAMAGE_BONUS_30;
else if (nInt == 29) nDam = DAMAGE_BONUS_29;
else if (nInt == 28) nDam = DAMAGE_BONUS_28;
else if (nInt == 27) nDam = DAMAGE_BONUS_27;
else if (nInt == 26) nDam = DAMAGE_BONUS_26;
else if (nInt == 25) nDam = DAMAGE_BONUS_25;
else if (nInt == 24) nDam = DAMAGE_BONUS_24;
else if (nInt == 23) nDam = DAMAGE_BONUS_23;
else if (nInt == 22) nDam = DAMAGE_BONUS_22;
else if (nInt == 21) nDam = DAMAGE_BONUS_21;
else if (nInt >= 20) nDam = DAMAGE_BONUS_20;
else if (nInt == 19) nDam = DAMAGE_BONUS_19;
else if (nInt == 18) nDam = DAMAGE_BONUS_18;
else if (nInt == 17) nDam = DAMAGE_BONUS_17;