mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Remove shot speed modification
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user