Updated scripts to use MyPRCGetRacialType

Updated scripts to use MyPRCGetRacialType.  Full compile.
This commit is contained in:
Jaysyn904
2022-09-28 21:36:29 -04:00
parent 8994c41256
commit 0b86a6485c
81 changed files with 142 additions and 74 deletions

View File

@@ -28,17 +28,19 @@ or in a module is very subjective. Some will consider this amount far too gener
and some too greedy.
*/
////////////////////////////////////////////////////////////////////////////////
#include "prc_inc_racial"
void main()
{
if(d100()>66) return;
object oCreature = OBJECT_SELF;
object oMarker;
if(GetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|| GetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return;
if(MyPRCGetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|| MyPRCGetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return;
float fChallengeFactor = GetChallengeRating(oCreature) * 30.0;
float fFactor = IntToFloat(Random(5) + 2);
int iTreasure = FloatToInt(fChallengeFactor / fFactor);
int iType = GetRacialType(oCreature);
int iType = MyPRCGetRacialType(oCreature);
CreateItemOnObject("NW_IT_GOLD001", oCreature, iTreasure);
if(iType == RACIAL_TYPE_UNDEAD || iType == RACIAL_TYPE_ABERRATION)
oMarker = CreateItemOnObject("NW_IT_MSMLMISC21", oCreature, 1);