Skip to content

Commit

Permalink
Fixes ghost_roles spawning as transgenders. (#56151)
Browse files Browse the repository at this point in the history
About The Pull Request

An oversight made in #51058. Almost every other source of changing gender was complete with changing body_type as well, but not the ghost_role spawners.

Right now ghost roles can spawn with one gender, but get the other body_type.
This results in looking at "her", while the person in question got a surprise.

For such things, we already added "Other" gender.


cl
fix: Ghost roles can no longer spawn as a male with female body_type and vice-versa.
/cl
  • Loading branch information
EgorDinamit committed Jan 14, 2021
1 parent 8a66437 commit e652d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions code/modules/awaymissions/corpse.dm
Expand Up @@ -93,6 +93,9 @@
if(!mob_gender)
mob_gender = pick(MALE, FEMALE)
M.gender = mob_gender
if(ishuman(M))
var/mob/living/carbon/human/hoomie = M
hoomie.body_type = mob_gender
if(faction)
M.faction = list(faction)
if(disease)
Expand Down
2 changes: 1 addition & 1 deletion tgstation.dme
Expand Up @@ -197,6 +197,7 @@
#include "code\_globalvars\traits.dm"
#include "code\_globalvars\lists\achievements.dm"
#include "code\_globalvars\lists\admin.dm"
#include "code\_globalvars\lists\ambience.dm"
#include "code\_globalvars\lists\client.dm"
#include "code\_globalvars\lists\color.dm"
#include "code\_globalvars\lists\flavor_misc.dm"
Expand All @@ -209,7 +210,6 @@
#include "code\_globalvars\lists\poll_ignore.dm"
#include "code\_globalvars\lists\typecache.dm"
#include "code\_globalvars\lists\xenobiology.dm"
#include "code\_globalvars\lists\ambience.dm"
#include "code\_js\byjax.dm"
#include "code\_js\menus.dm"
#include "code\_onclick\adjacent.dm"
Expand Down

0 comments on commit e652d3f

Please sign in to comment.