From a683de674af151a549b0a3d3c756fb0405adda61 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 2 Mar 2014 03:12:09 -0500 Subject: [PATCH] Custom fluff item for Lycaeon --- .../mob/living/carbon/metroid/metroid.dm | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/metroid/metroid.dm b/code/modules/mob/living/carbon/metroid/metroid.dm index b6789a07e6a..f9bce720cb3 100644 --- a/code/modules/mob/living/carbon/metroid/metroid.dm +++ b/code/modules/mob/living/carbon/metroid/metroid.dm @@ -1071,4 +1071,31 @@ mob/living/carbon/slime/var/temperature_resistance = T0C+75 return else ..() -*/ \ No newline at end of file +*/ + +/obj/item/slime_color + name = "slimeperson color selector" + desc = "Allows you to change your slimeperson color, once." + icon = 'icons/obj/device.dmi' + icon_state = "t-ray0" + flags = TABLEPASS + force = 1.0 + w_class = 1.0 + throwforce = 1.0 + throw_speed = 3 + throw_range = 6 + origin_tech = "biotech=4" + _color = "grey" + var/Uses = 1 // uses before it goes inert + var/list/slimecolor = list("grey","gold","silver","metal","purple","darkpurple","orange","yellow","red","blue","darkblue","pink","green","lightpink","black","oil","adamantine") + + +/obj/item/slime_color/attack(mob/living/carbon/human/M as mob, mob/user as mob) //changing slime people colors + if(M.dna.mutantrace != "slime" || M != user) return + + + var/pickedcolor = input("Please select a slime color", "Slimeperson color chooser") as null|anything in slimecolor + M.slime_color = pickedcolor + user << "You absorb the pigment and your color shifts!" + M.update_mutantrace() + del(src) //Finally a tidy way to remove all the used cores lying about \ No newline at end of file