Update to PRC 4.1.10a

Update to PRC 4.1.10a
This commit is contained in:
Jaysyn904
2022-12-09 19:08:32 -05:00
parent edc1ff70e3
commit 6c305aecc5
128 changed files with 48777 additions and 47646 deletions

View File

@@ -14,6 +14,8 @@ const int ITEM_PROPERTY_CAST_SPELL_DC = 93;
const int ITEM_PROPERTY_PNP_HOLY_AVENGER = 101;
const int ITEM_PROPERTY_WIZARDRY = 102;
const int ITEM_PROPERTY_DIVINITY = 103;
const int ITEM_PROPERTY_ECHOBLADE = 104;
const int IP_CONST_AOE_DARKNESS = 0;
const int IP_CONST_AOE_DEEPER_DARKNESS = 1;
@@ -65,6 +67,9 @@ itemproperty ItemPropertyWizardry(int nSpellLevel);
//relys on blueprints containing these itemproperties
itemproperty ItemPropertyDivinity(int nSpellLevel);
//returns Echoblade itemproperty
itemproperty ItemPropertyEchoblade();
//not implemented
itemproperty ItemPropertyLimitUseByAbility(int nAbility, int nMinScore);
//not implemented
@@ -408,6 +413,27 @@ itemproperty ItemPropertyPnPHolyAvenger()
return ipReturn;
}
itemproperty ItemPropertyEchoblade()
{
itemproperty ipReturn;
string sResRef = "prc_ip" + IntToString(ITEM_PROPERTY_ECHOBLADE);
object oChest = GetObjectByTag("HEARTOFCHAOS");//use the crafting chest
object oItem = CreateItemOnObject(sResRef, oChest);
DestroyObject(oItem);
ipReturn = GetFirstItemProperty(oItem);
if(!GetIsItemPropertyValid(ipReturn))
{
string sMessage = "ItemPropertyEchoblade is not valid";
if(GetIsObjectValid(oChest))
sMessage += "\n oChest is valid.";
if(GetIsObjectValid(oItem))
sMessage += "\n oItem is valid.";
sMessage += "\n sResRef is "+sResRef+".";
DoDebug(sMessage);
}
return ipReturn;
}
itemproperty ItemPropertyWizardry(int nSpellLevel)
{
itemproperty ipReturn;
@@ -461,4 +487,4 @@ itemproperty ItemPropertyDivinity(int nSpellLevel)
}
// Test main
//void main(){}
// void main(){}