From b0e5ecf6c8fe28aba417137c05ad9f4a1ff0b1e9 Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 16 Jun 2024 17:00:15 -0400 Subject: [PATCH] Morphs now properly update their name tags when disgusing (#2215) --- monkestation/code/datums/actions/mobs/assume_form.dm | 7 +++++++ tgstation.dme | 1 + 2 files changed, 8 insertions(+) create mode 100644 monkestation/code/datums/actions/mobs/assume_form.dm diff --git a/monkestation/code/datums/actions/mobs/assume_form.dm b/monkestation/code/datums/actions/mobs/assume_form.dm new file mode 100644 index 000000000000..d090fe7f84cb --- /dev/null +++ b/monkestation/code/datums/actions/mobs/assume_form.dm @@ -0,0 +1,7 @@ +/datum/action/cooldown/mob_cooldown/assume_form/assume_appearances(atom/movable/target_atom) + . = ..() + owner?.update_name_tag() + +/datum/action/cooldown/mob_cooldown/assume_form/reset_appearances() + . = ..() + owner?.update_name_tag() diff --git a/tgstation.dme b/tgstation.dme index e1fdfac38bd5..be687473fb46 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -5728,6 +5728,7 @@ #include "monkestation\code\datums\stamina_container.dm" #include "monkestation\code\datums\twitch_data.dm" #include "monkestation\code\datums\achievements\misc_achievements.dm" +#include "monkestation\code\datums\actions\mobs\assume_form.dm" #include "monkestation\code\datums\ai\idle_behaviors\idle_dukeman.dm" #include "monkestation\code\datums\ai\monkey\dukeman_controller.dm" #include "monkestation\code\datums\ai_laws\laws_monke.dm"