RATDOG/_module/nss/henchlvl_dwrfdta.nss
Jaysyn904 0b86a6485c Updated scripts to use MyPRCGetRacialType
Updated scripts to use MyPRCGetRacialType.  Full compile.
2022-09-28 21:36:29 -04:00

18 lines
682 B
Plaintext

#include "prc_inc_racial"
int StartingConditional()
{
int iResult;
iResult = (GetClassByPosition(1, OBJECT_SELF) == CLASS_TYPE_DWARVENDEFENDER ||
GetClassByPosition(2, OBJECT_SELF) == CLASS_TYPE_DWARVENDEFENDER ||
GetClassByPosition(3, OBJECT_SELF) == CLASS_TYPE_DWARVENDEFENDER ||
GetClassByPosition(3, OBJECT_SELF) == CLASS_TYPE_INVALID) &&
(GetHasFeat(FEAT_DODGE, OBJECT_SELF)) &&
(GetHasFeat(FEAT_TOUGHNESS, OBJECT_SELF)) &&
(GetLevelByClass(CLASS_TYPE_DWARVENDEFENDER, OBJECT_SELF) != 40)
&& (MyPRCGetRacialType(OBJECT_SELF) == RACIAL_TYPE_DWARF)
&& (GetAlignmentLawChaos(OBJECT_SELF) == ALIGNMENT_LAWFUL);
return iResult;
}