Forsaker / Saint / Vow of Poverty interaction fixes

Forsaker / Saint / Vow of Poverty interaction fixes.  Renamed Pyro Conflagration constant.  Removed depreciated PRC4 archive.  Updated release archive.
This commit is contained in:
Jaysyn904
2025-01-04 23:33:07 -05:00
parent a8c707e987
commit b6cc854fab
13 changed files with 71 additions and 54 deletions

View File

@@ -49,8 +49,9 @@ void AddProperty(object oItem)
}
// Add the itemproperty
IPSafeAddItemProperty(oItem, ItemPropertyOnHitCastSpell(IP_CONST_ONHIT_CASTSPELL_ONHIT_UNIQUEPOWER, 1),
0.0f, X2_IP_ADDPROP_POLICY_REPLACE_EXISTING, FALSE, FALSE);
itemproperty ipNewOH = ItemPropertyOnHitCastSpell(IP_CONST_ONHIT_CASTSPELL_ONHIT_UNIQUEPOWER, 1);
ipNewOH = TagItemProperty(ipNewOH, "Tag_PRC_OnHitKeeper");
IPSafeAddItemProperty(oItem, ipNewOH, 0.0f, X2_IP_ADDPROP_POLICY_REPLACE_EXISTING, FALSE, FALSE);
// Add a marker to note that the item has been handled
SetLocalInt(oItem, "PRC_OnHitKeeper_Marker", TRUE);
@@ -64,11 +65,19 @@ void main()
// OnEquip event
if(nEvent == EVENT_ONPLAYEREQUIPITEM)
{
object oItem = GetItemLastEquipped();
object oEquipper = GetItemLastEquippedBy();
if(GetItemInSlot(INVENTORY_SLOT_CHEST, oEquipper) == oItem)
AddProperty(oItem);
}
object oItem = GetItemLastEquipped();
object oEquipper = GetItemLastEquippedBy();
object oSkin = GetPCSkin(oEquipper);
if(GetItemInSlot(INVENTORY_SLOT_CHEST, oEquipper) == oItem)
{
AddProperty(oItem);
}
else
{
AddProperty(oSkin);
}
}
// OnUnEquip event
else if(nEvent == EVENT_ONPLAYERUNEQUIPITEM)
{
@@ -119,7 +128,9 @@ void main()
AddProperty(oSkin);
object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oCreature);
if(GetIsObjectValid(oArmor))
if(GetIsObjectValid(oArmor))
{
AddProperty(oArmor);
}
}
}