Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

25 lines
427 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oDatabase = GetItemPossessedBy(oPC, "database");
int iPheno = GetPhenoType(oPC);
if (GetLocalInt(oDatabase, "OriginalPhenotype1Saved") != 1)
{
SetLocalInt(oDatabase, "OriginalPhenotype1", iPheno);
SetLocalInt(oDatabase, "OriginalPhenotype1Saved", 1);
}
if (iPheno != 5)
{
SetPhenoType(5, oPC);
}
else
{
SetPhenoType(GetLocalInt(oDatabase, "OriginalPhenotype1"), oPC);
}
}