Skip to content

Commit f5b53f1

Browse files
committed
readd misprint cost randomisation
1 parent 1ad5653 commit f5b53f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/misprintize.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,16 @@ function Cryptid.manipulate(card, args)
423423
if card.base then
424424
Cryptid.manipulate_table(card, card, "base", args)
425425
end
426+
if G.GAME.modifiers.cry_misprint_min then
427+
--card.cost = cry_format(card.cost / Cryptid.log_random(pseudoseed('cry_misprint'..G.GAME.round_resets.ante),override and override.min or G.GAME.modifiers.cry_misprint_min,override and override.max or G.GAME.modifiers.cry_misprint_max),"%.2f")
428+
card.misprint_cost_fac = 1
429+
/ Cryptid.log_random(
430+
pseudoseed("cry_misprint" .. G.GAME.round_resets.ante),
431+
override and override.min or G.GAME.modifiers.cry_misprint_min,
432+
override and override.max or G.GAME.modifiers.cry_misprint_max
433+
)
434+
card:set_cost()
435+
end
426436
if caps then
427437
for i, v in pairs(caps) do
428438
if type(v) == "table" and not v.tetrate then

0 commit comments

Comments
 (0)