Better None syntax

This commit is contained in:
Gouvernathor 2023-11-14 23:52:38 +01:00
parent da636e93ab
commit 8d4216a476

View File

@ -241,7 +241,7 @@ screen crystal_ball():
zorder 8 zorder 8
add "interface/desk/crystal_ball.webp" xpos 268 ypos 0 add "interface/desk/crystal_ball.webp" xpos 268 ypos 0
if not ball_hint == None: if ball_hint is not None:
add "interface/desk/hints/glow.webp" xpos 268+40 add "interface/desk/hints/glow.webp" xpos 268+40
add "interface/desk/hints/"+str(ball_hint)+ ".webp" xpos 268+125 xanchor 0.5 add "interface/desk/hints/"+str(ball_hint)+ ".webp" xpos 268+125 xanchor 0.5