Allow ghost to become slugcat

This commit is contained in:
foxep
2024-04-02 05:15:27 +08:00
committed by GitHub
parent b803dfe248
commit 5c918a409e
+16
View File
@@ -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