mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user