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

@@ -9,6 +9,10 @@ and will not compile on its own.
////////////////////////////////////////////////////
////////////////////////////////////////////////////
#include "prc_inc_racial"
//::void main(){}
float fCRFactor = GetChallengeRating(OBJECT_SELF) / 20.0;
object GiveMoney(object oCreature = OBJECT_SELF)
@@ -16,12 +20,12 @@ object GiveMoney(object oCreature = OBJECT_SELF)
if(d100()>66) return OBJECT_INVALID;
object oObject = OBJECT_INVALID;
object oMarker;
if(GetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|| GetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return OBJECT_INVALID;
if(MyPRCGetRacialType(oCreature) == RACIAL_TYPE_ANIMAL
|| MyPRCGetRacialType(oCreature) == RACIAL_TYPE_VERMIN) return OBJECT_INVALID;
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);
oObject = CreateItemOnObject("NW_IT_GOLD001", oCreature, iTreasure);
if(iType == RACIAL_TYPE_UNDEAD || iType == RACIAL_TYPE_ABERRATION)
oMarker = CreateItemOnObject("NW_IT_MSMLMISC21", oCreature, 1);
@@ -44,7 +48,7 @@ object GiveHealing(object oCreature = OBJECT_SELF)
object oObject = OBJECT_INVALID;
//Note: This statement causes the script to exclude animals from this treasure table.
if(GetRacialType(oCreature) != RACIAL_TYPE_ANIMAL){
if(MyPRCGetRacialType(oCreature) != RACIAL_TYPE_ANIMAL){
//////////////////////////////////////////////////////////////
int END;
float fChance;