Skip to content

Commit 63ff745

Browse files
committed
Merge branch 'balance-things' of https://github.com/SpectralPack/Cryptid into balance-things
2 parents 72ed503 + b84a04c commit 63ff745

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

items/epic.lua

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -208,27 +208,41 @@ local googol_play = {
208208
cost = 15,
209209
copies = 1,
210210
rounds = 3,
211-
rounds_left = 3
211+
rounds_left = 3,
212212
},
213213
mainline = { copies = 2, rounds = 3, rounds_left = 3 },
214214
},
215215
loc_vars = function(self, info_queue, center)
216-
return { key = Cryptid.gameset_loc(self, { modest = "balanced" }), vars = { center.ability.copies, center.ability.rounds, center.ability.rounds_left } }
216+
return {
217+
key = Cryptid.gameset_loc(self, { modest = "balanced" }),
218+
vars = { center.ability.copies, center.ability.rounds, center.ability.rounds_left },
219+
}
217220
end,
218221
calculate = function(self, card, context)
219222
local gameset = Card.get_gameset(card)
220223
if context.after and not context.retrigger_joker and not context.blueprint then
221224
card.ability.rounds_left = card.ability.rounds_left - 1
222225
if to_big(card.ability.rounds_left) <= to_big(0) then
223-
local eval = function(card) return not card.REMOVED end
226+
local eval = function(card)
227+
return not card.REMOVED
228+
end
224229
juice_card_until(self, eval, true)
225230
end
226231
return {
227-
message = to_big(card.ability.rounds_left) > to_big(0) and ((card.ability.rounds-card.ability.rounds_left)..'/'..card.ability.rounds) or localize('k_active_ex'),
228-
colour = G.C.FILTER
232+
message = to_big(card.ability.rounds_left) > to_big(0)
233+
and ((card.ability.rounds - card.ability.rounds_left) .. "/" .. card.ability.rounds)
234+
or localize("k_active_ex"),
235+
colour = G.C.FILTER,
229236
}
230237
end
231-
if (context.selling_self and not context.retrigger_joker and not context.blueprint and to_big(card.ability.rounds_left) <= to_big(0)) or context.forcetrigger then
238+
if
239+
(
240+
context.selling_self
241+
and not context.retrigger_joker
242+
and not context.blueprint
243+
and to_big(card.ability.rounds_left) <= to_big(0)
244+
) or context.forcetrigger
245+
then
232246
local jokers = {}
233247
for i = 1, #G.jokers.cards do
234248
if G.jokers.cards[i] ~= card then
@@ -419,12 +433,16 @@ local canvas = {
419433
blueprint_compat = true,
420434
atlas = "atlasepic",
421435
calculate = function(self, card, context)
422-
if context.retrigger_joker_check and not context.retrigger_joker and context.other_card == G.jokers.cards[1] then
436+
if
437+
context.retrigger_joker_check
438+
and not context.retrigger_joker
439+
and context.other_card == G.jokers.cards[1]
440+
then
423441
local num_retriggers = 0
424442
local rarities = {}
425443
for i = 1, #G.jokers.cards do
426444
local joker = G.jokers.cards[i]
427-
if not rarities[joker .config.center.rarity] then
445+
if not rarities[joker.config.center.rarity] then
428446
rarities[joker.config.center.rarity] = true
429447
num_retriggers = num_retriggers + 1
430448
end
@@ -910,7 +928,7 @@ local boredom = {
910928
local cards = {}
911929
for i, v in pairs(G.jokers.cards) do
912930
if v.config.center.key ~= "j_cry_boredom" then
913-
cards[#cards+1] = v
931+
cards[#cards + 1] = v
914932
end
915933
end
916934
local joker = pseudorandom_element(cards, pseudoseed("cry_boredom_joker"))
@@ -999,16 +1017,11 @@ local number_blocks = {
9991017
}
10001018
end,
10011019
calculate = function(self, card, context)
1002-
if
1003-
context.after
1004-
and not context.blueprint
1005-
and not context.before
1006-
and not context.after
1007-
then
1020+
if context.after and not context.blueprint and not context.before and not context.after then
10081021
for i, v in pairs(G.hand.cards) do
10091022
if v:get_id() == G.GAME.current_round.cry_nb_card.id and not v.debuff then
10101023
card.ability.extra.money =
1011-
lenient_bignum(to_big(card.ability.extra.money) + card.ability.extra.money_mod)
1024+
lenient_bignum(to_big(card.ability.extra.money) + card.ability.extra.money_mod)
10121025
card_eval_status_text(card, "extra", nil, nil, nil, { message = localize("k_upgrade_ex") })
10131026
return nil, true
10141027
end

items/misc_joker.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7535,7 +7535,7 @@ local coin = {
75357535
loc_vars = function(self, info_queue, center)
75367536
return {
75377537
vars = {
7538-
number_format(center.ability.extra.money-1),
7538+
number_format(center.ability.extra.money - 1),
75397539
number_format(
75407540
center.ability.extra.money
75417541
* (Card.get_gameset(card) ~= "modest" and center.ability.immutable.money_mod or 4)
@@ -8001,8 +8001,8 @@ local translucent = {
80018001
eternal_compat = false,
80028002
demicoloncompat = true,
80038003
atlas = "atlasthree",
8004-
loc_vars = function(self, queue, card)
8005-
queue[#queue+1] = {set="Other",key="perishable", vars = {5, 5}}
8004+
loc_vars = function(self, queue, card)
8005+
queue[#queue + 1] = { set = "Other", key = "perishable", vars = { 5, 5 } }
80068006
end,
80078007
calculate = function(self, card, context)
80088008
if (context.selling_self and not (context.retrigger_joker or context.blueprint)) or context.forcetrigger then

0 commit comments

Comments
 (0)