Skip to content

Commit 3c7a89a

Browse files
authored
Merge pull request #441 from SDM0/main
2 parents 0f2cd72 + 7354408 commit 3c7a89a

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
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: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,15 @@ local happyhouse = {
144144
if
145145
card.ability.extra.check == 114
146146
and G.GAME.round_resets.ante < 8
147-
and not (
148-
G.GAME.selected_back.effect.center.key == "antimatter"
149-
or G.GAME.selected_back.effect.center.key == "equilibrium"
147+
and not (G.GAME.selected_back.effect.center.key == "antimatter" or G.GAME.selected_back.effect.center.key == "equilibrium")
148+
and (
149+
not CardSleeves
150+
or (
151+
CardSleeves
152+
and G.GAME.selected_sleeve
153+
-- and G.GAME.selected_sleeve ~= "sleeve_cry_antimatter_sleeve" TODO: Add check if Antimatter sleeve gets added
154+
and G.GAME.selected_sleeve ~= "sleeve_cry_equilibrium_sleeve"
155+
)
150156
)
151157
then --Yes, the cut off point is boss blind Ante 7. I'm evil >:3.
152158
check_for_unlock({ type = "home_realtor" })
@@ -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 = {

items/spectral.lua

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -713,16 +713,15 @@ local ritual = {
713713
atlas = "atlasnotjokers",
714714
pos = { x = 5, y = 1 },
715715
can_use = function(self, card)
716-
--TODO: CCD card compat
717-
if #G.hand.highlighted > card.ability.max_highlighted then
718-
return false
719-
end
720-
for _, v in ipairs(G.hand.highlighted) do
721-
if v.edition then
722-
return false
716+
if card.area ~= G.hand then
717+
return G.hand and (#G.hand.highlighted == 1) and G.hand.highlighted[1] and not G.hand.highlighted[1].edition
718+
else
719+
local idx = 1
720+
if G.hand.highlighted[1] == card then
721+
idx = 2
723722
end
723+
return (#G.hand.highlighted == 2) and not G.hand.highlighted[idx].edition
724724
end
725-
return true
726725
end,
727726
use = function(self, card, area, copier)
728727
local used_consumable = copier or card

0 commit comments

Comments
 (0)