Merge pull request #79 from Brighter-Applications/issues/699_Add_Charge_Rate_To_Rails

Adding 'charge' time into calculation of RoF, as RailGuns have a 'cha…
This commit is contained in:
Alex Williams
2024-11-25 00:02:07 +00:00
committed by GitHub

View File

@@ -927,8 +927,9 @@ export default class Module {
const burst = this.get('burst', modified) || 1; const burst = this.get('burst', modified) || 1;
const burstRoF = this.get('burstrof', modified) || 1; const burstRoF = this.get('burstrof', modified) || 1;
const intRoF = this.get('rof', modified); 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);
} }
/** /**