2026/05/26 Update
Updated PRC8 version number. Added SoundImpact to Damning Darkness in vfx_persistent.2da. Updated CheckPRCLimitations() to make Darkness, Deeper Darkness & Damning Darkness work better. Fixed PnP Darkness & PnP Damning Darkness. Fixed Oversized Two-Weapon Fighting. Updated TLK for Attune Gem. Fixed typo in Calm Emotions description. Updated changelog.
This commit is contained in:
@@ -458,7 +458,32 @@ int CheckPRCLimitations(object oItem, object oPC = OBJECT_INVALID)
|
||||
DURATION_TYPE_TEMPORARY);
|
||||
}
|
||||
}
|
||||
else if(ipType == ITEM_PROPERTY_AREA_OF_EFFECT)
|
||||
else if(ipType == ITEM_PROPERTY_AREA_OF_EFFECT)
|
||||
{
|
||||
// This should happen on equip, unequip, or dynamic IP addition
|
||||
if(bEquip || bUnequip || !bEquip && !bUnequip)
|
||||
{
|
||||
// Remove existing AoE
|
||||
effect eTest = GetFirstEffect(oPC);
|
||||
while(GetIsEffectValid(eTest))
|
||||
{
|
||||
if(GetEffectCreator(eTest) == oItem
|
||||
&& GetEffectType(eTest) == EFFECT_TYPE_AREA_OF_EFFECT)
|
||||
{
|
||||
RemoveEffect(oPC, eTest);
|
||||
if(DEBUG) DoDebug("CheckPRCLimitations: Removing old AoE effect");
|
||||
}
|
||||
eTest = GetNextEffect(oPC);
|
||||
}
|
||||
|
||||
// Create new AoE - Skip when unequipping
|
||||
if(!bUnequip)
|
||||
{
|
||||
AssignCommand(oItem, _prc_inc_itmrstr_ApplyAoE(oPC, oItem, GetItemPropertySubType(ipTest), GetItemPropertyCostTable(ipTest)));
|
||||
}
|
||||
}
|
||||
}
|
||||
/* else if(ipType == ITEM_PROPERTY_AREA_OF_EFFECT)
|
||||
{
|
||||
|
||||
// This should only happen on equip or unequip
|
||||
@@ -483,7 +508,7 @@ int CheckPRCLimitations(object oItem, object oPC = OBJECT_INVALID)
|
||||
AssignCommand(oItem, _prc_inc_itmrstr_ApplyAoE(oPC, oItem, GetItemPropertySubType(ipTest), GetItemPropertyCostTable(ipTest)));
|
||||
}// end if - Equip event
|
||||
}// end if - Equip or Unequip event
|
||||
}// end if - AoE iprp
|
||||
}// end if - AoE iprp */
|
||||
else if(ipType == ITEM_PROPERTY_BONUS_SPELL_SLOT_OF_LEVEL_N)
|
||||
{
|
||||
// Only equippable items can provide bonus spell slots
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
/* This variable MUST be updated with every new version of the PRC!!! */
|
||||
|
||||
const string PRC_VERSION = "PRC8 4.91";
|
||||
const string PRC_VERSION = "PRC8 4.92";
|
||||
|
||||
/* This variable MUST be updated every time 'assemble_spellbooks.bat' is run!!! */
|
||||
|
||||
|
||||
@@ -1142,7 +1142,16 @@ void DoWeaponEquip(object oPC, object oItem, int nHand)
|
||||
//:: Proceed with OSTWF bonuses if the restrictions are not met
|
||||
if (!bIsRestricted)
|
||||
{
|
||||
if (GetHasFeat(FEAT_OTWF, oPC))
|
||||
if (GetHasFeat(FEAT_OTWF, oPC))
|
||||
{
|
||||
// When wielding a one-handed weapon in your off hand, you take penalties for fighting with two weapons as if you were wielding a light weapon in your off hand
|
||||
if (nWeaponSize == nRealSize && nHand == ATTACK_BONUS_OFFHAND)
|
||||
{
|
||||
SetCompositeAttackBonus(oPC, "OTWFL", 2, ATTACK_BONUS_OFFHAND);
|
||||
SetCompositeAttackBonus(oPC, "OTWFR", 2, ATTACK_BONUS_ONHAND);
|
||||
}
|
||||
}
|
||||
/* if (GetHasFeat(FEAT_OTWF, oPC))
|
||||
{
|
||||
// When wielding a one-handed weapon in your off hand, you take penalties for fighting with two weapons as if you were wielding a light weapon in your off hand
|
||||
if (nWeaponSize == nRealSize && nHand == ATTACK_BONUS_OFFHAND)
|
||||
@@ -1156,7 +1165,7 @@ void DoWeaponEquip(object oPC, object oItem, int nHand)
|
||||
SetCompositeAttackBonus(oPC, "OTWFR", 0, ATTACK_BONUS_ONHAND);
|
||||
}
|
||||
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
//check for proficiency
|
||||
|
||||
Reference in New Issue
Block a user