From 7a1dbd4f17a7cde88c2cf877d605b94bdc649692 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sat, 7 Mar 2020 21:34:01 -0500 Subject: [PATCH] move corp init --- src/Corporation/corporate-constants.js | 1 + src/init/setupVars.tw | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Corporation/corporate-constants.js b/src/Corporation/corporate-constants.js index 4ab47e4d1f9..8b3278d7097 100644 --- a/src/Corporation/corporate-constants.js +++ b/src/Corporation/corporate-constants.js @@ -1,4 +1,5 @@ App.Corporate.InitConstants = function() { + if (!V.corp) { V.corp = {}; } App.Corporate.payoutMinimumCash = 1000000; App.Corporate.payoutCorpValueMultiplier = 0.05; App.Corporate.dividendOptions = [0.75, 0.5, 0.25, 0.1, 0.05]; diff --git a/src/init/setupVars.tw b/src/init/setupVars.tw index 1d7fdaeac0f..8a2594427cb 100644 --- a/src/init/setupVars.tw +++ b/src/init/setupVars.tw @@ -7,7 +7,4 @@ <<set setup[_k] = _v>> <</for>> <<run App.Art.cacheArtData()>> -<<if ndef $corp>> - <<set $corp = {}>> -<</if>> <<run App.Corporate.Init()>> -- GitLab