expanded on operatives
This commit is contained in:
@@ -210,11 +210,6 @@ function applyModifiers() {
|
|||||||
return; // Skip this modifier
|
return; // Skip this modifier
|
||||||
}
|
}
|
||||||
|
|
||||||
// If modifier is operative-specific, ensure the selected operative matches the modifier category
|
|
||||||
if (mod.operatives && selectedOperative && mod.operatives !== selectedOperative.category) {
|
|
||||||
return; // Skip this modifier if it doesn't apply to the current operative's category
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle modifiers with multiple buffs
|
// Handle modifiers with multiple buffs
|
||||||
if (mod.dataset.buffs) {
|
if (mod.dataset.buffs) {
|
||||||
const buffs = JSON.parse(mod.dataset.buffs);
|
const buffs = JSON.parse(mod.dataset.buffs);
|
||||||
@@ -251,10 +246,6 @@ function applyModifiers() {
|
|||||||
return; // Skip if the modifier does not apply to this weapon type
|
return; // Skip if the modifier does not apply to this weapon type
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mod.operatives && selectedOperative && mod.operatives !== selectedOperative.category) {
|
|
||||||
return; // Skip this modifier if it doesn't apply to the current operative's category
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle operative modifiers with multiple buffs
|
// Handle operative modifiers with multiple buffs
|
||||||
if (mod.buffs) {
|
if (mod.buffs) {
|
||||||
mod.buffs.forEach(buff => {
|
mod.buffs.forEach(buff => {
|
||||||
|
|||||||
+250
-28
@@ -657,10 +657,15 @@
|
|||||||
"category": "UIU",
|
"category": "UIU",
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
{
|
{
|
||||||
"id": "uiu-assault-ar-user",
|
"id": "uiu-assault-ar-user-damage-perk",
|
||||||
"label": "AR User [RIFLE] (+30% Damage)",
|
"label": "AR User [RIFLE] (+30% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.3,
|
"value": 1.3,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": "RIFLE"
|
"appliesTo": "RIFLE"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -671,17 +676,27 @@
|
|||||||
"category": "UIU",
|
"category": "UIU",
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
{
|
{
|
||||||
"id": "uiu-hru-full-metal-jacket",
|
"id": "uiu-hru-full-metal-jacket-damage-perk",
|
||||||
"label": "Full Metal Jacket (+10% Damage)",
|
"label": "Full Metal Jacket (+10% Damage)",
|
||||||
"value": 1.3,
|
"buffs": [
|
||||||
"type": "multiplicative",
|
{
|
||||||
|
"type": "damage",
|
||||||
|
"value": 1.1,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "uiu-hru-skull-cracker",
|
"id": "uiu-hru-skull-cracker-damage-perk",
|
||||||
"label": "Skull Cracker (+20% Damage)",
|
"label": "Skull Cracker (+20% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.2,
|
"value": 1.2,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -692,17 +707,27 @@
|
|||||||
"category": "UIU",
|
"category": "UIU",
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
{
|
{
|
||||||
"id": "camper-damage-perk",
|
"id": "camper-damage-perk-damage-perk",
|
||||||
"label": "Camper [SEMI-AUTO] (+25% Damage)",
|
"label": "Camper [SEMI-AUTO] (+25% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.25,
|
"value": 1.25,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": "SEMI-AUTO"
|
"appliesTo": "SEMI-AUTO"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "uiu-marksman-skull-cracker",
|
"id": "uiu-marksman-skull-cracker-damage-perk",
|
||||||
"label": "Skull Cracker (+20% Damage)",
|
"label": "Skull Cracker (+20% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.2,
|
"value": 1.2,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -713,24 +738,39 @@
|
|||||||
"category": "UIU",
|
"category": "UIU",
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
{
|
{
|
||||||
"id": "uiu-elite-ar-user",
|
"id": "uiu-elite-ar-user-damage-perk",
|
||||||
"label": "AR User [RIFLE] (+30% Damage)",
|
"label": "AR User [RIFLE] (+30% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.3,
|
"value": 1.3,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": "RIFLE"
|
"appliesTo": "RIFLE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "uiu-elite-moral-boost",
|
"id": "uiu-elite-moral-boost-damage-perk",
|
||||||
"label": "Moral Boost (+20% Damage)",
|
"label": "Moral Boost (+20% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.2,
|
"value": 1.2,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "uiu-elite-master-teamwork",
|
"id": "uiu-elite-master-teamwork-damage-perk",
|
||||||
"label": "Moral Boost (+30% Damage)",
|
"label": "Moral Boost (+30% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.3,
|
"value": 1.3,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -753,18 +793,40 @@
|
|||||||
"category": "UIU",
|
"category": "UIU",
|
||||||
"modifiers": [
|
"modifiers": [
|
||||||
{
|
{
|
||||||
"id": "uiu-detective-sense",
|
"id": "uiu-detective-sense-damage-perk",
|
||||||
"label": "Sense (+100% Damage)",
|
"label": "Sense (+100% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 2,
|
"value": 2,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "uiu-detective-secondaries-boost",
|
"id": "uiu-detective-secondaries-boost-damage-perk",
|
||||||
"label": "Secondaries Boost (+50% Damage)",
|
"label": "Secondaries Boost (+50% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.5,
|
"value": 1.5,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": "SECONDARY"
|
"appliesTo": "SECONDARY"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "search-expert-reload-perk",
|
||||||
|
"label": "Search Expert (+50% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
|
"value": 0.5,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -776,15 +838,25 @@
|
|||||||
{
|
{
|
||||||
"id": "shotgun-specialist-damage-perk",
|
"id": "shotgun-specialist-damage-perk",
|
||||||
"label": "Shotgun Specialist (+30% Damage)",
|
"label": "Shotgun Specialist (+30% Damage)",
|
||||||
"value": 1.30,
|
"buffs": [
|
||||||
"type": "multiplicative",
|
{
|
||||||
"appliesTo": "SHOTGUNS"
|
"type": "damage",
|
||||||
|
"value": 1.3,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": "SHOTGUN"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "goc-experience-damage-perk",
|
"id": "cqc-experience-damage-perk",
|
||||||
"label": "GOC Experience (+20% Damage)",
|
"label": "CQC Experience (+20% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
"value": 1.2,
|
"value": 1.2,
|
||||||
"type": "multiplicative",
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -800,7 +872,7 @@
|
|||||||
"appliesTo": "SHOTGUN"
|
"appliesTo": "SHOTGUN"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "buckshot--damage-rpm-perk",
|
"id": "buckshot-damage-rpm-perk",
|
||||||
"label": "Buckshot Bullet-type [R870-B] (+20% Firerate, +15% Damage)",
|
"label": "Buckshot Bullet-type [R870-B] (+20% Firerate, +15% Damage)",
|
||||||
"buffs": [
|
"buffs": [
|
||||||
{
|
{
|
||||||
@@ -870,11 +942,161 @@
|
|||||||
{
|
{
|
||||||
"id": "mastery-damage-perk",
|
"id": "mastery-damage-perk",
|
||||||
"label": "Mastery (+20% Reload Speed)",
|
"label": "Mastery (+20% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
"value": 0.8,
|
"value": 0.8,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "UIU-Cloaker",
|
||||||
|
"name": "UIU Cloaker",
|
||||||
|
"category": "UIU",
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"id": "uiu-cloaker-ambusher-perk-damage-perk",
|
||||||
|
"label": "Ambusher (+50% Damage)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
|
"value": 1.5,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "quick-movements-reload-perk",
|
||||||
|
"label": "Quick Movements (+50% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
|
"value": 0.5,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "UIU-Captain",
|
||||||
|
"name": "UIU Captain",
|
||||||
|
"category": "UIU",
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"id": "agent-training-rifle-damage-perk",
|
||||||
|
"label": "Agent training [RIFLE] (+15% Damage)",
|
||||||
|
"value": 1.15,
|
||||||
|
"type": "multiplicative",
|
||||||
|
"appliesTo": "RIFLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "agent-training-smg-damage-perk",
|
||||||
|
"label": "Agent training [SMG] (+25% Damage, 30% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
|
"value": 1.25,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
|
"value": 0.7,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": "SMG"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "UIU-MOOT",
|
||||||
|
"name": "UIU MOOT",
|
||||||
|
"category": "UIU",
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"id": "uiu-moot-ar-user-damage-perk",
|
||||||
|
"label": "AR User [RIFLE] (+30% Damage)",
|
||||||
|
"value": 1.3,
|
||||||
|
"type": "multiplicative",
|
||||||
|
"appliesTo": "RIFLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "uiu-moot-anchoring-ammunition-damage-perk",
|
||||||
|
"label": "Anchoring Ammunition (+40% Damage)",
|
||||||
|
"value": 1.4,
|
||||||
"type": "multiplicative",
|
"type": "multiplicative",
|
||||||
"appliesTo": ""
|
"appliesTo": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "UIU-Technician",
|
||||||
|
"name": "UIU Technician",
|
||||||
|
"category": "UIU",
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"id": "agent-training-rifle-damage-perk",
|
||||||
|
"label": "Agent training [RIFLE] (+15% Damage)",
|
||||||
|
"value": 1.15,
|
||||||
|
"type": "multiplicative",
|
||||||
|
"appliesTo": "RIFLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "agent-training-smg-damage-perk",
|
||||||
|
"label": "Agent training [SMG] (+25% Damage, 30% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
|
"value": 1.25,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
|
"value": 0.7,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": "SMG"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "UIU-Oathbreaker",
|
||||||
|
"name": "UIU Oathbreaker",
|
||||||
|
"category": "UIU",
|
||||||
|
"modifiers": [
|
||||||
|
{
|
||||||
|
"id": "agent-training-rifle-damage-perk",
|
||||||
|
"label": "Agent training [RIFLE] (+15% Damage)",
|
||||||
|
"value": 1.15,
|
||||||
|
"type": "multiplicative",
|
||||||
|
"appliesTo": "RIFLE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "agent-training-smg-damage-perk",
|
||||||
|
"label": "Agent training [SMG] (+25% Damage, 30% Reload Speed)",
|
||||||
|
"buffs": [
|
||||||
|
{
|
||||||
|
"type": "damage",
|
||||||
|
"value": 1.25,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "reloadTime",
|
||||||
|
"value": 0.7,
|
||||||
|
"buffType": "multiplicative"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"appliesTo": "SMG"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user