Adding 'charge' time into calculation of RoF, as RailGuns have a 'charge' time as well as a reload time.

This commit is contained in:
Alex Williams
2024-11-24 23:53:15 +00:00
parent 060b98cc89
commit b365faed0a

View File

@@ -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);
}
/**