mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 14:33:22 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user