Skip to content

Commit 4f12200

Browse files
committed
tweaks
fixed Roxas doubling logic for Axel Made munny give $1 at end of round
1 parent 40669c7 commit 4f12200

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

content/JokerDisplay/joker_display_definitions.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
-- Chip and Dale (TODO),
21
local jd_def = JokerDisplay.Definitions
32

43
-- Sora

content/cards/04_roxas.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ SMODS.Joker {
55
loc_vars = function(self, info_queue, card)
66
return {
77
vars = {
8-
card.ability.extra.chips_gain, --1
9-
card.ability.extra.discards, --2
8+
card.ability.extra.chips_gain, --1
9+
card.ability.extra.discards, --2
1010
card.ability.extra.discards_remaining, --3
11-
card.ability.extra.chips --4
11+
card.ability.extra.chips --4
1212
}
1313
}
1414
end,
@@ -38,7 +38,6 @@ SMODS.Joker {
3838
chips = card.ability.extra.chips,
3939
}
4040
elseif context.discard and not context.blueprint then
41-
-- receives this context for every discarded card individually
4241
if card.ability.extra.discards_remaining <= 1 then
4342
card.ability.extra.discards_remaining = card.ability.extra.discards
4443
card.ability.extra.chips = card.ability.extra.chips + card.ability.extra.chips_gain

content/cards/06_axel.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ SMODS.Joker {
198198
local name = target.ability.name
199199
local is_excluded = Exclude_list[name]
200200

201-
local joker_rules = {
201+
local joker_rules = { -- do roxas
202202
["Riku"] = { keywords = { levels = true }, unkeywords = { total = true } },
203203
["Loyalty Card"] = { unkeywords = { loyalty_remaining = true, every = true } },
204204
["Caino"] = { unkeywords = { caino_xmult = true } },
@@ -208,6 +208,7 @@ SMODS.Joker {
208208
["Square Joker"] = { keywords = { chip_mod = true } },
209209
["Runner"] = { keywords = { chip_mod = true } },
210210
["Faceless Joker"] = { keywords = { dollars = true } },
211+
["Roxas"] = { unkeywords = { discards_remaining = true, discards = true, chips = true } },
211212
}
212213

213214
local rules = joker_rules[name] or {

content/cards/21_munnypouch.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ SMODS.Joker {
135135

136136
loc_vars = function(self, info_queue, card)
137137
info_queue[#info_queue + 1] = { key = "kh_munnypouch_credits", set = "Other" }
138+
info_queue[#info_queue + 1] = { key = "kh_munny_info", set = "Other" }
138139
return {
139140
vars = {
140141
}
@@ -166,6 +167,7 @@ SMODS.Joker {
166167
loc_vars = function(self, info_queue, card)
167168
return {
168169
vars = {
170+
card.ability.extra.dollars
169171
}
170172
}
171173
end,
@@ -181,12 +183,17 @@ SMODS.Joker {
181183
perishable_compat = true,
182184

183185
config = {
186+
extra = {
187+
dollars = 1
188+
}
184189
},
185190

186191
calculate = function(self, card, context)
187192

188193
end,
189-
194+
calc_dollar_bonus = function(self, card)
195+
return card.ability.extra.dollars
196+
end,
190197
in_pool = function(self)
191198
return false
192199
end

localization/en-us.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ return {
5151
j_kh_munny = {
5252
name = 'Munny',
5353
text = {
54-
"{C:inactive}Does nothing..?"
54+
"Earn {C:money}$#1#{} at",
55+
"end of round",
5556
},
5657
},
5758

@@ -391,8 +392,15 @@ return {
391392
text = {
392393
"{C:attention}PoundOS{} for the idea!"
393394
}
394-
}
395+
},
395396

397+
kh_munny_info = {
398+
name = "Munny",
399+
text = {
400+
"Earn {C:money}$1{} at",
401+
"end of round",
402+
}
403+
}
396404
},
397405

398406
Spectral = {

0 commit comments

Comments
 (0)