Skip to content
Snippets Groups Projects
Commit 99c75b85 authored by Blank_Alt's avatar Blank_Alt
Browse files

Fix

parent 7422e99a
Branches
Tags
No related merge requests found
...@@ -95,11 +95,13 @@ You own <<print num($menials)>> free menial slaves. This manufacturing complex c ...@@ -95,11 +95,13 @@ You own <<print num($menials)>> free menial slaves. This manufacturing complex c
<br> <<link "Invest in automating the complex" "weaponsManufacturing">> <br> <<link "Invest in automating the complex" "weaponsManufacturing">>
<<run cashX(forceNeg(10000 * $SecExp.buildings.weapManu.productivity), "capEx")>> <<run cashX(forceNeg(10000 * $SecExp.buildings.weapManu.productivity), "capEx")>>
<<set $SecExp.buildings.weapManu.productivity++>> <<set $SecExp.buildings.weapManu.productivity++>>
<<if $SecExp.buildings.weapManu.upgrades.current.time > 0>> <<for _i = 0; _i < $SecExp.buildings.weapManu.upgrades.queue.length; _i++>>
<<set _percentComplete = $SecExp.buildings.weapManu.upgrades.current.time / (_baseUpgradeTime / ($SecExp.buildings.weapManu.productivity - 1))>> <<if $SecExp.buildings.weapManu.upgrades.queue[_i].time > 0>>
<<set _newTime = Math.ceil(_percentComplete * _baseUpgradeTime / $SecExp.buildings.weapManu.productivity)>> <<set _percentComplete = $SecExp.buildings.weapManu.upgrades.queue[_i].time / (_baseUpgradeTime / ($SecExp.buildings.weapManu.productivity - 1))>>
<<set $SecExp.buildings.weapManu.upgrades.current.time = _newTime>> <<set _newTime = Math.ceil(_percentComplete * _baseUpgradeTime / $SecExp.buildings.weapManu.productivity)>>
<</if>> <<set $SecExp.buildings.weapManu.upgrades.queue[_i].time = _newTime>>
<</if>>
<</for>>
<</link>> <</link>>
//Will cost <<print cashFormat(10000 * $SecExp.buildings.weapManu.productivity)>> and will increase the facility income in addition to speeding up upgrade production.// //Will cost <<print cashFormat(10000 * $SecExp.buildings.weapManu.productivity)>> and will increase the facility income in addition to speeding up upgrade production.//
<<elseif $SecExp.buildings.weapManu.lab < 3>> <<elseif $SecExp.buildings.weapManu.lab < 3>>
......
...@@ -276,6 +276,6 @@ In order to preserve the structural integrity of the building and the lives of o ...@@ -276,6 +276,6 @@ In order to preserve the structural integrity of the building and the lives of o
<<set $battleResult = 4, $foughtThisWeek = 1>> /* sets $battleResult value outside accepted range (-3, 3) to avoid evaluation problems */ <<set $battleResult = 4, $foughtThisWeek = 1>> /* sets $battleResult value outside accepted range (-3, 3) to avoid evaluation problems */
<</link>> <</link>>
<br> <br>
<<link "Surrender" "rebellionHandler">> <<link "Surrender" "rebellionReport">>
<<set $battleResult = -1, $foughtThisWeek = 1>> <<set $battleResult = -1, $foughtThisWeek = 1>>
<</link>> <</link>>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment