Browse Source

Add max speed to eft info

pull/4/head
Mike 3 years ago
parent
commit
00af37eb2a
  1. 3
      cogs/eft.py

3
cogs/eft.py

@ -119,7 +119,7 @@ class EFT(commands.Cog):
fit.calculateModifiedAttributes()
dpsstring = ""
if fit.getWeaponDps().total > 0:
dpsstring += f"**Weapon DPS / Volley: **: {fit.getWeaponDps(spoolOptions=defaultSpool).total:,.2f} / {fit.getWeaponVolley(spoolOptions=defaultSpool).total:,.2f}\n"
dpsstring += f"**Weapon DPS / Volley: ** {fit.getWeaponDps(spoolOptions=defaultSpool).total:,.2f} / {fit.getWeaponVolley(spoolOptions=defaultSpool).total:,.2f}\n"
# we are just gonna assume each turret and each launcher is loaded with the same type ammo
if turrets:
if turrets[0].charge:
@ -171,6 +171,7 @@ class EFT(commands.Cog):
name="Cap length",
value=f"{str(timedelta(seconds=round(fit.capState)))}",
)
embed.add_field(name="Max Speed:", value=f"{fit.maxSpeed:,.2f} m/s")
# turn all our mods off to calculate our 'actual' align time
for module in fit.modules:
module.state = FittingModuleState.ONLINE

Loading…
Cancel
Save