Implemented diminishing returns for hrp resistance modding

This commit is contained in:
Felix Linker
2018-09-11 13:09:29 +02:00
parent 0d7e6af2e6
commit 8ce09a607f

View File

@@ -150,6 +150,13 @@ export default class Module {
}
if (modValue) {
if (modification.method === 'additive') {
// Resistance modding for hull reinforcement packages has additional
// diminishing returns implemented. The mod value gets lowered by
// the amount of base resistance the hrp has.
if (this.grp === 'hr' &&
(name === 'kinres' || name === 'thermres' || name === 'explres')) {
modValue = modValue * (1 - result);
}
result = result + modValue;
} else if (modification.method === 'overwrite') {
result = modValue;