fix more values (hopefully done)

also, Fixes #247 by changing passengers to pax
This commit is contained in:
willyb321
2018-04-17 17:31:11 +10:00
parent 57c1e83c67
commit 2d00cbc41b
4 changed files with 5 additions and 5 deletions

View File

@@ -266,8 +266,8 @@ function _addModifications (module, modifiers, blueprint, grade, specialModifica
if (value === Infinity) {
value = modifiers[i].Value * 100;
}
if (modifiers[i].Label === 'DefenceModifierHealthMultiplier' && blueprint.toLowerCase().startsWith('armour_')) {
value = modifiers[i].Value * 100 - modifiers[i].OriginalValue;
if (modifiers[i].Label.search('Resistance') >= 0) {
value = (modifiers[i].Value * 100) - (modifiers[i].OriginalValue * 100)
}
// Carry out the required changes
for (const action in modifierActions) {