Remove shot speed modification

This commit is contained in:
Cmdr McDonald
2017-02-23 18:55:44 +00:00
parent a5df542aa2
commit fe691d12c7
2 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#2.2.19
* Power management panel now displays modules in descending order of power usage by default
* Shot speed can no longer be modified directly. Its value is derived from the range modifier for Long Range and Focused modifications
#2.2.18
* Change methodology for calculating explorer role; can result in lighter builds

View File

@@ -701,6 +701,16 @@ export default class Module {
* @return {string} the shot speed for this module
*/
getShotSpeed() {
if (this.blueprint && (this.blueprint.name === 'Focused' || this.blueprintname === 'Long Range')) {
// If the modification is focused or long range then the shot speed
// uses the range modifier
const rangemod = this.getModValue('range') / 10000;
let result = this['shotspeed'];
if (!result) {
return null;
}
return result * (1 + rangemod);
}
return this._getModifiedValue('shotspeed');
}