From c7bf2159f2f4b90a1fe9f155731ff0a0b3d3ac60 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Mon, 15 Feb 2021 22:08:52 -0500 Subject: [PATCH] Basic cheats for corporation --- src/Corporation/manageCorporation.tw | 6 ++++++ src/gui/options/options.js | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/Corporation/manageCorporation.tw b/src/Corporation/manageCorporation.tw index 4b285e19ec3..9425d60841c 100644 --- a/src/Corporation/manageCorporation.tw +++ b/src/Corporation/manageCorporation.tw @@ -374,6 +374,9 @@ You own <<print num($personalShares)>> shares while another <<print num($publicS <</if>> <<if $corp.SpecTimer > 0>> You have recently changed specializations and the corporation needs <<if $corp.SpecTimer > 1>>$corp.SpecTimer more weeks<<else>>another week<</if>> before it can comply with another directive. + <<if $cheatMode == 1>> + [[Skip wait|Manage Corporation][$corp.SpecTimer = 0]] + <</if>> <<else>> <br>Choosing to specialize your corporation uses a specialization. The corporation can be directed to focus on the following: <<if $corp.SpecRaces.length == 0 && ($corp.DivExtra > 0 || $corp.DivLegal > 0)>> /*This used to be $captureUpgradeRace, it is a general acquisition specialization*/ @@ -478,6 +481,9 @@ You own <<print num($personalShares)>> shares while another <<print num($publicS <</if>> <<else>> <br>Your corporation cannot pick a new specialization at this time. + <<if $cheatMode == 1>> + [[Unlock specialization|Manage Corporation][$corp.SpecToken++, $corp.SpecTimer = 0]] + <</if>> <</if>> <p> diff --git a/src/gui/options/options.js b/src/gui/options/options.js index 4558b19fbb8..f91cfee161a 100644 --- a/src/gui/options/options.js +++ b/src/gui/options/options.js @@ -955,6 +955,19 @@ App.UI.optionsPassage = function() { "Options" ) ); + if (V.corp.Announced !== 1) { + links = []; + links.push( + App.UI.DOM.link( + "Enable Corporation", + () => { + V.corp.Announced = 1; + }, + [], + "Options" + ) + ); + } App.UI.DOM.appendNewElement("div", el, App.UI.DOM.generateLinksStrip(links), "scLink2"); } return (el); -- GitLab