Adds the ringbell and maps it into the boxing simulation (#11644)

This commit is contained in:
Casper3667
2021-04-19 18:38:16 +02:00
committed by GitHub
parent b55da6d54a
commit feef4e4168
7 changed files with 32 additions and 1 deletions
+19
View File
@@ -16,6 +16,7 @@
* Action figures
* Plushies
* Toy cult sword
* Ring bell
*/
@@ -1037,6 +1038,24 @@
drop_sound = 'sound/items/drop/cardboardbox.ogg'
pickup_sound = 'sound/items/pickup/cardboardbox.ogg'
/obj/item/toy/ringbell
name = "ringside bell"
desc = "A bell used to signal the beginning and end of various ring sports."
desc_info = "Use help intent on the bell to signal the start of a contest\ndisarm intent to signal the end of a contest and\nharm intent to signal a disqualification."
icon_state = "ringbell"
anchored = TRUE
/obj/item/toy/ringbell/attack_hand(mob/user)
switch(user.a_intent)
if (I_HELP)
user.visible_message(FONT_LARGE(SPAN_NOTICE("[user] rings \the [src], signalling the beginning of the contest.")), SPAN_NOTICE("You ring \the [src] to signal the beginning of the contest!"))
playsound(user.loc, 'sound/items/oneding.ogg', 60, 1)
if (I_DISARM)
user.visible_message(FONT_LARGE(SPAN_NOTICE("[user] rings \the [src] three times, signalling the end of the contest!")), SPAN_NOTICE("You ring \the [src] to signal the end of the contest!"))
playsound(user.loc, 'sound/items/threedings.ogg', 60, 1)
if (I_HURT)
user.visible_message(FONT_LARGE(SPAN_WARNING("[user] rings \the [src] repeatedly, signalling a disqualification!")), SPAN_WARNING("You ring \the [src] to signal a disqualification!"))
playsound(user.loc, 'sound/items/manydings.ogg', 60, 1)
//baystation desk toys