Fixed Disease DC for Blightspawned

Fixed Disease DC for Blightspawned
Expanded IP_CONST_ONHIT_SAVEDC out to 70
Updated IPOnHitSaveDC() & IPDamageConstant() to handle expanded 2DAs
This commit is contained in:
Jaysyn904
2025-05-04 09:35:48 -04:00
parent 7d0dee5c5a
commit 67a896c808
3 changed files with 197 additions and 8 deletions

View File

@@ -713,7 +713,7 @@ const int IP_CONST_ONHIT_CASTSPELL_NIGHTSHADEPOISON = 201;
const int IP_CONST_ONHIT_CASTSPELL_LINGDMG = 202;
const int IP_CONST_CASTSPELL_ELDRITCH_GLAIVE_ONHIT = 205;
//:: DAMAGE_BONUS_
//:: DAMAGE_BONUS_ [iprp_damagecost.2da]
const int DAMAGE_BONUS_21 = 73;
const int DAMAGE_BONUS_22 = 74;
const int DAMAGE_BONUS_23 = 75;
@@ -745,7 +745,7 @@ const int DAMAGE_BONUS_48 = 100;
const int DAMAGE_BONUS_49 = 101;
const int DAMAGE_BONUS_50 = 102;
//:: IP_CONST_DAMAGEBONUS
//:: IP_CONST_DAMAGEBONUS [iprp_damagecost.2da]
const int IP_CONST_DAMAGEBONUS_11 = 21;
const int IP_CONST_DAMAGEBONUS_12 = 22;
const int IP_CONST_DAMAGEBONUS_13 = 23;
@@ -831,16 +831,68 @@ const int IP_CONST_DAMAGEBONUS_50 = 102;
// IP_CONST_IMMUNITYSPELL
const int IP_CONST_IMMUNITYSPELL_BOLT_WEB = 239;
const int IP_CONST_IMMUNITYSPELL_SHADOW_WEB = 240;
const int IP_CONST_IMMUNITYSPELL_BELETITH_WEB = 241;
const int IP_CONST_IMMUNITYSPELL_NS_WEB = 242;
// IP_CONST_ONHIT_SAVEDC
// IP_CONST_ONHIT_SAVEDC [iprp_onhitcost.2da]
const int IP_CONST_ONHIT_SAVEDC_10 = 10;
const int IP_CONST_ONHIT_SAVEDC_11 = 11;
const int IP_CONST_ONHIT_SAVEDC_12 = 12;
const int IP_CONST_ONHIT_SAVEDC_13 = 13;
const int IP_CONST_ONHIT_SAVEDC_15 = 15;
const int IP_CONST_ONHIT_SAVEDC_17 = 17;
const int IP_CONST_ONHIT_SAVEDC_19 = 19;
const int IP_CONST_ONHIT_SAVEDC_21 = 21;
const int IP_CONST_ONHIT_SAVEDC_23 = 23;
const int IP_CONST_ONHIT_SAVEDC_25 = 25;
const int IP_CONST_ONHIT_SAVEDC_27 = 27;
const int IP_CONST_ONHIT_SAVEDC_28 = 28;
const int IP_CONST_ONHIT_SAVEDC_29 = 29;
const int IP_CONST_ONHIT_SAVEDC_30 = 30;
const int IP_CONST_ONHIT_SAVEDC_31 = 31;
const int IP_CONST_ONHIT_SAVEDC_32 = 32;
const int IP_CONST_ONHIT_SAVEDC_33 = 33;
const int IP_CONST_ONHIT_SAVEDC_34 = 34;
const int IP_CONST_ONHIT_SAVEDC_35 = 35;
const int IP_CONST_ONHIT_SAVEDC_36 = 36;
const int IP_CONST_ONHIT_SAVEDC_37 = 37;
const int IP_CONST_ONHIT_SAVEDC_38 = 38;
const int IP_CONST_ONHIT_SAVEDC_39 = 39;
const int IP_CONST_ONHIT_SAVEDC_40 = 40;
const int IP_CONST_ONHIT_SAVEDC_41 = 41;
const int IP_CONST_ONHIT_SAVEDC_42 = 42;
const int IP_CONST_ONHIT_SAVEDC_43 = 43;
const int IP_CONST_ONHIT_SAVEDC_44 = 44;
const int IP_CONST_ONHIT_SAVEDC_45 = 45;
const int IP_CONST_ONHIT_SAVEDC_46 = 46;
const int IP_CONST_ONHIT_SAVEDC_47 = 47;
const int IP_CONST_ONHIT_SAVEDC_48 = 48;
const int IP_CONST_ONHIT_SAVEDC_49 = 49;
const int IP_CONST_ONHIT_SAVEDC_50 = 50;
const int IP_CONST_ONHIT_SAVEDC_51 = 51;
const int IP_CONST_ONHIT_SAVEDC_52 = 52;
const int IP_CONST_ONHIT_SAVEDC_53 = 53;
const int IP_CONST_ONHIT_SAVEDC_54 = 54;
const int IP_CONST_ONHIT_SAVEDC_55 = 55;
const int IP_CONST_ONHIT_SAVEDC_56 = 56;
const int IP_CONST_ONHIT_SAVEDC_57 = 57;
const int IP_CONST_ONHIT_SAVEDC_58 = 58;
const int IP_CONST_ONHIT_SAVEDC_59 = 59;
const int IP_CONST_ONHIT_SAVEDC_60 = 60;
const int IP_CONST_ONHIT_SAVEDC_61 = 61;
const int IP_CONST_ONHIT_SAVEDC_62 = 62;
const int IP_CONST_ONHIT_SAVEDC_63 = 63;
const int IP_CONST_ONHIT_SAVEDC_64 = 64;
const int IP_CONST_ONHIT_SAVEDC_65 = 65;
const int IP_CONST_ONHIT_SAVEDC_66 = 66;
const int IP_CONST_ONHIT_SAVEDC_67 = 67;
const int IP_CONST_ONHIT_SAVEDC_68 = 68;
const int IP_CONST_ONHIT_SAVEDC_69 = 69;
const int IP_CONST_ONHIT_SAVEDC_70 = 70;
// Creature Epic Criticals
const int IP_CONST_FEAT_DEVCRITICAL_CREATURE = 271;