@@ -743,22 +743,24 @@ local greed = {
743743 }
744744 end ,
745745 set_blind = function (self , reset , silent )
746- if to_big (G .GAME .dollars ) < to_big (5000 ) then
747- G .GAME .blind .chips = -- go my equations
748- ((get_blind_amount (G .GAME .round_resets .ante ) * G .GAME .starting_params .ante_scaling ) + (math.floor (
749- G .GAME .dollars / 5
750- ) * (get_blind_amount (G .GAME .round_resets .ante ) * 0.25 )))
751- else
752- G .GAME .blind .chips = -- set cap at $5000
753- (
754- (get_blind_amount (G .GAME .round_resets .ante ) * G .GAME .starting_params .ante_scaling )
755- + (
756- math.floor (5000 / 5 ) -- 1000 extra increments
757- * (get_blind_amount (G .GAME .round_resets .ante ) * 0.25 )
746+ if to_big (G .GAME .dollars ) > to_big (0 ) then
747+ if to_big (G .GAME .dollars ) < to_big (5000 ) then
748+ G .GAME .blind .chips = -- go my equations
749+ ((get_blind_amount (G .GAME .round_resets .ante ) * G .GAME .starting_params .ante_scaling ) + (math.floor (
750+ G .GAME .dollars / 5
751+ ) * (get_blind_amount (G .GAME .round_resets .ante ) * 0.25 )))
752+ else
753+ G .GAME .blind .chips = -- set cap at $5000
754+ (
755+ (get_blind_amount (G .GAME .round_resets .ante ) * G .GAME .starting_params .ante_scaling )
756+ + (
757+ math.floor (5000 / 5 ) -- 1000 extra increments
758+ * (get_blind_amount (G .GAME .round_resets .ante ) * 0.25 )
759+ )
758760 )
759- )
761+ end
762+ G .GAME .blind .chip_text = number_format (G .GAME .blind .chips )
760763 end
761- G .GAME .blind .chip_text = number_format (G .GAME .blind .chips )
762764 end ,
763765 disable = function (self , silent )
764766 G .GAME .blind .chips = get_blind_amount (G .GAME .round_resets .ante ) * G .GAME .starting_params .ante_scaling
0 commit comments