Skip to content

Commit 4b618cb

Browse files
committed
"Home Realtor" achievement sleeve check and "Garden of Forking Paths" improvements
1 parent 9c43364 commit 4b618cb

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

items/achievement.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ local home_realtor = {
337337
atlas = "cry_achievements",
338338
--reset_on_startup = true,
339339
unlock_condition = function(self, args)
340-
--todo: check for doe/antimatter sleeves
340+
--TODO: check for antimatter sleeve in the check_unlock when it's added
341341
if args.type == "home_realtor" then
342342
return true
343343
end

items/misc_joker.lua

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ local happyhouse = {
148148
G.GAME.selected_back.effect.center.key == "antimatter"
149149
or G.GAME.selected_back.effect.center.key == "equilibrium"
150150
)
151+
and (not CardSleeves
152+
or (CardSleeves
153+
and G.GAME.selected_sleeve
154+
-- and G.GAME.selected_sleeve ~= "sleeve_cry_antimatter_sleeve" TODO: Add check if Antimatter sleeve gets added
155+
and G.GAME.selected_sleeve ~= "sleeve_cry_equilibrium_sleeve")
156+
)
151157
then --Yes, the cut off point is boss blind Ante 7. I'm evil >:3.
152158
check_for_unlock({ type = "home_realtor" })
153159
end
@@ -1750,17 +1756,20 @@ local gardenfork = {
17501756
return { vars = { center.ability.extra.money } }
17511757
end,
17521758
calculate = function(self, card, context)
1753-
if context.cardarea == G.jokers and context.before then
1759+
if context.cardarea == G.jokers and context.before and context.full_hand then
1760+
local has_ace = false
1761+
local has_7 = false
17541762
for i = 1, #context.full_hand do
17551763
if context.full_hand[i]:get_id() == 14 then
1756-
for j = 1, #context.full_hand do
1757-
if context.full_hand[j]:get_id() == 7 then -- :( ekshpenshive
1758-
ease_dollars(card.ability.extra.money)
1759-
return { message = "$" .. card.ability.extra.money, colour = G.C.MONEY }
1760-
end
1761-
end
1764+
has_ace = true
1765+
elseif context.full_hand[i]:get_id() == 7 then
1766+
has_7 = true
17621767
end
17631768
end
1769+
if has_ace and has_7 then
1770+
ease_dollars(card.ability.extra.money)
1771+
return { message = "$" .. card.ability.extra.money, colour = G.C.MONEY }
1772+
end
17641773
end
17651774
end,
17661775
cry_credits = {

0 commit comments

Comments
 (0)