2025/11/30 Update

Updated for NWN:EE 37-17
Updated NWNxEE libraries.
Updated nim tooling
Updated PEPs
Associated new GUI module event script.
Full compile.
This commit is contained in:
Jaysyn904
2025-12-01 00:00:34 -05:00
parent 4d7b173526
commit d0a4ee6f1f
540 changed files with 62740 additions and 60703 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);