Skip to content

Commit

Permalink
fake morphine :trollface:
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusLarsson421 committed Aug 5, 2024
1 parent c06e9dd commit 45861bb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion code/game/objects/items/plushes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@
icon_state = "borgplush_peace"

var/sound_alarm = 'sound/ai/harmalarm.ogg'
var/recharge_time = 30
var/recharge_time = 60
var/cooldown = FALSE

/obj/item/toy/plush/sillycons/peace/attack_self(mob/user)
Expand All @@ -934,6 +934,7 @@
if(sound_alarm && !cooldown)
audible_message("<font color='red' size='5'>HUMAN HARM</font>")
playsound(src, sound_alarm, 25, 1)

cooldown = TRUE
addtimer(VARSET_CALLBACK(src, cooldown, FALSE), recharge_time)

Expand All @@ -943,6 +944,21 @@
desc = "Looks cute, might inject you with morphine later."
icon_state = "borgplush_medi"

var/sound_alarm = 'sound/items/hypospray.ogg'
var/recharge_time = 60
var/cooldown = FALSE

/obj/item/toy/plush/sillycons/medi/attack_self(mob/user)
. = ..()
if(sound_alarm && !cooldown)
playsound(src, sound_alarm, 25, 1)
to_chat(user, "<span class='notice'>[src] injects you with morphine. D'awww.</span>")

cooldown = TRUE
addtimer(VARSET_CALLBACK(src, cooldown, FALSE), recharge_time)
else
to_chat(user, "<span class='notice'>[src] is out of morphine. N'awww.</span>")

/obj/item/toy/plush/sillycons/medi/syndie
name = "Syndicate Mediborg"
desc = "Emotionless killing machine."
Expand Down

0 comments on commit 45861bb

Please sign in to comment.