Fix comparison to string

This commit is contained in:
DarkPhoenix
2025-05-24 01:14:57 +02:00
parent f23d1e4921
commit de93777f99

View File

@@ -150,7 +150,7 @@ class BombingViewFull(StatsView):
bomb.attributes['signatureRadius'].value)
label = getattr(self, "labelDamagetypeCovertlevel%s%s" % (damageType.capitalize(), covertLevel))
label.SetLabel("{:.1f}".format(math.ceil((ehp / appliedBombDamage) * 10) / 10))
if covertLevel is not "0":
if covertLevel != "0":
label.SetToolTip("Number of %s to kill a %s using a %s "
"with Covert Ops level %s" % (bomb.customName, fit.name, bomber, covertLevel))
else: