2025/11/30 Update

Updated module to NWN:EE v37-17
Updated NWNxEE libraries to latest.
Associated new PRC8 module script for the GUI event.
Deleted old prc_2da_cache creature from top hak as it's now unneeded.
Full compile.
This commit is contained in:
Jaysyn904
2025-11-30 22:04:26 -05:00
parent 243ed8a652
commit 8ca4aed814
1252 changed files with 19391 additions and 19766 deletions

View File

@@ -323,7 +323,7 @@ void NWNX_Creature_SetSkillRank(object creature, int skill, int rank);
int NWNX_Creature_GetSkillRankByLevel(object creature, int skill, int level);
/// @brief Set the ranks in a skill for creature assigned at a level.
/// @note It only affect the leveling array, to know what to do on level-down. To effectivly change the skill rank on the current level, NWNX_Creature_SetSkillRank is also needed.
/// @note It only affect the leveling array, to know what to do on level-down. To effectively change the skill rank on the current level, NWNX_Creature_SetSkillRank is also needed.
/// @param creature The creature object.
/// @param skill The skill id.
/// @param level The level they gained skill ranks.
@@ -636,7 +636,7 @@ void NWNX_Creature_SetCriticalMultiplierModifier(object oCreature, int nModifier
/// @brief Gets the critical hit multiplier modifier for the Creature
/// @param oCreature The target creature
/// @param nHand 0 for all attacks, 1 for Mainhand, 2 for Offhand
/// @param nBaseItem The baseitem modifer to retrieve. BASE_ITEM_GLOVES for Unarmed, '-1' for all
/// @param nBaseItem The baseitem modifier to retrieve. BASE_ITEM_GLOVES for Unarmed, '-1' for all
/// @return the current critical hit multiplier modifier for the creature
int NWNX_Creature_GetCriticalMultiplierModifier(object oCreature, int nHand = 0, int nBaseItem = -1);
@@ -668,7 +668,7 @@ void NWNX_Creature_SetCriticalRangeModifier(object oCreature, int nModifier, int
/// @brief Gets the critical hit range modifier for the creature.
/// @param oCreature The target creature
/// @param nHand 0 for all attacks, 1 for Mainhand, 2 for Offhand
/// @param nBaseItem The baseitem modifer to retrieve. BASE_ITEM_GLOVES for Unarmed, '-1' for all
/// @param nBaseItem The baseitem modifier to retrieve. BASE_ITEM_GLOVES for Unarmed, '-1' for all
/// @return the current critical hit range modifier for the creature
int NWNX_Creature_GetCriticalRangeModifier(object oCreature, int nHand = 0, int nBaseItem = -1);
@@ -1023,6 +1023,19 @@ int NWNX_Creature_GetMulticlassLimit(object oCreature);
/// @note Persistence is enabled after a server reset by the first use of this function.
void NWNX_Creature_SetMulticlassLimit(object oCreature, int nLimit, int bPersist = FALSE);
/// @brief Gets the creature's number of bonus spells.
/// @param oCreature The creature object.
/// @param nMultiClass The character class position, starting at 0.
/// @param nSpellLevel The spell level, 0 to 9.
int NWNX_Creature_GetNumberOfBonusSpells(object oCreature, int nMultiClass, int nSpellLevel);
/// @brief Modifies the creature's number of bonus spells.
/// @param oCreature The creature object.
/// @param nMultiClass The character class position, starting at 0.
/// @param nSpellLevel The spell level, 0 to 9.
/// @param nDelta The value to change the number of bonus spells by. Can be negative.
void NWNX_Creature_ModifyNumberBonusSpells(object oCreature, int nMultiClass, int nSpellLevel, int nDelta);
/// @}
void NWNX_Creature_AddFeat(object creature, int feat)
@@ -2248,3 +2261,21 @@ void NWNX_Creature_SetMulticlassLimit(object oCreature, int nLimit, int bPersist
NWNXPushObject(oCreature);
NWNXCall(NWNX_Creature, "SetMulticlassLimit");
}
int NWNX_Creature_GetNumberOfBonusSpells(object oCreature, int nMultiClass, int nSpellLevel)
{
NWNXPushInt(nSpellLevel);
NWNXPushInt(nMultiClass);
NWNXPushObject(oCreature);
NWNXCall(NWNX_Creature, "GetNumberOfBonusSpells");
return NWNXPopInt();
}
void NWNX_Creature_ModifyNumberBonusSpells(object oCreature, int nMultiClass, int nSpellLevel, int nDelta)
{
NWNXPushInt(nDelta);
NWNXPushInt(nSpellLevel);
NWNXPushInt(nMultiClass);
NWNXPushObject(oCreature);
NWNXCall(NWNX_Creature, "ModifyNumberBonusSpells");
}