From 960f110db276ee8f9a0538c91730787e69eab500 Mon Sep 17 00:00:00 2001 From: Eremel Date: Wed, 1 Jan 2025 00:35:46 +0000 Subject: [PATCH] allow negative modifiers on cards --- lovely/better_calc.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lovely/better_calc.toml b/lovely/better_calc.toml index 7548e62e..42c1f59f 100644 --- a/lovely/better_calc.toml +++ b/lovely/better_calc.toml @@ -189,22 +189,22 @@ payload = """ if context.cardarea == G.play and context.main_scoring then ret.playing_card = {} local chips = card:get_chip_bonus() - if chips > 0 then + if chips then ret.playing_card.chips = chips end local mult = card:get_chip_mult() - if mult > 0 then + if mult then ret.playing_card.mult = mult end local x_mult = card:get_chip_x_mult(context) - if x_mult > 0 then + if x_mult then ret.playing_card.x_mult = x_mult end local p_dollars = card:get_p_dollars() - if p_dollars > 0 then + if p_dollars then ret.playing_card.p_dollars = p_dollars end """ @@ -229,12 +229,12 @@ payload = """ if context.cardarea == G.hand and context.main_scoring then ret.playing_card = {} local h_mult = card:get_chip_h_mult() - if h_mult > 0 then + if h_mult then ret.playing_card.h_mult = h_mult end local h_x_mult = card:get_chip_h_x_mult() - if h_x_mult > 0 then + if h_x_mult then ret.playing_card.x_mult = h_x_mult end """