Merge pull request #9648 from Ghommie/Ghommie-cit288

Random plush spawner tweaks and fixes.
This commit is contained in:
kevinz000
2019-10-29 21:22:46 -07:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -366,10 +366,10 @@
/obj/item/toy/plush/random
name = "Illegal plushie"
desc = "Something fucked up"
var/blacklisted_plushes = list(/obj/item/toy/plush/carpplushie/dehy_carp, /obj/item/toy/plush/awakenedplushie, /obj/item/toy/plush/random)
/obj/item/toy/plush/random/Initialize()
..()
var/newtype = pick(subtypesof(/obj/item/toy/plush))
var/newtype = pick(subtypesof(/obj/item/toy/plush) - typecacheof(blacklisted_plushes))
new newtype(loc)
return INITIALIZE_HINT_QDEL