From 5c918a409e6794d4961af2f5b23dfade51d895d6 Mon Sep 17 00:00:00 2001 From: foxep <165693904+foxep@users.noreply.github.com> Date: Tue, 2 Apr 2024 05:15:27 +0800 Subject: [PATCH] Allow ghost to become slugcat --- GainStation13/code/mobs/slugcat.dm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/GainStation13/code/mobs/slugcat.dm b/GainStation13/code/mobs/slugcat.dm index 0cfb680e..8f5f0cb7 100644 --- a/GainStation13/code/mobs/slugcat.dm +++ b/GainStation13/code/mobs/slugcat.dm @@ -101,3 +101,19 @@ weapon = null update_icons() . = ..() + +/mob/living/simple_animal/pet/slugcat/attack_ghost(mob/user) + if(key) + return + if(CONFIG_GET(flag/use_age_restriction_for_jobs)) + if(!isnum(user.client.player_age)) + return + if(!SSticker.mode) + to_chat(user, "Can't become a slugcat before the game has started.") + return + var/be_scug = alert("Become a slugcat? (Warning, You can no longer be cloned!)",,"Yes","No") + if(be_scug == "No" || QDELETED(src) || !isobserver(user)) + return + sentience_act() + key = user.key +