From a12bfe33024fd399087647524a9ca060872a9745 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 5 Mar 2020 18:09:57 -0500
Subject: [PATCH] working loop

---
 src/init/storyInit.tw | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/init/storyInit.tw b/src/init/storyInit.tw
index e79cefca0de..a99ac2cd903 100644
--- a/src/init/storyInit.tw
+++ b/src/init/storyInit.tw
@@ -12,12 +12,10 @@ 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/>.
 */
 
-/* Set up the game as politely as possible */
+/* Set up the game as politely as possible.  If values are already set, they are preserved. */
 <<run App.Update.setNonexistantProperties(V, App.Data.defaultGameStateVariables)>>
 
-/* These variables must be created AND set to default values NG+ or not */
-/*<<run V.assign(App.Data.resetOnNGPlus)>>*/
-<<set _NG = App.Data.resetOnNGPlus>>
+/* These variables must be created AND set to default values, NG+ or not */
 <script>
 for (let variable in App.Data.resetOnNGPlus) {
 	V[variable] = App.Data.resetOnNGPlus[variable];
@@ -108,6 +106,7 @@ for (let variable in App.Data.resetOnNGPlus) {
 
 <</if>>
 /* Porn star counts (prestige 1) and ID's (prestige 3) */
+<<set $pornStars = {}>>
 <<for _genre range App.Porn.getAllGenres()>>
 	<<set $pornStars[_genre.fameVar] = { p1count: 0, p3ID: 0 }>>
 <</for>>
-- 
GitLab