RATDOG/_module/nss/nwnx_nostack.nss
Jaysyn904 49e8177b4e Update for 37-13
Update for NWNEE 37-13.  Updated NWNxEE.  Full compile.
2025-01-09 12:55:50 -05:00

37 lines
1.2 KiB
Plaintext

/// @addtogroup nostack NoStack
/// @brief Functions to allow more control over ability/skill/bonuses stacking.
/// @{
/// @file nwnx_nostack.nss
const string NWNX_NoStack = "NWNX_NoStack"; ///< @private
/// @name Spell Effect Bonus Types
/// @anchor spell_bonus_types
///
/// Used with NWNX_NoStack_SetSpellBonusType() these are the effect bonus types.
/// @{
const int NWNX_NOSTACK_EFFECT_TYPE_ENHANCEMENT = 0;
const int NWNX_NOSTACK_EFFECT_TYPE_CIRCUMSTANCE = 1;
const int NWNX_NOSTACK_EFFECT_TYPE_COMPETENCE = 2;
const int NWNX_NOSTACK_EFFECT_TYPE_INSIGHT = 3;
const int NWNX_NOSTACK_EFFECT_TYPE_LUCK = 4;
const int NWNX_NOSTACK_EFFECT_TYPE_MORALE = 5;
const int NWNX_NOSTACK_EFFECT_TYPE_PROFANE = 6;
const int NWNX_NOSTACK_EFFECT_TYPE_RESISTANCE = 7;
const int NWNX_NOSTACK_EFFECT_TYPE_SACRED = 8;
/// @}
/// @brief Sets a spell bonus type to be used by the NoStack feature.
/// @param spell The spell ID from spells.2da.
/// @param type The new type.
void NWNX_NoStack_SetSpellBonusType(int spell, int type);
/// @}
void NWNX_NoStack_SetSpellBonusType(int spell, int type)
{
NWNXPushInt(type);
NWNXPushInt(spell);
NWNXCall(NWNX_NoStack, "SetSpellBonusType");
}