diff --git a/code/modules/tcg/cards.dm b/code/modules/tcg/cards.dm index e9bab0f124..88a30a4a20 100644 --- a/code/modules/tcg/cards.dm +++ b/code/modules/tcg/cards.dm @@ -1,7 +1,7 @@ #define TAPPED_ANGLE 90 #define UNTAPPED_ANGLE 0 -//The game itself is supposed to be played on 3x2 table. This is important since it's the search range of the cards for automation. +GLOBAL_VAR_INIT(packs_opened, 0) //A global amount of packs opened this round. Important for chances. This system was made to prevent mass-opening of packs to get all the good stuff in one round. /datum/tcg_card var/name = "Stupid Coder" @@ -232,6 +232,11 @@ "Legendary" = 1, "Epic" = 9, "Rare" = 30) + ///How quickly chances of getting this card degrade + var/list/rarity_cap = list( + "Legendary" = 25, //Only in first 25 packs + "Epic" = 50, //Only in first 50 packs + "Rare" = 100) //Only in first 100 packs custom_price = PRICE_EXPENSIVE @@ -260,6 +265,7 @@ if(prob(contains_coin)) to_chat(user, "...and it came with a flipper, too!") new /obj/item/coin/thunderdome(get_turf(user)) + GLOB.packs_opened += 1 qdel(src) /obj/item/cardpack/proc/buildCardListWithRarity(card_cnt, rarity_cnt)