mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 00:33:03 +00:00
Implemented diminishing returns for hrp resistance modding
This commit is contained in:
@@ -150,6 +150,13 @@ export default class Module {
|
|||||||
}
|
}
|
||||||
if (modValue) {
|
if (modValue) {
|
||||||
if (modification.method === 'additive') {
|
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;
|
result = result + modValue;
|
||||||
} else if (modification.method === 'overwrite') {
|
} else if (modification.method === 'overwrite') {
|
||||||
result = modValue;
|
result = modValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user