Skip to content

Commit 450aa0f

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent b484607 commit 450aa0f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/content.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ SMODS.Atlas({
796796
key = "cry_clarifier",
797797
path = "intercept_sprite.png",
798798
px = 71,
799-
py = 95,
799+
py = 95,
800800
})
801801
SMODS.Atlas({
802802
key = "glowingSleeve",

lib/ui.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,13 @@ SMODS.DrawStep({
235235
order = -5,
236236
func = function(self)
237237
local card_type = self.ability.set or "None"
238-
if card_type ~= 'Default' and card_type ~= 'Enhanced' and self.playing_card then
239-
interceptorSprite = interceptorSprite or Sprite(0, 0, G.CARD_W, G.CARD_H, G.ASSET_ATLAS["cry_clarifier"], { x = 0, y = 0 })
238+
if card_type ~= "Default" and card_type ~= "Enhanced" and self.playing_card then
239+
interceptorSprite = interceptorSprite
240+
or Sprite(0, 0, G.CARD_W, G.CARD_H, G.ASSET_ATLAS["cry_clarifier"], { x = 0, y = 0 })
240241
interceptorSprite.role.draw_major = self
241-
interceptorSprite:draw_shader('dissolve', nil, nil, nil, self.children.center)
242+
interceptorSprite:draw_shader("dissolve", nil, nil, nil, self.children.center)
242243
end
243-
end
244+
end,
244245
})
245246

246247
-- Make hover UI collidable - so we can detect collision and display tooltips

0 commit comments

Comments
 (0)