Illegal cards will now permanently be marked, not for just one round

This commit is contained in:
SmArtKar
2021-02-16 20:05:59 +03:00
parent 598c19996c
commit 3e95e28f85
2 changed files with 3 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ SUBSYSTEM_DEF(job)
qdel(binder)
else
for(var/card_type in H.client.prefs.tcg_cards)
var/obj/item/tcg_card/card = new(get_turf(H), card_type)
var/obj/item/tcg_card/card = new(get_turf(H), card_type, H.client.prefs.tcg_cards[card_type])
card.forceMove(binder)
binder.cards.Add(card)
binder.check_for_exodia()
@@ -508,7 +508,7 @@ SUBSYSTEM_DEF(job)
qdel(binder)
else
for(var/card_type in N.client.prefs.tcg_cards)
var/obj/item/tcg_card/card = new(get_turf(H), card_type)
var/obj/item/tcg_card/card = new(get_turf(H), card_type, H.client.prefs.tcg_cards[card_type])
card.forceMove(binder)
binder.cards.Add(card)

View File

@@ -368,7 +368,7 @@ SUBSYSTEM_DEF(persistence)
var/list/card_types = list()
for(var/obj/item/tcg_card/card in binder.cards)
//if(!card.illegal) //Uncomment if you want to block syndie cards from saving
card_types.Add(card.datum_type)
card_types[card.datum_type] = card.illegal
ending_human.client.prefs.tcg_cards = card_types
ending_human.client.prefs.save_character(TRUE)