This commit is contained in:
timothyteakettle
2020-07-16 02:51:07 +01:00
parent a7e2668eff
commit 03bd806c73
10 changed files with 73 additions and 5 deletions
@@ -2,6 +2,28 @@
/mob/living/simple_animal/pickle
name = "pickle"
desc = "funniest shit i've ever seen"
desc = "It's a pickle. It might just be the funniest thing you have ever seen."
health = 100
maxHealth = 100
icon = 'icons/mob/32x64.dmi'
icon_state = "pickle"
del_on_death = TRUE
deathmessage = "The pickle implodes into its own existential dread and disappears!"
friendly_verb_continous = "tickles"
friendly_verb_simple = "tickle"
var/mob/living/original_body
/mob/living/simple_animal/pickle/UnarmedAttack(atom/A)
..() //we want the tickle emote to go before the laugh
if(ismob(A))
var/mob/laugher = A
laugher.emote("laugh")
/mob/living/simple_animal/pickle/Destroy(force, kill_body = TRUE)
if(original_body)
if(kill_body)
original_body.adjustOrganLoss(ORGAN_SLOT_BRAIN, 200) //to be fair, you have to have a very high iq to understand-
original_body.forceMove(get_turf(src))
if(mind)
mind.transfer_to(original_body)
..()
+17
View File
@@ -581,3 +581,20 @@
. = new_mob
qdel(src)
/mob/living/proc/turn_into_pickle()
//if they're already a pickle, turn them back instead
if(istype(src, /mob/living/simple_animal/pickle))
qdel(src, FALSE) //this means the body inside the pickle will be dropped without killing it
else
//make a new pickle on the tile and move their mind into it if possible
var/mob/living/simple_animal/pickle/new_pickle = new /mob/living/simple_animal/pickle(get_turf(src))
new_pickle.original_body = src
if(mind)
mind.transfer_to(new_pickle)
//give them their old access if any
var/obj/item/card/id/mob_access_card = get_idcard()
if(mob_access_card)
new_pickle.access_card = mob_access_card
//move old body inside the pickle for safekeeping (when they die, we'll return the corpse because we're nice)
src.forceMove(new_pickle)