Merge pull request #559 from Freaky/develop

Shield engineering should not modify max mass
This commit is contained in:
Felix Linker
2020-10-24 12:54:42 +02:00
committed by GitHub

View File

@@ -694,7 +694,7 @@ export default class Module {
let result = 0;
if (this['maxmass']) {
result = this['maxmass'];
if (result && modified) {
if (result && modified && !ModuleUtils.isShieldGenerator(this['grp'])) {
let mult = this.getModValue('optmass') / 10000;
if (mult) { result = result * (1 + mult); }
}