Adds Card Ops bundle

This commit is contained in:
SmArtKar
2021-02-04 18:57:00 +03:00
parent c202914b65
commit 2cd339f776
6 changed files with 70 additions and 18 deletions
+7 -1
View File
@@ -344,6 +344,12 @@
/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(.)
if(pack.illegal)
cardtypes.Remove(cardtype)
qdel(pack)
for(var/i in 1 to 10)
cardpacktype = pick(subtypesof(/obj/item/cardpack))
cardpacktype = pick(cardtypes)
new cardpacktype(.)