2025/07/22 Update
Updated ruleset.2da. Drug Resistance should be able to target the caster. Changed crafting constants for better compatibility with nwn_script_comp. Made Mirror Image work better.
This commit is contained in:
@@ -21,6 +21,22 @@
|
||||
#include "shd_inc_myst"
|
||||
#include "prc_inc_template"
|
||||
|
||||
void RemoveExtraImages(object oPC)
|
||||
{
|
||||
string sImage1 = "PC_IMAGE"+ObjectToString(oPC)+"mirror";
|
||||
string sImage2 = "PC_IMAGE"+ObjectToString(oPC)+"flurry";
|
||||
|
||||
object oCreature = GetFirstObjectInArea(GetArea(oPC));
|
||||
while (GetIsObjectValid(oCreature))
|
||||
{
|
||||
if(GetTag(oCreature) == sImage1 || GetTag(oCreature) == sImage2)
|
||||
{
|
||||
DestroyObject(oCreature, 0.0);
|
||||
}
|
||||
oCreature = GetNextObjectInArea(GetArea(oPC));
|
||||
}
|
||||
}
|
||||
|
||||
void PrcFeats(object oPC)
|
||||
{
|
||||
if(DEBUG) DoDebug("prc_rest: Evaluating PC feats for " + DebugObject2Str(oPC));
|
||||
@@ -349,6 +365,8 @@ void RestStarted(object oPC)
|
||||
}
|
||||
*/
|
||||
|
||||
RemoveExtraImages(oPC);
|
||||
|
||||
if (GetIsPC(oPC)) SetLocalInt(oPC, "PnP_Rest_InitialHP", GetCurrentHitPoints(oPC));
|
||||
SetLocalInt(oPC, "PnP_Rest_InitialMax", GetMaxHitPoints(oPC));
|
||||
if(DEBUG) DoDebug("prc_rest: HPs for " + DebugObject2Str(oPC)+"n/n/"+" nCurrent: "+IntToString(GetCurrentHitPoints(oPC))+" nMax: "+IntToString(GetMaxHitPoints(oPC)));
|
||||
|
Reference in New Issue
Block a user