diff --git a/src/Mods/SecExp/js/secExp.js b/src/Mods/SecExp/js/secExp.js index bf8581ba683f0a93040d86c95ede3edd1aa8b34d..a688acff3f7207fa3c25940cfdfa72d818e9a093 100644 --- a/src/Mods/SecExp/js/secExp.js +++ b/src/Mods/SecExp/js/secExp.js @@ -37,9 +37,10 @@ App.SecExp.generator = (function() { attackChance -= 10; } */ attackChance *= V.SecExp.settings.battle.frequency; // battle frequency - if (V.SecExp.settings.battle.force === 1 && V.SecExp.settings.rebellion.force === 0) { - attackChance = 100; - } + } + + if (V.SecExp.settings.battle.force === 1 && V.SecExp.settings.rebellion.force === 0) { + attackChance = 100; } if (random(1, 100) > attackChance) { // Rolls to see if attack happens this week