Skip to content

Commit

Permalink
Add info to misc column
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Nov 9, 2024
1 parent f3c8f48 commit 4ba9bb7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gui/builtinViewColumns/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ def __getData(self, stuff):
text = "{} dmg".format(formatAmount(dmg, 3, 0, 6))
tooltip = "Raw damage done"
return text, tooltip

pass
elif itemGroup in ("Energy Weapon", "Hybrid Weapon", "Projectile Weapon", "Combat Drone", "Fighter Drone"):
trackingSpeed = stuff.getModifiedItemAttr("trackingSpeed")
optimalSig = stuff.getModifiedItemAttr("optimalSigRadius")
Expand Down Expand Up @@ -810,6 +808,16 @@ def __getData(self, stuff):
text = "{}".format(formatAmount(scanStr, 4, 0, 3))
tooltip = "Scan strength at {} AU scan range".format(formatAmount(baseRange, 3, 0, 0))
return text, tooltip
elif chargeGroup in ("SCARAB Breacher Pods",):
duration = stuff.getModifiedChargeAttr("dotDuration") / 1000
dmgAbs = stuff.getModifiedChargeAttr("dotMaxDamagePerTick") * duration
dmgRel = stuff.getModifiedChargeAttr("dotMaxHPPercentagePerTick") * duration
text = "{}/{}% over {}s".format(
formatAmount(dmgAbs, 3, 0, 6),
formatAmount(dmgRel, 3, 0, 6),
formatAmount(duration, 0, 0, 0))
tooltip = "Pure damage done over time, minimum of absolute / relative"
return text, tooltip
else:
return "", None
else:
Expand Down

0 comments on commit 4ba9bb7

Please sign in to comment.