2025/11/27 Update

Werewolf merges monk gloves if equipped.
Added more switches to the Switch conversation.
Increased summoned Huge Beholder eye ray uses to 99.
This commit is contained in:
Jaysyn904
2025-11-27 19:01:49 -05:00
parent 257cb23488
commit 807db19a90
10 changed files with 509 additions and 74 deletions

View File

@@ -10,7 +10,6 @@
//:: Created By: Georg Zoeller
//:: Created On: 2003-07-16
//:://////////////////////////////////////////////
#include "prc_inc_function"
#include "prc_inc_wpnrest"
#include "inc_timestop"
@@ -31,6 +30,9 @@ void main()
if(!GetIsObjectValid(oPC))
return;
//:: Use with bioware polymorphs
DetectMonkGloveEquip(oItem);
//if(DEBUG) DoDebug("Running OnEquip, creature = '" + GetName(oPC) + "' is PC: " + DebugBool2String(GetIsPC(oPC)) + "; Item = '" + GetName(oItem) + "' - '" + GetTag(oItem) + "'");

View File

@@ -31,6 +31,27 @@ void PrcFeats(object oPC, object oItem)
DeleteLocalInt(oPC,"ONEQUIP");
}
//:: Unsets a variable used for Bioware polymorphs
void DoGloveUnequip(object oItem)
{
object oPC = OBJECT_SELF;
int nItemType = GetBaseItemType(oItem);
if(nItemType != BASE_ITEM_GLOVES)
{
if (DEBUG) DoDebug("prc_unequip >> DoGloveUnequip(): Not gloves.");
return;
}
else
{
if (DEBUG) DoDebug("prc_unequip >> DoGloveUnequip(): Removing WEARING_MONK_GLOVES token.");
DeleteLocalInt(oPC, "WEARING_MONK_GLOVES");
return;
}
}
void DoNaturalWeaponEffect(object oPC)
{
if (DEBUG) DoDebug("GetIsUsingPrimaryNaturalWeapons "+IntToString(GetIsUsingPrimaryNaturalWeapons(oPC))+" PrimaryNaturalWeapEffect "+IntToString(GetLocalInt(oPC, "PrimaryNaturalWeapEffect")));
@@ -55,6 +76,8 @@ void main()
//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);

View File

@@ -27,7 +27,7 @@ void main()
int nPoly;
// Retrieve Module flag
int iPnPShifterShapchange = GetPRCSwitch(PRC_WEREWOLF_HYBRID_USE_SHIFTER_SHAPCHANGE);
int iPnPShifterShapchange = GetPRCSwitch(PRC_WEREWOLF_HYBRID_USE_SHIFTER_SHAPECHANGE);
if (GetLocalInt(oPC, "WWHybrid") != TRUE)