Adds an orderable random plushies crate for 1000 credits (#21878)

* ok one second I gotta do something else

* Okay we ball

* Okay we are stealthier now

* Does this work? I have no idea.

* So cloooose

* I don't know what the fuck I am doing

* IT WOOOOOOORKS

* Contra reviews

* oops

* Contra review

* Now it actually works
This commit is contained in:
DGamerL
2023-08-16 21:20:58 +02:00
committed by GitHub
parent 4d916b8f7e
commit f3267d4325
2 changed files with 19 additions and 0 deletions
+13
View File
@@ -594,6 +594,19 @@
/obj/random/plushie/item_to_spawn()
return pick(subtypesof(/obj/item/toy/plushie) - typesof(/obj/item/toy/plushie/fluff) - typesof(/obj/item/toy/plushie/carpplushie)) //exclude the base type.
/obj/random/plushie/explosive
var/explosive_chance = 1 // 1% to spawn a blahbomb!
/obj/random/plushie/explosive/spawn_item()
var/obj/item/toy/plushie/plushie = ..()
if(!prob(explosive_chance))
return plushie
var/obj/item/I = new /obj/item/grenade/syndieminibomb
plushie.has_stuffing = FALSE
plushie.grenade = I
I.forceMove(plushie)
return plushie
/obj/item/toy/plushie/corgi
name = "corgi plushie"
icon_state = "corgi"