Skip to content

Commit

Permalink
Fix The Ox always setting money to 0 (in simulation only)
Browse files Browse the repository at this point in the history
  • Loading branch information
DivvyCr committed Mar 28, 2024
1 parent f06f108 commit 8fe7dbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mods/DVSimulate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ function DV.SIM.eval(played_cards, held_cards, jokers, deck)
-- The last argument to debuff_hand() signifies that it is a CHECK, and doesn't update effects!
if not G.GAME.blind:debuff_hand(DV.SIM.data.played_cards, DV.SIM.data.poker_hands, DV.SIM.data.scoring_name, true) then
-- Check flag prevents this, so have to do manually:
if G.GAME.blind.name == "The Ox" then G.GAME.dollar_buffer = G.GAME.dollar_buffer - G.GAME.dollars end
if G.GAME.blind.name == "The Ox" and DV.SIM.data.scoring_name == G.GAME.current_round.most_played_poker_hand then
G.GAME.dollar_buffer = G.GAME.dollar_buffer - G.GAME.dollars
end
-- 0. Effects from JOKERS that will run BEFORE evaluation (eg. levelling Spare Trousers):
DV.SIM.eval_before_effects()
-- 1. Set mult and chips to base hand values:
Expand Down

0 comments on commit 8fe7dbd

Please sign in to comment.