Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
33
_removed files/nwnx_race_t.nss
Normal file
33
_removed files/nwnx_race_t.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "nwnx_race"
|
||||
#include "nwnx_tests"
|
||||
|
||||
void main()
|
||||
{
|
||||
WriteTimestampedLogEntry("NWNX_Race unit test begin..");
|
||||
|
||||
object oCreature = CreateObject(OBJECT_TYPE_CREATURE, "nw_chicken", GetStartingLocation());
|
||||
int iSR = GetSpellResistance(oCreature);
|
||||
int iSkillRank = GetSkillRank(SKILL_HEAL, oCreature);
|
||||
int iAC = GetAC(oCreature);
|
||||
int iImmune = GetIsImmune(oCreature, IMMUNITY_TYPE_CURSED);
|
||||
DestroyObject(oCreature);
|
||||
|
||||
NWNX_Race_SetRacialModifier(RACIAL_TYPE_ANIMAL, NWNX_RACE_MODIFIER_SRCHARGEN, 10);
|
||||
NWNX_Race_SetRacialModifier(RACIAL_TYPE_ANIMAL, NWNX_RACE_MODIFIER_SKILL, SKILL_HEAL, 5);
|
||||
NWNX_Race_SetRacialModifier(RACIAL_TYPE_ANIMAL, NWNX_RACE_MODIFIER_AC, 1);
|
||||
NWNX_Race_SetRacialModifier(RACIAL_TYPE_ANIMAL, NWNX_RACE_MODIFIER_IMMUNITY, IMMUNITY_TYPE_CURSED);
|
||||
|
||||
oCreature = CreateObject(OBJECT_TYPE_CREATURE, "nw_chicken", GetStartingLocation());
|
||||
int iNewSR = GetSpellResistance(oCreature);
|
||||
int iNewSkillRank = GetSkillRank(SKILL_HEAL, oCreature);
|
||||
int iNewAC = GetAC(oCreature);
|
||||
int iNewImmune = GetIsImmune(oCreature, IMMUNITY_TYPE_CURSED);
|
||||
DestroyObject(oCreature);
|
||||
|
||||
NWNX_Tests_Report("NWNX_Race", "SetRacialModifier SR", iSR == iNewSR - 10);
|
||||
NWNX_Tests_Report("NWNX_Race", "SetRacialModifier SkillRank", iSkillRank == iNewSkillRank - 5);
|
||||
NWNX_Tests_Report("NWNX_Race", "SetRacialModifier AC", iAC == iNewAC - 1);
|
||||
NWNX_Tests_Report("NWNX_Race", "SetRacialModifier Immunity", iImmune != iNewImmune);
|
||||
|
||||
WriteTimestampedLogEntry("NWNX_Race unit test end.");
|
||||
}
|
Reference in New Issue
Block a user