Skip to content

Commit d0224f3

Browse files
committed
BryceTheNobody Hotfix
Made the localisation actually match what the joker does
1 parent b14e9ee commit d0224f3

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

content/cards/05_bryce.lua

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ SMODS.Joker {
33
key = 'brycethenobody',
44

55
loc_vars = function(self, info_queue, card)
6-
local numerator, denominator = SMODS.get_probability_vars(card, card.ability.extra.base, card.ability.extra.odds,
7-
'bryce1')
86
local suit = (G.GAME.current_round.kh_bryce_card or {}).suit or 'Hearts'
97
return {
108
vars = {
119
card.ability.extra.mult, --1
12-
numerator, --2
13-
denominator, --3
1410
localize(suit, 'suits_singular'),
15-
colours = { G.C.SUITS[suit] } -- 4
11+
colours = { G.C.SUITS[suit] } -- 2
1612
}
1713
}
1814
end,
@@ -29,19 +25,15 @@ SMODS.Joker {
2925
config = {
3026
extra = {
3127
mult = 3,
32-
base = 1,
33-
odds = 2
3428
}
3529
},
3630
calculate = function(self, card, context)
3731
if context.individual and context.cardarea == G.play then
3832
if context.other_card:is_suit(G.GAME.current_round.kh_bryce_card.suit) then
39-
if SMODS.pseudorandom_probability(card, 'bryce', card.ability.extra.base, card.ability.extra.odds, 'bryce1') then
40-
context.other_card.ability.perma_mult = context.other_card.ability.perma_mult or 0
41-
context.other_card.ability.perma_mult = context.other_card.ability.perma_mult +
42-
card.ability.extra.mult
43-
SMODS.calculate_effect({ message = localize('k_upgrade_ex'), colour = G.C.FILTER }, card)
44-
end
33+
context.other_card.ability.perma_mult = context.other_card.ability.perma_mult or 0
34+
context.other_card.ability.perma_mult = context.other_card.ability.perma_mult +
35+
card.ability.extra.mult
36+
SMODS.calculate_effect({ message = localize('k_upgrade_ex'), colour = G.C.FILTER }, context.other_card)
4537
end
4638
end
4739
end

content/crossmod/joker_display_definitions.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,21 +228,19 @@ jd_def["j_kh_roxas"] = {
228228
-- Bryce the Nobody
229229
jd_def["j_kh_brycethenobody"] = {
230230

231+
text = {
232+
{ text = "+" },
233+
{ ref_table = "card.joker_display_values", ref_value = "mult", colour = G.C.MULT },
234+
},
235+
231236
reminder_text = {
232237
{ text = "(" },
233238

234239
{ ref_table = "card.joker_display_values", ref_value = "bryce_card_suit" },
235240
{ text = ")" }
236241
},
237-
extra = {
238-
{
239-
{ text = "(" },
240-
{ ref_table = "card.joker_display_values", ref_value = "odds" },
241-
{ text = ")" },
242-
}
243-
},
244-
extra_config = { colour = G.C.GREEN, scale = 0.3 },
245242
calc_function = function(card)
243+
card.joker_display_values.mult = card.ability.extra.mult
246244
card.joker_display_values.odds = localize { type = 'variable', key = "jdis_odds", vars = { card.ability.extra.base, card.ability.extra.odds } }
247245
card.joker_display_values.bryce_card_suit = localize(G.GAME.current_round.kh_bryce_card.suit,
248246
'suits_singular')

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ return {
331331
j_kh_brycethenobody = {
332332
name = "{E:kh_pulse}BryceTheNobody",
333333
text = {
334-
"Every played {V:1}#4#{} card",
334+
"Every played {V:1}#2#{} card",
335335
"permanently gain",
336336
"{C:mult}+#1#{} Mult when scored",
337337
"{s:0.8}suit changes at end of round",

0 commit comments

Comments
 (0)