Fix Survivor edgecase, Improve Escapey
This commit is contained in:
parent
050289d7bf
commit
70895b77e8
3 changed files with 16 additions and 6 deletions
|
|
@ -89,7 +89,7 @@ target = "functions/state_events.lua"
|
||||||
pattern = "for _, v in ipairs(SMODS.get_card_areas('playing_cards')) do"
|
pattern = "for _, v in ipairs(SMODS.get_card_areas('playing_cards')) do"
|
||||||
position = "after"
|
position = "after"
|
||||||
payload = '''if v == G.hand and not (G.GAME.blind and G.GAME.blind.name == "The Card" and not G.GAME.blind.disabled) and next(SMODS.find_card("j_jane_survivor")) then
|
payload = '''if v == G.hand and not (G.GAME.blind and G.GAME.blind.name == "The Card" and not G.GAME.blind.disabled) and next(SMODS.find_card("j_jane_survivor")) then
|
||||||
if Cryptid then
|
if Jane.cry then
|
||||||
for _, v in ipairs(G.hand.cards) do
|
for _, v in ipairs(G.hand.cards) do
|
||||||
local area = {cards = {v}}
|
local area = {cards = {v}}
|
||||||
SMODS.calculate_main_scoring({cardarea = area, full_hand = area.cards, scoring_hand = area.cards, scoring_name = text, poker_hands = poker_hands}, area.cards)
|
SMODS.calculate_main_scoring({cardarea = area, full_hand = area.cards, scoring_hand = area.cards, scoring_name = text, poker_hands = poker_hands}, area.cards)
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.8.1"
|
"version": "1.8.2"
|
||||||
}
|
}
|
||||||
|
|
@ -193,7 +193,17 @@ local esc = SMODS.Joker {
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
Bakery_use_button_text = function(_, card)
|
Bakery_use_button_text = function(_, card)
|
||||||
return card.debuff and "DEBUFFED" or "ESCAPE"
|
if card.debuff then
|
||||||
|
return "DEBUFFED"
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in ipairs(G.consumeables.cards) do
|
||||||
|
if destructible(v) then
|
||||||
|
return "CONSUME"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return "ESCAPE"
|
||||||
end,
|
end,
|
||||||
Bakery_use_joker = function(self, card)
|
Bakery_use_joker = function(self, card)
|
||||||
if card.debuff then
|
if card.debuff then
|
||||||
|
|
@ -235,9 +245,9 @@ local esc = SMODS.Joker {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local scaling = Jane.cry and G.GAME.dollars or math.min(G.GAME.dollars, extra.max)
|
local tag_money = Jane.cry and G.GAME.dollars or math.min(G.GAME.dollars, extra.max)
|
||||||
local tags = scaling * (math.pow(extra.xmoney, xtimes) - 1)
|
local tag_times = Jane.cry and math.pow(extra.xmoney, xtimes) - 1 or xtimes + 1
|
||||||
ease_dollars(math.ceil(times * extra.money + tags))
|
ease_dollars(math.ceil(times * extra.money + tag_money * tag_times))
|
||||||
end,
|
end,
|
||||||
tag_threshold = 30,
|
tag_threshold = 30,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue