2025/12/17 Update
Changed Shield Specialization to stop the Shield AC message spam. Forsakers now keep their bonus abilities through server resets. Added Warblade recovery notification. Fixed Inscribe Runes CL cap. Added Inscribe Runes to Runecaster's feat list. Eagle Claw's icon should only be 1x2. Blank wands should be equippable.
This commit is contained in:
@@ -16,6 +16,20 @@
|
||||
#include "prc_inc_combat"
|
||||
#include "prc_inc_template"
|
||||
|
||||
//:: Shield Specialization moved here to stop Shield AC message spam
|
||||
void RemoveShieldSpecialization(object oPC, object oItem)
|
||||
{
|
||||
effect eOldEffect = GetFirstEffect(oPC);
|
||||
while (GetIsEffectValid(eOldEffect))
|
||||
{
|
||||
if (GetEffectTag(eOldEffect) == "ShieldSpecialization")
|
||||
{
|
||||
RemoveEffect(oPC, eOldEffect);
|
||||
}
|
||||
eOldEffect = GetNextEffect(oPC);
|
||||
}
|
||||
}
|
||||
|
||||
void PrcFeats(object oPC, object oItem)
|
||||
{
|
||||
SetLocalInt(oPC,"ONEQUIP",1);
|
||||
@@ -72,13 +86,14 @@ void main()
|
||||
{
|
||||
object oItem = GetItemLastUnequipped();
|
||||
object oPC = GetItemLastUnequippedBy();
|
||||
|
||||
|
||||
//if(DEBUG) DoDebug("Running OnUnEquip, creature = '" + GetName(oPC) + "' is PC: " + DebugBool2String(GetIsPC(oPC)) + "; Item = '" + GetName(oItem) + "' - '" + GetTag(oItem) + "'");
|
||||
|
||||
DoTimestopUnEquip(oPC, oItem);
|
||||
|
||||
DoGloveUnequip(oItem);
|
||||
|
||||
|
||||
|
||||
if (GetResRef(oItem) == "prc_crown_might") DestroyObject(oItem);
|
||||
if (GetResRef(oItem) == "prc_crown_prot") DestroyObject(oItem);
|
||||
|
||||
@@ -92,6 +107,12 @@ void main()
|
||||
DestroyObject(oItem);
|
||||
}
|
||||
|
||||
if((GetBaseItemType(oItem) == BASE_ITEM_SMALLSHIELD && GetHasFeat(FEAT_SHIELD_SPECIALIZATION_LIGHT, oPC))
|
||||
|| (GetBaseItemType(oItem) == BASE_ITEM_LARGESHIELD && GetHasFeat(FEAT_SHIELD_SPECIALIZATION_HEAVY, oPC)))
|
||||
{
|
||||
RemoveShieldSpecialization(oPC, oItem);
|
||||
}
|
||||
|
||||
int nClaw = GetStringLeft(GetResRef(oItem), 12) == "prc_diaclaw_" ? TRUE : FALSE;
|
||||
if(nClaw)DestroyObject(oItem);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user