some new features + json adjustments
This commit is contained in:
@@ -9,7 +9,7 @@ let headshotBaseApplied = false;
|
||||
|
||||
// Function to fetch operatives data from JSON
|
||||
function fetchOperativesData() {
|
||||
fetch('static/json/operative.json')
|
||||
fetch('/static/json/operative.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
populateOperatives(data.operatives); // Populate the operative dropdown once data is loaded
|
||||
@@ -132,6 +132,7 @@ function populateWeapons() {
|
||||
selectedWeapon = weapons.find(weapon => weapon.id === selectedWeaponId);
|
||||
if (selectedWeapon) {
|
||||
updateWeaponStats(selectedWeapon); // Update stats on valid selection
|
||||
applyModifiers();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"id": 1,
|
||||
"name": "G18",
|
||||
"damage": 32,
|
||||
"damage": 34,
|
||||
"damage_multiplier": 1,
|
||||
"rpm": 550,
|
||||
"mag_size": 18,
|
||||
|
||||
Reference in New Issue
Block a user