From b365faed0ac1861edefe737207b683641145f666 Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Sun, 24 Nov 2024 23:53:15 +0000 Subject: [PATCH] Adding 'charge' time into calculation of RoF, as RailGuns have a 'charge' time as well as a reload time. --- src/app/shipyard/Module.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/shipyard/Module.js b/src/app/shipyard/Module.js index 7df7f44e..4559f54b 100755 --- a/src/app/shipyard/Module.js +++ b/src/app/shipyard/Module.js @@ -927,8 +927,9 @@ export default class Module { const burst = this.get('burst', modified) || 1; const burstRoF = this.get('burstrof', modified) || 1; const intRoF = this.get('rof', modified); + const charge = this.get('charge', modified) || 0; - return burst / (((burst - 1) / burstRoF) + 1 / intRoF); + return burst / (((burst - 1) / burstRoF) + 1 / intRoF + charge); } /**