mini spawner + arcade rotation

This commit is contained in:
David Winters
2021-04-28 11:58:37 -04:00
parent acc0243d4f
commit 47b19df21b
3 changed files with 59 additions and 1 deletions
+22 -1
View File
@@ -129,6 +129,7 @@
* Toy xeno
* Fake gun * 2
* Toy chainsaw
* Random tabletop miniature spawner
*/
/obj/item/toy/plushie/ipc
@@ -141,6 +142,9 @@
/obj/item/weapon/reagent_containers/food/snacks/slice/bread
var/toasted = FALSE
/obj/item/weapon/reagent_containers/food/snacks/tastybread
var/toasted = FALSE
/obj/item/weapon/reagent_containers/food/snacks/slice/bread/afterattack(atom/A, mob/user as mob, proximity)
if(istype(A, /obj/item/toy/plushie/ipc) && !toasted)
toasted = TRUE
@@ -149,6 +153,14 @@
to_chat(user, "<span class='notice'> You insert bread into the toaster. </span>")
playsound(loc, 'sound/machines/ding.ogg', 50, 1)
/obj/item/weapon/reagent_containers/food/snacks/tastybread/afterattack(atom/A, mob/user as mob, proximity)
if(istype(A, /obj/item/toy/plushie/ipc) && !toasted)
toasted = TRUE
icon = 'icons/obj/toy_vr.dmi'
icon_state = "toast"
to_chat(user, "<span class='notice'> You insert bread into the toaster. </span>")
playsound(loc, 'sound/machines/ding.ogg', 50, 1)
/obj/item/toy/plushie/ipc/attackby(obj/item/I as obj, mob/living/user as mob)
if(istype(I, /obj/item/weapon/material/kitchen/utensil))
to_chat(user, "<span class='notice'> You insert the [I] into the toaster. </span>")
@@ -655,4 +667,13 @@
return ..()
/obj/item/toy/chainsaw/proc/cooldownreset()
cooldown = 0
cooldown = 0
/obj/random/miniature
name = "Random miniature"
desc = "This is a random miniature."
icon = 'icons/obj/toy.dmi'
icon_state = "aliencharacter"
/obj/random/mech_toy/item_to_spawn()
return pick(typesof(/obj/item/toy/character))