fix false alarm debug message for mushroom people (#33666)

This commit is contained in:
nervere
2022-11-08 10:31:59 -05:00
committed by GitHub
parent 739cc912c4
commit 878aaa98df

View File

@@ -1502,7 +1502,7 @@ Values up to 1000 are allowed.", "FPS", fps) as null|num
//Debugging report to track down a bug, which randomly assigned the plural gender to people. //Debugging report to track down a bug, which randomly assigned the plural gender to people.
if(character.gender in list(PLURAL, NEUTER)) if(character.gender in list(PLURAL, NEUTER))
if(isliving(character)) //Ghosts get neuter by default if(isliving(character) && !ismushroom(character)) //Ghosts and mushroom people are neuter by default
message_admins("[character] ([character.ckey]) has spawned with their gender as plural or neuter. Please notify coders.") message_admins("[character] ([character.ckey]) has spawned with their gender as plural or neuter. Please notify coders.")
character.setGender(MALE) character.setGender(MALE)