Skip to content

Commit 2247985

Browse files
authored
edition deck price fix
1 parent 22cb9d5 commit 2247985

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

items/enhanced.lua

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ local e_deck = {
101101
return { vars = { localize({ type = "name_text", set = "Edition", key = "e_" .. aaa }) } }
102102
end,
103103
edeck_type = "edition",
104-
config = {},
104+
config = { cry_no_edition_price = true },
105105
apply = function(self)
106106
local aaa = cry_get_enchanced_deck_info(self)
107107
G.GAME.modifiers.cry_force_edition = aaa
@@ -348,17 +348,6 @@ return {
348348
function Card:change_suit(new_suit)
349349
return cs(self, not self.no_forced_suit and G.GAME.modifiers.cry_force_suit or new_suit)
350350
end
351-
local sc = Card.set_cost
352-
function Card:set_cost()
353-
if self.edition and G.GAME.modifiers.cry_no_edition_price then
354-
local m = cry_deep_copy(self.edition)
355-
self.edition = nil
356-
sc(self)
357-
self.edition = m
358-
else
359-
sc(self)
360-
end
361-
end
362351
local ccl = Card.click
363352
function Card:click()
364353
ccl(self)

0 commit comments

Comments
 (0)