Makes the monkey mutation remember your species through transformations (#55844)

* Makes the monkey mutation remember your species through transformations

* Implements suggestions by ghommie
This commit is contained in:
necromanceranne
2021-01-06 10:43:21 +01:00
committed by GitHub
parent d18a015fc2
commit cdf16a2170
2 changed files with 9 additions and 5 deletions
+4 -4
View File
@@ -30,7 +30,7 @@
////////////////////////// Humanize //////////////////////////////
//Could probably be merged with monkeyize but other transformations got their own procs, too
/mob/living/carbon/proc/humanize()
/mob/living/carbon/proc/humanize(species = /datum/species/human)
if (notransform || transformation_timer)
return
@@ -45,15 +45,15 @@
invisibility = INVISIBILITY_MAXIMUM
new /obj/effect/temp_visual/monkeyify/humanify(loc)
transformation_timer = addtimer(CALLBACK(src, .proc/finish_humanize), TRANSFORMATION_DURATION, TIMER_UNIQUE)
transformation_timer = addtimer(CALLBACK(src, .proc/finish_humanize, species), TRANSFORMATION_DURATION, TIMER_UNIQUE)
/mob/living/carbon/proc/finish_humanize()
/mob/living/carbon/proc/finish_humanize(species = /datum/species/human)
transformation_timer = null
to_chat(src, "<B>You are now a human.</B>")
notransform = FALSE
icon = initial(icon)
invisibility = 0
set_species(/datum/species/human)
set_species(species)
return src
/mob/living/carbon/human/AIize(transfer_after = TRUE, client/preference_source)