Decks are saveable!

This commit is contained in:
SmArtKar
2021-02-17 18:50:23 +03:00
parent 015bd0b145
commit 756be084bc
5 changed files with 84 additions and 34 deletions
+1 -2
View File
@@ -343,7 +343,6 @@
/datum/supply_pack/costumes_toys/randomised/tcg/generate()
. = ..()
var/cardpacktype
var/list/cardtypes = subtypesof(/obj/item/cardpack)
for(var/cardtype in cardtypes)
var/obj/item/cardpack/pack = new cardtype(.)
@@ -351,5 +350,5 @@
cardtypes.Remove(cardtype)
qdel(pack)
for(var/i in 1 to 10)
cardpacktype = pick(cardtypes)
var/cardpacktype = pick(cardtypes)
new cardpacktype(.)