diff --git a/src/SecExp/SecExpBackwardCompatibility.tw b/src/SecExp/SecExpBackwardCompatibility.tw index 5cc80af14c04c831425b8d0d800e7b550c4621f8..dbd4f433a89770b6265bce830f864889923cdcc7 100644 --- a/src/SecExp/SecExpBackwardCompatibility.tw +++ b/src/SecExp/SecExpBackwardCompatibility.tw @@ -109,6 +109,9 @@ <<if ndef $rebellionSpeed>> <<set $rebellionSpeed = 1>> <</if>> +<<if ndef $majorBattleMult>> +<<set $majorBattleMult = 1>> +<</if>> /* edicts */ <<if ndef $edictsUpkeep>> diff --git a/src/SecExp/attackGenerator.tw b/src/SecExp/attackGenerator.tw index b9931a6cd48b12a2992d423e59ae8c3b542fd92e..a0cc052844ab62ddea50bc5c5d121967bd9f391a 100644 --- a/src/SecExp/attackGenerator.tw +++ b/src/SecExp/attackGenerator.tw @@ -234,8 +234,13 @@ <<if ($week >= 120 && $attackType != "none") || ($forceMajorBattle == 1 && $foughtThisWeek == 0)>> <<if random(1,100) >= 50 || $forceMajorBattle == 1>> <<set $majorBattle = 1>> - <<set $attackTroops *= random(4,6)>> - <<set $attackEquip = either(3,4)>> + <<if $securityForceCreate == 1>> + <<set $attackTroops = Math.trunc($attackTroops * random(4,6) * $majorBattleMult)>> + <<set $attackEquip = either(3,4)>> + <<else>> + <<set set $attackTroops = Math.trunc($attackTroops * random(2,3) * $majorBattleMult)>> + <<set $attackEquip = either(2,3,4)>> + <</if>> <<set $estimatedMen = Math.round($attackTroops * (1 + either(-1,1) * (random(3,4) - $recon) * 0.1))>> <<if $recon == 3>> <<set $expectedEquip = $attackEquip + random(-1,1)>> diff --git a/src/SecExp/rebellionGenerator.tw b/src/SecExp/rebellionGenerator.tw index 8f2a024cabb3e2165418e4580ac22ec42c774f86..21098c61c8bcb5e1a26e9df7b951aecc3b79ee72 100644 --- a/src/SecExp/rebellionGenerator.tw +++ b/src/SecExp/rebellionGenerator.tw @@ -17,6 +17,8 @@ Your high authority does not allow slaves to think too freely.<<set _slave += 10>> <<elseif $authority <= 18000>> Your very high authority does not allow slaves to think too freely.<<set _slave += 5>> +<<else>> + Your absolute authority does not allow slaves to have a single free thought. <</if>> <<if _CSratio <= 0.2>> There are a lot more slaves than citizens, making some doubt their masters are strong enough to stop them.<<set _slave += 30>> @@ -30,6 +32,8 @@ There are less slaves than citizens, making some doubt they would be strong enough to defeat their masters.<<set _slave += 10>> <<elseif _CSratio >= 1.2>> There are less slaves than citizens, making some doubt they would be strong enough to defeat their masters.<<set _slave -= 5>> +<<else>> + Citizen and slave population is sufficiently balanced not ot cause problems either way. <</if>> <<if $security <= 10>> The very low security of the arcology leaves free space for slaves to organize and agitate.<<set _slave += 30>> @@ -39,6 +43,8 @@ The moderate security of the arcology does not allow free space for slaves to organize and agitate.<<set _slave += 10>> <<elseif $security >= 90>> The high security of the arcology does not allow free space for slaves to organize and agitate.<<set _slave -= 5>> +<<else>> + The high security of the arcology does not allow free space for slaves to organize and agitate. <</if>> <<if $arcologies[0].FSDegradationist != "unset">> Many slaves are so disgusted by your degradationist society, that are willing to rise up against their masters to escape.<<set _slave += 30>> @@ -69,6 +75,8 @@ Your high authority does not allow your citizens to think too freely.<<set _citizen += 10>> <<elseif $authority <= 18000>> Your very high authority does not allow your citizens to think too freely.<<set _citizen += 5>> +<<else>> + Your absolute authority does not allow your citizens to have a single free thought. <</if>> <<if $crime >= 90>> The very high crime level of the arcology breeds extreme discontent between your citizens.<<set _citizen += 30>> diff --git a/src/SecExp/secExpOptions.tw b/src/SecExp/secExpOptions.tw index bb0b92cbdeaaaee5109fc365ff08ce1313c8b213..cef1467d494d52c8d7195deb2655f39645c198ee 100644 --- a/src/SecExp/secExpOptions.tw +++ b/src/SecExp/secExpOptions.tw @@ -349,6 +349,49 @@ __Battles frequency__: <</link>> <br> <br> +__Major battle multiplier__: +<br>Major battle multiplier is set to:<span id="majorBattleMult"> +<<if $majorBattleMult == 0.5>> + @@.green;Very low@@ +<<elseif $majorBattleMult == 0.75>> + @@.limegreen;Low@@ +<<elseif $majorBattleMult == 1>> + @@.yellow;Normal@@ +<<elseif $majorBattleMult == 1.25>> + @@.red;high@@ +<<else>> + @@.darkred;Very high@@ +<</if>> +</span> +<br> +<<link "Very low">> + <<set $majorBattleMult = 0.5>> + <<replace "#majorBattleMult">> + @@.green;Very low@@ + <</replace>> +<</link>> | <<link "Low">> + <<set $majorBattleMult = 0.75>> + <<replace "#majorBattleMult">> + @@.limegreen;Low@@ + <</replace>> +<</link>> | <<link "Normal">> + <<set $majorBattleMult = 1>> + <<replace "#majorBattleMult">> + @@.yellow;Normal@@ + <</replace>> +<</link>> | <<link "High">> + <<set $majorBattleMult = 1.25>> + <<replace "#majorBattleMult">> + @@.red;High@@ + <</replace>> +<</link>> | <<link "Very high">> + <<set $majorBattleMult = 1.5>> + <<replace "#majorBattleMult">> + @@.darkred;Very high@@ + <</replace>> +<</link>> +<br> +<br> __Rebellions buildup speed__: <br>Rebellion speed is set to:<span id="rebellionSpeed"> <<if $rebellionSpeed == 0.5>> diff --git a/src/SecExp/secInit.tw b/src/SecExp/secInit.tw index fe2c0b31c56001850ee92cc433e8560cbf9d7da8..b2a07a44c577185a96cfefa4fcc2b12c64fe8f40 100644 --- a/src/SecExp/secInit.tw +++ b/src/SecExp/secInit.tw @@ -37,6 +37,7 @@ <<set $allowPrestigeFromBattles = 1>> <<set $battleFrequency = 1>> <<set $rebellionSpeed = 1>> +<<set $majorBattleMult = 1>> /* edicts */ <<set $edictsUpkeep = 0>>