Skip to content

Commit 38fb968

Browse files
Show remaining booster tags on pack open
1 parent e2459e3 commit 38fb968

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lovely/misprint.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ if G.GAME.boostertag and G.GAME.boostertag > 0 then
6060
self.ability.extra = self.ability.extra * 2
6161
G.GAME.pack_choices = G.GAME.pack_choices * 2
6262
G.GAME.boostertag = math.max(0, G.GAME.boostertag - 1)
63+
if G.GAME.boostertag > 0 then
64+
G.E_MANAGER:add_event(Event({
65+
func = function()
66+
attention_text({
67+
scale = 1,
68+
text = localize({ type = "name_text", set = "Tag", key = "tag_cry_booster" }) .. ": " .. localize{type = 'variable', key = ('loyalty_inactive'), vars = {G.GAME.boostertag}},
69+
hold = 2,
70+
align = "cm",
71+
offset = { x = 0, y = -2.7 },
72+
major = G.play,
73+
})
74+
return true
75+
end,
76+
}))
77+
end
6378
end
6479
self.ability.extra = math.min(self.ability.extra, 1000)
6580
G.GAME.pack_choices = math.min(G.GAME.pack_choices, 1000)

0 commit comments

Comments
 (0)