Morphs that have a perfected form can no longer be seen via health huds. And if a morph mimics a non dense object(like a cigarette) the morph will become non dense (#27018)

* Two morph buffs, and a fix.

* bah woops

* Update code/datums/spells/mimic.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>

---------

Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
1080pCat
2024-10-29 17:25:57 +00:00
committed by GitHub
co-authored by Luc
parent 858e14b275
commit 63a2ba006a
2 changed files with 11 additions and 3 deletions
+5
View File
@@ -120,6 +120,7 @@
user.pixel_y = initial(user.pixel_y)
user.pixel_x = initial(user.pixel_x)
user.layer = MOB_LAYER // Avoids weirdness when mimicing something below the vent layer
user.density = form.density
playsound(user, "bonebreak", 75, TRUE)
show_change_form_message(user, old_name, "[user]")
@@ -145,6 +146,7 @@
user.cut_overlays()
user.icon = initial(user.icon)
user.icon_state = initial(user.icon_state)
user.density = initial(user.density)
if(ishuman(user))
var/mob/living/carbon/human/H = user
H.name_override = null
@@ -193,11 +195,14 @@
var/examine_text
/// What the name of the form is
var/name
/// If the form has density
var/density
/datum/mimic_form/New(atom/movable/form, mob/user)
appearance = form.appearance
examine_text = form.examine(user)
name = form.name
density = form.density
/datum/spell/mimic/morph
action_background_icon_state = "bg_morph"