Skip to content

Commit 9d2233d

Browse files
committed
update scale_card scaling_message stuff
1 parent 594b8b5 commit 9d2233d

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
@@ -1326,12 +1326,14 @@ local energia = {
13261326
ref_table = card.ability.extra,
13271327
ref_value = "tags",
13281328
scalar_value = "tag_mod",
1329-
scaling_message = localize({
1330-
type = "variable",
1331-
key = card.ability.extra.tags == 1 and "a_tag" or "a_tags",
1332-
vars = { t },
1333-
})[1],
1334-
message_colour = G.C.DARK_EDITION,
1329+
scaling_message = {
1330+
message = localize({
1331+
type = "variable",
1332+
key = card.ability.extra.tags == 1 and "a_tag" or "a_tags",
1333+
vars = { t },
1334+
})[1],
1335+
colour = G.C.DARK_EDITION
1336+
}
13351337
})
13361338
return { tags = math.max(t, 0) }
13371339
end

items/m.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,10 @@ local mprime = {
15331533
ref_table = card.ability.extra,
15341534
ref_value = "mult",
15351535
scalar_value = "bonus",
1536-
scaling_message = localize("cry_m_ex"),
1537-
message_colour = G.C.DARK_EDITION,
1536+
scaling_message = {
1537+
message = localize("cry_m_ex"),
1538+
colour = G.C.DARK_EDITION,
1539+
}
15381540
})
15391541
end
15401542
elseif
@@ -1750,7 +1752,9 @@ local megg = {
17501752
ref_table = card.ability.extra,
17511753
ref_value = "amount",
17521754
scalar_value = "amount_mod",
1753-
scaling_message = localize("cry_jolly_ex"),
1755+
scaling_message = {
1756+
message = localize("cry_jolly_ex")
1757+
},
17541758
})
17551759
if to_big(card.ability.extra.amount) > to_big(card.ability.immutable.max_amount) then
17561760
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
@@ -9144,8 +9144,10 @@ local cookie = {
91449144
ref_table = card.ability.extra,
91459145
ref_value = "chips",
91469146
scalar_value = "chip_mod",
9147-
scaling_message = "-" .. number_format(card.ability.extra.chip_mod),
9148-
message_colour = G.C.CHIPS,
9147+
scaling_message = {
9148+
message = "-" .. number_format(card.ability.extra.chip_mod),
9149+
colour = G.C.CHIPS,
9150+
}
91499151
})
91509152
end
91519153
end

0 commit comments

Comments
 (0)