Skip to content
Snippets Groups Projects
Commit 7c53b2bc authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix arc undefined

parent 0f69a0ab
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,12 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
<<if def $arcologies && def $arcologies[0] && def $arcologies[0].prosperity>>
<<set _prosperity = (250*$arcologies[0].prosperity*$arcologies[0].ownership)>>
<<else>>
<<set _prosperity = 0>>
<</if>>
/* Set up the game as politely as possible. If values are already set, they are preserved. */
<<run App.Update.setNonexistantProperties(V, App.Data.defaultGameStateVariables)>>
......@@ -38,9 +44,7 @@ You should have received a copy of the GNU General Public License along with thi
<<else>> /* imported save (NG+) */
<<if $freshPC == 0>>
<<if def $arcologies[0].prosperity>>
<<run cashX((250*$arcologies[0].prosperity*$arcologies[0].ownership), "personalBusiness")>>
<</if>>
<<run cashX(_prosperity, "personalBusiness")>>
<<set _cash = $cash, $cash = 0, $cashLastWeek = 0>>
<<run cashX((Math.clamp(1000*Math.trunc(_cash/100000), 5000, 1000000)), "personalBusiness")>>
<<if $retainCareer == 0>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment