Skip to content

Commit

Permalink
Fix Erosion causing negative scores
Browse files Browse the repository at this point in the history
  • Loading branch information
DivvyCr committed Jun 4, 2024
1 parent d6a64bd commit a76fab7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mods/DVSimulate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,10 @@ DV.SIM.JOKERS = {
end,
simulate_erosion = function(joker_obj, context)
if context.cardarea == G.jokers and context.global then
DV.SIM.add_mult(joker_obj.ability.extra * (G.GAME.starting_deck_size - #G.playing_cards))
local diff = G.GAME.starting_deck_size - #G.playing_cards
if (diff) > 0 then
DV.SIM.add_mult(joker_obj.ability.extra * diff)
end
end
end,
simulate_reserved_parking = function(joker_obj, context)
Expand Down

0 comments on commit a76fab7

Please sign in to comment.