Shield engineering should not modify max mass (#473)

This commit is contained in:
Thomas Hurst
2019-11-30 01:19:00 +00:00
parent c3b0e8d949
commit baace95f83

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); }
}