20 lines
874 B
Plaintext
20 lines
874 B
Plaintext
#include "prc_inc_racial"
|
|
|
|
// oe_gameentry - Reset appearances to default for race
|
|
void main()
|
|
{
|
|
object oPC=GetEnteringObject();
|
|
int nRT;
|
|
if (GetIsPC(oPC))
|
|
{ // PC
|
|
nRT=MyPRCGetRacialType(oPC);
|
|
if (nRT==RACIAL_TYPE_HUMAN) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HUMAN);
|
|
else if (nRT==RACIAL_TYPE_ELF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_ELF);
|
|
else if (nRT==RACIAL_TYPE_HALFELF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALF_ELF);
|
|
else if (nRT==RACIAL_TYPE_DWARF) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_DWARF);
|
|
else if (nRT==RACIAL_TYPE_GNOME) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_GNOME);
|
|
else if (nRT==RACIAL_TYPE_HALFLING) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALFLING);
|
|
else if (nRT==RACIAL_TYPE_HALFORC) SetCreatureAppearanceType(oPC,APPEARANCE_TYPE_HALF_ORC);
|
|
} // PC
|
|
}
|