Skip to content

Commit 24d5562

Browse files
committed
Merge branch 'main' into shinytags
2 parents d15a10a + 2a416ba commit 24d5562

File tree

19 files changed

+1381
-216
lines changed

19 files changed

+1381
-216
lines changed

assets/1x/atlasepic.png

-6.55 KB
Loading

assets/2x/atlasepic.png

-48.7 KB
Loading

config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ return {
99
["family_mode"] = false,
1010
["experimental"] = false,
1111
["HTTPS"] = false,
12-
["menu"] = false,
12+
["menu"] = true,
1313
}

items/code.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,7 @@ local ctrl_v = {
31023102
card:add_to_deck()
31033103
table.insert(G.playing_cards, card)
31043104
G.hand:emplace(card)
3105+
playing_card_joker_effects({ card })
31053106
return true
31063107
end,
31073108
}))

items/deck.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ local very_fair = {
1616
end,
1717
init = function(self)
1818
very_fair_quip = {}
19+
local avts = SMODS.add_voucher_to_shop
20+
function SMODS.add_voucher_to_shop(...)
21+
if G.GAME.modifiers.cry_no_vouchers then
22+
return
23+
end
24+
return avts(...)
25+
end
1926
end,
2027
}
2128
local equilibrium = {

items/epic.lua

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -262,25 +262,7 @@ local sync_catalyst = {
262262
"Math",
263263
},
264264
},
265-
unlocked = false,
266-
check_for_unlock = function(self, args)
267-
if safe_get(G, "jokers") and safe_get(G.GAME, "round_resets", "ante") and G.GAME.round_resets.ante < 9 then
268-
local rarities = {}
269-
for i = 1, #G.jokers.cards do
270-
local card = G.jokers.cards[i]
271-
rarities[card.config.center.rarity .. "_rarity"] = true
272-
end
273-
if rarities["3_rarity"] and rarities["4_rarity"] and rarities["cry_epic_rarity"] then
274-
unlock_card(self)
275-
end
276-
end
277-
if args.type == "cry_lock_all" then
278-
lock_card(self)
279-
end
280-
if args.type == "cry_unlock_all" then
281-
unlock_card(self)
282-
end
283-
end,
265+
unlocked = true,
284266
}
285267

286268
-- Negative Joker
@@ -410,7 +392,7 @@ local error_joker = {
410392
atlas = "atlasepic",
411393
loc_vars = function(self, info_queue, center)
412394
if safe_get(G.GAME, "pseudorandom") and G.STAGE == G.STAGES.RUN then
413-
cry_error_msgs[#cry_error_msgs].string = "%%" .. predict_card_for_shop()
395+
cry_error_msgs[#cry_error_msgs].string = "%%" .. (pcall(predict_card_for_shop) or "J6")
414396
else
415397
cry_error_msgs[#cry_error_msgs].string = "%%J6"
416398
end
@@ -1881,6 +1863,44 @@ local spectrogram = {
18811863
},
18821864
},
18831865
}
1866+
local jtron = {
1867+
object_type = "Joker",
1868+
name = "cry-jtron",
1869+
key = "jtron",
1870+
config = { extra = { bonus = 1, current = 0 } },
1871+
rarity = "cry_epic",
1872+
cost = 14,
1873+
order = 64,
1874+
blueprint_compat = true,
1875+
atlas = "atlasepic",
1876+
pos = { x = 2, y = 5 },
1877+
loc_vars = function(self, info_queue, center)
1878+
info_queue[#info_queue + 1] = G.P_CENTERS.j_joker
1879+
center.ability.extra.current = 1 + center.ability.extra.bonus * #SMODS.find_card("j_joker")
1880+
return { vars = { center.ability.extra.bonus, center.ability.extra.current } }
1881+
end,
1882+
calculate = function(self, card, context)
1883+
card.ability.extra.current = 1 + card.ability.extra.bonus * #SMODS.find_card("j_joker")
1884+
if context.cardarea == G.jokers and context.joker_main then
1885+
return {
1886+
message = localize({
1887+
type = "variable",
1888+
key = "a_powmult",
1889+
vars = {
1890+
number_format(card.ability.extra.current),
1891+
},
1892+
}),
1893+
Emult_mod = card.ability.extra.current,
1894+
colour = G.C.DARK_EDITION,
1895+
}
1896+
end
1897+
end,
1898+
cry_credits = {
1899+
idea = { "AlexZGreat" },
1900+
art = { "Darren_the_frog" },
1901+
code = { "candycanearter" },
1902+
},
1903+
}
18841904
return {
18851905
name = "Epic Jokers",
18861906
items = {
@@ -1907,5 +1927,6 @@ return {
19071927
soccer,
19081928
fleshpanopticon,
19091929
spectrogram,
1930+
jtron,
19101931
},
19111932
}

items/exotic.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,12 +1446,7 @@ local formidiulosus = {
14461446
G.jokers:emplace(card)
14471447
end
14481448
end
1449-
if
1450-
context.cardarea == G.jokers
1451-
and (to_big(card.ability.extra.Emult) > to_big(1))
1452-
and not context.before
1453-
and not context.after
1454-
then
1449+
if context.cardarea == G.jokers and (to_big(card.ability.extra.Emult) > to_big(1)) and context.joker_main then
14551450
return {
14561451
message = localize({
14571452
type = "variable",

items/m.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ local mneon = {
368368
if context.end_of_round and not context.blueprint and not context.individual and not context.repetition then
369369
local jollycount = 0
370370
for i = 1, #G.jokers.cards do
371-
if G.jokers.cards[i]:is_jolly() or safe_get(G.jokers.cards[i], "pools", "M") then
371+
if G.jokers.cards[i]:is_jolly() or safe_get(G.jokers.cards[i].config.center, "pools", "M") then
372372
jollycount = jollycount + 1
373373
end
374374
end
@@ -1220,7 +1220,7 @@ local mprime = {
12201220
elseif context.other_joker then
12211221
if
12221222
context.other_joker
1223-
and (context.other_joker:is_jolly() or safe_get(context.other_joker, "pools", "M"))
1223+
and (context.other_joker:is_jolly() or safe_get(context.other_joker.config.center, "pools", "M"))
12241224
then
12251225
if not Talisman.config_file.disable_anims then
12261226
G.E_MANAGER:add_event(Event({
@@ -1286,7 +1286,7 @@ local macabre = {
12861286
v ~= card
12871287
and not v:is_jolly()
12881288
and v.config.center.key ~= "j_cry_mprime"
1289-
and not (v.ability.eternal or v.getting_sliced or safe_get(v, "pools", "M"))
1289+
and not (v.ability.eternal or v.getting_sliced or safe_get(v.config.center, "pools", "M"))
12901290
then
12911291
destroyed_jokers[#destroyed_jokers + 1] = v
12921292
end

0 commit comments

Comments
 (0)