Skip to content

Commit f203b35

Browse files
committed
same but different
1 parent a64f5ce commit f203b35

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

items/exotic.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,12 +1306,14 @@ local energia = {
13061306
ref_table = card.ability.extra,
13071307
ref_value = "tags",
13081308
scalar_value = "tag_mod",
1309-
scaling_message = localize({
1310-
type = "variable",
1311-
key = card.ability.extra.tags == 1 and "a_tag" or "a_tags",
1312-
vars = { t },
1313-
})[1],
1314-
message_colour = G.C.DARK_EDITION,
1309+
scaling_message = {
1310+
message = localize({
1311+
type = "variable",
1312+
key = card.ability.extra.tags == 1 and "a_tag" or "a_tags",
1313+
vars = { t },
1314+
})[1],
1315+
colour = G.C.DARK_EDITION,
1316+
}
13151317
})
13161318
return { tags = math.max(t, 0) }
13171319
end

items/m.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,8 +1528,10 @@ local mprime = {
15281528
ref_table = card.ability.extra,
15291529
ref_value = "mult",
15301530
scalar_value = "bonus",
1531-
scaling_message = localize("cry_m_ex"),
1532-
message_colour = G.C.DARK_EDITION,
1531+
scaling_message = {
1532+
message = localize("cry_m_ex"),
1533+
colour = G.C.DARK_EDITION,
1534+
}
15331535
})
15341536
end
15351537
elseif
@@ -1757,7 +1759,9 @@ local megg = {
17571759
ref_table = card.ability.extra,
17581760
ref_value = "amount",
17591761
scalar_value = "amount_mod",
1760-
scaling_message = localize("cry_jolly_ex"),
1762+
scaling_message = {
1763+
message = localize("cry_jolly_ex"),
1764+
}
17611765
})
17621766
if to_big(card.ability.extra.amount) > to_big(card.ability.immutable.max_amount) then
17631767
card.ability.extra.amount = lenient_bignum(card.ability.immutable.max_amount)

items/misc_joker.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9239,8 +9239,10 @@ local cookie = {
92399239
ref_table = card.ability.extra,
92409240
ref_value = "chips",
92419241
scalar_value = "chip_mod",
9242-
scaling_message = "-" .. number_format(card.ability.extra.chip_mod),
9243-
message_colour = G.C.CHIPS,
9242+
scaling_message = {
9243+
message = "-" .. number_format(card.ability.extra.chip_mod),
9244+
colour = G.C.CHIPS,
9245+
}
92449246
})
92459247
end
92469248
end

0 commit comments

Comments
 (0)