Make Monkified Affect Person's Name Again (#62127)

This PR re-adds a mechanic lost during the monkey species refactor where the monkified mutation gave the afflicted a generic monkey name as opposed to keeping their original name.
This commit is contained in:
IndieanaJones
2021-10-16 19:44:56 -04:00
committed by GitHub
parent e3313f6919
commit 40cbfd9c08
+4
View File
@@ -182,16 +182,20 @@
time_coeff = 2
locked = TRUE //Species specific, keep out of actual gene pool
var/datum/species/original_species = /datum/species/human
var/original_name
/datum/mutation/human/race/on_acquiring(mob/living/carbon/human/owner)
if(..())
return
if(!ismonkey(owner))
original_species = owner.dna.species.type
original_name = owner.real_name
owner.fully_replace_character_name(null, "monkey ([rand(1,999)])")
. = owner.monkeyize()
/datum/mutation/human/race/on_losing(mob/living/carbon/human/owner)
if(owner && owner.stat != DEAD && (owner.dna.mutations.Remove(src)) && ismonkey(owner))
owner.fully_replace_character_name(null, original_name)
. = owner.humanize(original_species)
/datum/mutation/human/glow