Updated for NWNEE 37-13

Updated for NWNEE 37-13.  Updated NWNxEE.  Full compile. Updated release archive.
This commit is contained in:
Jaysyn904
2025-01-10 20:29:31 -05:00
parent a8639499df
commit 82994dfc26
447 changed files with 10620 additions and 6020 deletions

View File

@@ -2,7 +2,6 @@
/// @brief Allows the appearance and some other things of creatures to be overridden per player.
/// @{
/// @file nwnx_appearance.nss
#include "nwnx"
const string NWNX_Appearance = "NWNX_Appearance"; ///< @private
@@ -49,25 +48,18 @@ int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType);
void NWNX_Appearance_SetOverride(object oPlayer, object oCreature, int nType, int nValue)
{
string sFunc = "SetOverride";
NWNX_PushArgumentInt(NWNX_Appearance, sFunc, nValue);
NWNX_PushArgumentInt(NWNX_Appearance, sFunc, nType);
NWNX_PushArgumentObject(NWNX_Appearance, sFunc, oCreature);
NWNX_PushArgumentObject(NWNX_Appearance, sFunc, oPlayer);
NWNX_CallFunction(NWNX_Appearance, sFunc);
NWNXPushInt(nValue);
NWNXPushInt(nType);
NWNXPushObject(oCreature);
NWNXPushObject(oPlayer);
NWNXCall(NWNX_Appearance, "SetOverride");
}
int NWNX_Appearance_GetOverride(object oPlayer, object oCreature, int nType)
{
string sFunc = "GetOverride";
NWNX_PushArgumentInt(NWNX_Appearance, sFunc, nType);
NWNX_PushArgumentObject(NWNX_Appearance, sFunc, oCreature);
NWNX_PushArgumentObject(NWNX_Appearance, sFunc, oPlayer);
NWNX_CallFunction(NWNX_Appearance, sFunc);
return NWNX_GetReturnValueInt(NWNX_Appearance, sFunc);
NWNXPushInt(nType);
NWNXPushObject(oCreature);
NWNXPushObject(oPlayer);
NWNXCall(NWNX_Appearance, "GetOverride");
return NWNXPopInt();
}