2025/12/01 Update

Updated module for NWN:EE 37-17.
Updated NWNxEE libraries.
Updated PEPS.
Hooked up new PRC8 GUI module event.
Full compile.
This commit is contained in:
Jaysyn904
2025-12-01 10:11:37 -05:00
parent e2d45b9aab
commit ab163e6df6
526 changed files with 38354 additions and 35924 deletions

View File

@@ -65,10 +65,14 @@ void main()
// second pass.
if(oTarget != oCaster)
{
SetLocalObject(oPC, "AI_BUFF_TARGET", oTarget);
SetLocalObject(oPC, "AI_BUFF_CASTER", oCaster);
SetLocalInt(oPC, "AI_BUFF_SPELL", nSpell);
ExecuteScript("pc_savebuffs", oPC);
// if it is an area of effect spell then we skip it on all but the caster.
if(Get2DAString("spells", "TargetShape", nSpell) == "")
{
SetLocalObject(oPC, "AI_BUFF_TARGET", oTarget);
SetLocalObject(oPC, "AI_BUFF_CASTER", oCaster);
SetLocalInt(oPC, "AI_BUFF_SPELL", nSpell);
ExecuteScript("pc_savebuffs", oPC);
}
return;
}
// If this is the first pass and we get here then oCaster is casting a spell
@@ -114,9 +118,9 @@ void main()
jSpell = JsonArrayInsert(jSpell, JsonInt(nLevel));
jSpell = JsonArrayInsert(jSpell, JsonInt(nMetaMagic));
jSpell = JsonArrayInsert(jSpell, JsonInt(nDomain));
string sTargetName = ai_RemoveIllegalCharacters(ai_StripColorCodes(GetName(oTarget, TRUE)));
string sTargetName = ai_RemoveIllegalCharacters(ai_StripColorCodes(GetName(oTarget)));
jSpell = JsonArrayInsert(jSpell, JsonString(sTargetName));
jSpell = JsonArrayInsert(jSpells, jSpell);
jSpells = JsonArrayInsert(jSpells, jSpell);
SetBuffDatabaseJson(oPC, "spells", jSpells, sList);
SendMessageToPC(oPC, sName + " has been saved for fast buffing on " + sTargetName + ".");
ExecuteScript("pi_buffing", oPC);