From 2f1ad2139210592c4fc0ccee4cccc445db75ddc0 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Thu, 15 Mar 2018 15:40:32 +1100 Subject: [PATCH] Calculate DPS for beam type doomsdays. --- eos/saveddata/module.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index 17917287d..a7902129f 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -339,8 +339,15 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut): volley *= self.getModifiedItemAttr("damageMultiplier") or 1 if volley: cycleTime = self.cycleTime + # Some weapons repeat multiple times in one cycle (think doomsdays) + # Get the number of times it fires off + weaponDoT = max( + self.getModifiedItemAttr("doomsdayDamageDuration", 1) / self.getModifiedItemAttr("doomsdayDamageCycleTime", 1), + 1 + ) + self.__volley = volley - self.__dps = volley / (cycleTime / 1000.0) + self.__dps = (volley * weaponDoT) / (cycleTime / 1000.0) return self.__dps, self.__volley