From 8be9e421765700c109ff0c719c20771e89e39a8f Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Wed, 13 Mar 2019 20:07:08 -0400 Subject: [PATCH] Fixes, new and old --- src/js/futureSocietyJS.js | 8 ++++---- src/utility/miscWidgets.tw | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/js/futureSocietyJS.js b/src/js/futureSocietyJS.js index bacc24c4d70..57b68a48706 100644 --- a/src/js/futureSocietyJS.js +++ b/src/js/futureSocietyJS.js @@ -1,8 +1,8 @@ window.FutureSocieties = (function() { return { - remove: removeFS - resetCredits: resetFSCredits, - } + remove: removeFS, + resetCredits: resetFSCredits + }; // call as FutureSocieties.remove(FS) // FS must be a string (e.g. "FSPaternalist" or "FSDegradationist"). @@ -13,7 +13,7 @@ window.FutureSocieties = (function() { const FSSMR = FS + "SMR"; let FSLaw = FS + "Law"; if (arcology[FS] === undefined) { - console.log(`ERROR: bad FS reference, $arcologies[0].${FS} not defined`) + console.log(`ERROR: bad FS reference, $arcologies[0].${FS} not defined`); return; } diff --git a/src/utility/miscWidgets.tw b/src/utility/miscWidgets.tw index ad4a6170a1d..d5ec0b01f6d 100644 --- a/src/utility/miscWidgets.tw +++ b/src/utility/miscWidgets.tw @@ -685,6 +685,8 @@ This experience [[Customize the exterior of the arcology to support this goal|Future Society][$arcologies[0][_FSDecoration] = 100, State.variables[$args[1]] = 1, State.variables[$args[2]] = 1, State.variables[$args[3]] = 1, cashX(-20000, "capEx")]] //Costs <<print cashFormat(20000)>>// <<elseif def $args[1]>> [[Customize the exterior of the arcology to support this goal|Future Society][$arcologies[0][_FSDecoration] = 100, State.variables[$args[1]] = 1, cashX(-20000, "capEx")]] //Costs <<print cashFormat(20000)>>// + <<elseif $args[0] == "FSRestart">> + [[Customize the exterior of the arcology to support this goal and fully establish the Societal Elite|Future Society][$arcologies[0].FSRestartDecoration = 100, $upgradeMultiplierArcology = upgradeMultiplierArcology(), $upgradeMultiplierMedicine = 0.5, $cash -= 75000]] //Costs <<print cashFormat(75000)>> and may dilute your control over the arcology// <<else>> [[Customize the exterior of the arcology to support this goal|Future Society][$arcologies[0][_FSDecoration] = 100, cashX(-20000, "capEx")]] //Costs <<print cashFormat(20000)>>// <</if>> -- GitLab