From f41e2d0552fdb3021b77e8408fa13393023d00f0 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Tue, 19 Dec 2017 16:28:05 +1100 Subject: [PATCH] fix indent and hopefully fix ammo clip dont know if it was broken, if someone has it DM it to me thanks --- src/app/utils/CompanionApiUtils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/utils/CompanionApiUtils.js b/src/app/utils/CompanionApiUtils.js index 79e6a286..137c3cb9 100644 --- a/src/app/utils/CompanionApiUtils.js +++ b/src/app/utils/CompanionApiUtils.js @@ -306,12 +306,12 @@ function _addModifications(module, modifiers, blueprint, grade, specialModificat console.log(module); console.log(modifiers); let special; - if (specialModifications) { - special = Modifications.specials[Object.keys(specialModifications)[0]] - } + if (specialModifications) { + special = Modifications.specials[Object.keys(specialModifications)[0]] + } for (const i in modifiers) { // Some special modifications - if (modifiers[i].name === 'mod_weapon_clip_size_override') { + if (i === 'OutfittingFieldType_AmmoClipSize' || modifiers[i].name === 'mod_weapon_clip_size_override') { // This is a numeric addition to the clip size, but we need to work it out in terms of being a percentage so // that it works the same as other modifications const origClip = module.clip || 1;