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

@@ -227,7 +227,7 @@ void ApplyIllmaster(object oCompanion, object oCompSkin)
int iCons = GetAbilityModifier(ABILITY_CONSTITUTION, oCompanion);
int iDC = 10 + (iHD / 2) + iCons;
//Create the onhit item property for causing the blight touch disease
itemproperty ipBlightTouch = ItemPropertyOnHitProps(IP_CONST_ONHIT_DISEASE, iDC, DISEASE_TALONAS_BLIGHT);
itemproperty ipBlightTouch = ItemPropertyOnHitProps(IP_CONST_ONHIT_DISEASE, IPOnHitSaveDC(iDC), DISEASE_TALONAS_BLIGHT);
//Get the companion's creature weapons
object oBite = GetItemInSlot(INVENTORY_SLOT_CWEAPON_B, oCompanion);
object oLClaw = GetItemInSlot(INVENTORY_SLOT_CWEAPON_L, oCompanion);
@@ -527,4 +527,6 @@ void UnsummonCompanions(object oPC)
if(GetIsObjectValid(oAsso))
DestroyAssociate(oAsso);
}
}
}
//:: void main(){}