mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
more work on mods
This commit is contained in:
@@ -342,7 +342,6 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
}
|
}
|
||||||
// Carry out the required changes
|
// Carry out the required changes
|
||||||
for (const action in modifierActions) {
|
for (const action in modifierActions) {
|
||||||
console.log(action);
|
|
||||||
if (isNaN(modifierActions[action])) {
|
if (isNaN(modifierActions[action])) {
|
||||||
module.setModValue(action, modifierActions[action]);
|
module.setModValue(action, modifierActions[action]);
|
||||||
} else {
|
} else {
|
||||||
@@ -352,7 +351,6 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
mod = 0;
|
mod = 0;
|
||||||
}
|
}
|
||||||
module.setModValue(action, ((1 + mod) * (1 + actionValue) - 1) * 10000);
|
module.setModValue(action, ((1 + mod) * (1 + actionValue) - 1) * 10000);
|
||||||
// Bulkhead boost is based off the inherent boost of the module
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -394,21 +392,7 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
|
|
||||||
// Shield generator resistance is actually a damage modifier, so needs to be inverted.
|
// Shield generator resistance is actually a damage modifier, so needs to be inverted.
|
||||||
// In addition, the modification is based off the inherent resistance of the module
|
// In addition, the modification is based off the inherent resistance of the module
|
||||||
// if (ModuleUtils.isShieldGenerator(module.grp)) {
|
if (ModuleUtils.isShieldGenerator(module.grp)) {
|
||||||
// if (module.getModValue('explres')) {
|
|
||||||
// module.setModValue('explres', ((1 - (1 - module.explres) * (1 + module.getModValue('explres') / 10000)) - module.explres) * 10000);
|
|
||||||
// }
|
|
||||||
// if (module.getModValue('kinres')) {
|
|
||||||
// module.setModValue('kinres', ((1 - (1 - module.kinres) * (1 + module.getModValue('kinres') / 10000)) - module.kinres) * 10000);
|
|
||||||
// }
|
|
||||||
// if (module.getModValue('thermres')) {
|
|
||||||
// module.setModValue('thermres', ((1 - (1 - module.thermres) * (1 + module.getModValue('thermres') / 10000)) - module.thermres) * 10000);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Hull reinforcement package resistance is actually a damage modifier, so needs to be inverted.
|
|
||||||
// In addition, the modification is based off the inherent resistance of the module
|
|
||||||
if (module.grp === 'hr') {
|
|
||||||
if (module.getModValue('explres')) {
|
if (module.getModValue('explres')) {
|
||||||
module.setModValue('explres', ((1 - (1 - module.explres) * (1 + module.getModValue('explres') / 10000)) - module.explres) * 10000);
|
module.setModValue('explres', ((1 - (1 - module.explres) * (1 + module.getModValue('explres') / 10000)) - module.explres) * 10000);
|
||||||
}
|
}
|
||||||
@@ -420,6 +404,20 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hull reinforcement package resistance is actually a damage modifier, so needs to be inverted.
|
||||||
|
// In addition, the modification is based off the inherent resistance of the module
|
||||||
|
// if (module.grp === 'hr') {
|
||||||
|
// if (module.getModValue('explres')) {
|
||||||
|
// module.setModValue('explres', ((1 - (1 - module.explres) * (1 + module.getModValue('explres') / 10000)) - module.explres) * 10000);
|
||||||
|
// }
|
||||||
|
// if (module.getModValue('kinres')) {
|
||||||
|
// module.setModValue('kinres', ((1 - (1 - module.kinres) * (1 + module.getModValue('kinres') / 10000)) - module.kinres) * 10000);
|
||||||
|
// }
|
||||||
|
// if (module.getModValue('thermres')) {
|
||||||
|
// module.setModValue('thermres', ((1 - (1 - module.thermres) * (1 + module.getModValue('thermres') / 10000)) - module.thermres) * 10000);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
// Bulkhead resistance is actually a damage modifier, so needs to be inverted.
|
// Bulkhead resistance is actually a damage modifier, so needs to be inverted.
|
||||||
// In addition, the modification is based off the inherent resistance of the module
|
// In addition, the modification is based off the inherent resistance of the module
|
||||||
if (module.grp == 'bh') {
|
if (module.grp == 'bh') {
|
||||||
|
|||||||
Reference in New Issue
Block a user