PRC8/nwn/nwnprc/trunk/scripts/prc_alien_summon.nss
Jaysyn904 d87fe14826 Further file organization
Further file organization
2023-08-23 22:11:00 -04:00

26 lines
829 B
Plaintext

/**
* @file
* Extra Summons for Alienist
*
*/
#include "prc_inc_spells"
void main()
{
object oCaster = OBJECT_SELF;
int nMaxSlot = GetSpellslotLevel(GetPrimaryArcaneClass(oCaster), oCaster);
int nSpell;
if (nMaxSlot == 9) nSpell = SPELL_SUMMON_CREATURE_IX;
else if (nMaxSlot == 8) nSpell = SPELL_SUMMON_CREATURE_VIII;
else if (nMaxSlot == 7) nSpell = SPELL_SUMMON_CREATURE_VII;
else if (nMaxSlot == 6) nSpell = SPELL_SUMMON_CREATURE_VI;
else if (nMaxSlot == 5) nSpell = SPELL_SUMMON_CREATURE_V;
else if (nMaxSlot == 4) nSpell = SPELL_SUMMON_CREATURE_IV;
else if (nMaxSlot == 3) nSpell = SPELL_SUMMON_CREATURE_III;
else if (nMaxSlot == 2) nSpell = SPELL_SUMMON_CREATURE_II;
else if (nMaxSlot == 1) nSpell = SPELL_SUMMON_CREATURE_I;
DoRacialSLA(nSpell);
}