From f1f4a9e3fbf59a17a1147e61ee2bde22f9cb6238 Mon Sep 17 00:00:00 2001 From: x <okp57855@psoxs.com> Date: Thu, 14 Jun 2018 14:03:19 +1200 Subject: [PATCH] FCTV framework imporvement --- src/uncategorized/fsDevelopments.tw | 175 ++++++++++++++-------------- src/uncategorized/manageArcology.tw | 13 +-- 2 files changed, 90 insertions(+), 98 deletions(-) diff --git a/src/uncategorized/fsDevelopments.tw b/src/uncategorized/fsDevelopments.tw index a800c2d1126..5f978ecd8b8 100644 --- a/src/uncategorized/fsDevelopments.tw +++ b/src/uncategorized/fsDevelopments.tw @@ -8,7 +8,7 @@ [6000,9000,12000,15000,18000], [6000,9000,12000,15000,17000,19000]]>> <<set _FSRepDescriptors = ["solid","high","remarkable","great","excellent","unparalleled"]>> -<<set _ordinalNames = ["second","third","fourth","fifth","sixth","seventh"]>> +<<set _ordinalNames = ["second","third","fourth","fifth","sixth","seventh"]>> <<if $FSCredits > 0>> @@.yellow;$arcologies[0].name's society is ready to begin accepting a new societal direction.@@ <</if>> @@ -23,7 +23,7 @@ <<set _ordinalName = _ordinalNames[$FSGotRepCredits-1]>> <<if $FSGotRepCredits == $FSCreditCount-1>> <<set _ordinalName += " and final">> - <</if>> + <</if>> @@.yellow;Your reputation is so _descriptor that $arcologies[0].name's society is ready to begin accepting a _ordinalName societal direction.@@ <<set $FSGotRepCredits += 1>> <<set $FSCredits += 1>> @@ -93,35 +93,98 @@ <</if>> /* Spending, terrain, rep effects */ -<<set _broadProgress = 0>> +<<set _broadProgress = "">> +<<if ($arcologies[0].FSSupremacist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSSupremacist ">> +<</if>> +<<if ($arcologies[0].FSSubjugationist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSSubjugationist ">> +<</if>> +<<if ($arcologies[0].FSGenderRadicalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSGenderRadicalist ">> +<</if>> +<<if ($arcologies[0].FSGenderFundamentalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSGenderFundamentalist ">> +<</if>> +<<if ($arcologies[0].FSRepopulationFocus != "unset")>> + <<set _broadProgress += "$arcologies[0].FSRepopulationFocus ">> +<</if>> +<<if ($arcologies[0].FSRestart != "unset")>> + <<set _broadProgress += "$arcologies[0].FSRestart ">> +<</if>> +<<if ($arcologies[0].FSPaternalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSPaternalist ">> +<</if>> +<<if ($arcologies[0].FSDegradationist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSDegradationist ">> +<</if>> +<<if ($arcologies[0].FSBodyPurist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSBodyPurist ">> +<</if>> +<<if ($arcologies[0].FSTransformationFetishist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSTransformationFetishist ">> +<</if>> +<<if ($arcologies[0].FSYouthPreferentialist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSYouthPreferentialist ">> +<</if>> +<<if ($arcologies[0].FSMaturityPreferentialist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSMaturityPreferentialist ">> +<</if>> +<<if ($arcologies[0].FSSlimnessEnthusiast != "unset")>> + <<set _broadProgress += "$arcologies[0].FSSlimnessEnthusiast ">> +<</if>> +<<if ($arcologies[0].FSAssetExpansionist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSAssetExpansionist ">> +<</if>> +<<if ($arcologies[0].FSPastoralist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSPastoralist ">> +<</if>> +<<if ($arcologies[0].FSPhysicalIdealist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSPhysicalIdealist ">> +<</if>> +<<if ($arcologies[0].FSHedonisticDecadence != "unset")>> + <<set _broadProgress += "$arcologies[0].FSHedonisticDecadence ">> +<</if>> +<<if ($arcologies[0].FSChattelReligionistLaw != "unset")>> + <<set _broadProgress += "$arcologies[0].FSChattelReligionistLaw ">> +<</if>> +<<if ($arcologies[0].FSRomanRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSRomanRevivalist ">> +<</if>> +<<if ($arcologies[0].FSAztecRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSAztecRevivalist ">> +<</if>> +<<if ($arcologies[0].FSEgyptianRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSEgyptianRevivalist ">> +<</if>> +<<if ($arcologies[0].FSEdoRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSEdoRevivalist ">> +<</if>> +<<if ($arcologies[0].FSArabianRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSArabianRevivalist ">> +<</if>> +<<if ($arcologies[0].FSArabianRevivalistLaw != "unset")>> + <<set _broadProgress += "$arcologies[0].FSArabianRevivalistLaw ">> +<</if>> +<<if ($arcologies[0].FSChineseRevivalist != "unset")>> + <<set _broadProgress += "$arcologies[0].FSChineseRevivalist ">> +<</if>> <<if $FSSpending > 1>> Your @@.yellowgreen;societal spending@@ helps forward your goals for the arcology's future. - <<set _broadProgress += Math.trunc($FSSpending/(1000-(500*$arcologies[0].FSEdoRevivalistLaw)-(250*$arcologies[0].FSArabianRevivalistLaw)))>> + <<set _broadProgress += Math.ceil($FSSpending/1000)>> <</if>> <<if $FCTVreceiver == 3>> - Your customized @@.yellowgreen;FCTV programming@@ strongly influences your citizens, greatly helping define your arcology's culture. - <<if ($week - $receiverAvailable) > 29>> - <<set _broadProgress += 3>> - <<elseif ($week - $receiverAvailable) > 19>> - <<set _broadProgress += 2>> - <<elseif ($week - $receiverAvailable) > 4>> - <<set _broadProgress += 1>> - <</if>> -<<elseif $FCTVreceiver == 2>> - Your customized @@.yellowgreen;FCTV programming@@ influences your citizens, helping define your arcology's culture. - <<if ($week - $receiverAvailable) > 34>> - <<set _broadProgress += 3>> - <<elseif ($week - $receiverAvailable) > 23>> - <<set _broadProgress += 2>> - <<elseif ($week - $receiverAvailable) > 8>> + Your customized @@.yellowgreen;FCTV programming@@ influences your citizens, greatly helping define your arcology's culture. + <<if ($week - $receiverAvailable) < 4>> + <<set _broadProgress += .5>> + <<elseif ($week - $receiverAvailable) < 8>> + <<set _broadProgress += .75>> + <<elseif ($week - $receiverAvailable) < 12>> <<set _broadProgress += 1>> - <</if>> -<<elseif $FCTVreceiver == 1>> - Your customized @@.yellowgreen;FCTV programming@@ influences a small number of your citizens, slightly helping define your arcology's culture. - <<if ($week - $receiverAvailable) > 39>> + <<elseif ($week - $receiverAvailable) < 36>> <<set _broadProgress += 2>> - <<elseif ($week - $receiverAvailable) > 24>> - <<set _broadProgress += 1>> + <<elseif ($week - $receiverAvailable) >= 37>> + <<set _broadProgress += 3>> <</if>> <</if>> <<if $secExp == 1>> @@ -205,68 +268,6 @@ <<case 5>>Maintaining five societal goals requires @@.red;very unfocused social engineering.@@ <</switch>> <</if>> /*closes FS count changes */ -<<if _broadProgress != 0>> - <<if $arcologies[0].FSSupremacist != "unset">> - <<set $arcologies[0].FSSupremacist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSSubjugationist != "unset">> - <<set $arcologies[0].FSSubjugationist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSGenderRadicalist != "unset">> - <<set $arcologies[0].FSGenderRadicalist += _broadProgress>> - <<elseif $arcologies[0].FSGenderFundamentalist != "unset">> - <<set $arcologies[0].FSGenderFundamentalist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSPaternalist != "unset">> - <<set $arcologies[0].FSPaternalist += _broadProgress>> - <<elseif $arcologies[0].FSDegradationist != "unset">> - <<set $arcologies[0].FSDegradationist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSBodyPurist != "unset">> - <<set $arcologies[0].FSBodyPurist += _broadProgress>> - <<elseif $arcologies[0].FSTransformationFetishist != "unset">> - <<set $arcologies[0].FSTransformationFetishist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSSlimnessEnthusiast != "unset">> - <<set $arcologies[0].FSSlimnessEnthusiast += _broadProgress>> - <<elseif $arcologies[0].FSAssetExpansionist != "unset">> - <<set $arcologies[0].FSAssetExpansionist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSPastoralist != "unset">> - <<set $arcologies[0].FSPastoralist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSPhysicalIdealist != "unset">> - <<set $arcologies[0].FSPhysicalIdealist += _broadProgress>> - <<elseif $arcologies[0].FSHedonisticDecadence != "unset">> - <<set $arcologies[0].FSHedonisticDecadence += _broadProgress>> - <</if>> - <<if $arcologies[0].FSMaturityPreferentialist != "unset">> - <<set $arcologies[0].FSMaturityPreferentialist += _broadProgress>> - <<elseif $arcologies[0].FSYouthPreferentialist != "unset">> - <<set $arcologies[0].FSYouthPreferentialist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSChattelReligionist != "unset">> - <<set $arcologies[0].FSChattelReligionist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSRomanRevivalist != "unset">> - <<set $arcologies[0].FSRomanRevivalist += _broadProgress>> - <<elseif $arcologies[0].FSAztecRevivalist != "unset">> - <<set $arcologies[0].FSAztecRevivalist += _broadProgress>> - <<elseif $arcologies[0].FSEgyptianRevivalist != "unset">> - <<set $arcologies[0].FSEgyptianRevivalist += _broadProgress>> - <<elseif $arcologies[0].FSEdoRevivalist != "unset">> - <<set $arcologies[0].FSEdoRevivalist += _broadProgress>> - <<elseif $arcologies[0].FSArabianRevivalist != "unset">> - <<set $arcologies[0].FSArabianRevivalist += _broadProgress>> - <<elseif $arcologies[0].FSChineseRevivalist != "unset">> - <<set $arcologies[0].FSChineseRevivalist += _broadProgress>> - <</if>> - <<if $arcologies[0].FSRepopulationFocus != "unset">> - <<set $arcologies[0].FSRepopulationFocus += _broadProgress>> - <<elseif $arcologies[0].FSRestart != "unset">> - <<set $arcologies[0].FSRestart += _broadProgress>> - <</if>> -<</if>> <<if $secExp == 1>> <<if $slaveWatch == 1>> diff --git a/src/uncategorized/manageArcology.tw b/src/uncategorized/manageArcology.tw index 6aa5855f5fd..926ba22b020 100644 --- a/src/uncategorized/manageArcology.tw +++ b/src/uncategorized/manageArcology.tw @@ -74,17 +74,8 @@ __Construction__ <br> <<if ($receiverAvailable == 1) && ($FCTVenable != 0) && ($FCTVreceiver == 0)>> - You have not installed an FCTV receiver. Installing this receiver yourself will cost <<print cashFormat(Math.trunc(25000*$upgradeMultiplierArcology))>>. You can have your citizens pay for the fiberoptic upgrades, reducing the cost to <<print cashFormat(Math.trunc(20000*$upgradeMultiplierArcology))>>. You can also have them heavily subsidize installation, they will be upset about it, but it will only cost <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology))>>. - [[No subsidy|Manage Arcology][$cash -= Math.trunc(25000*$upgradeMultiplierArcology), $FCTVreceiver = 1, $receiverAvailable = $week, $rep += 500, $PC.engineering += 1]] - | [[Light subsidy|Manage Arcology][$cash -= Math.trunc(20000*$upgradeMultiplierArcology), $FCTVreceiver = 2, $receiverAvailable = $week, $PC.engineering += 1]] - | [[Heavy subsidy|Manage Arcology][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $FCTVreceiver = 3, $receiverAvailable = $week, $rep -= 1500, $PC.engineering += 1]] -<</if>> -<<if ($FCTVreceiver == 1)>> - You have installed the FCTV receiver and have access to the full range of FCTV's programs. Low viewership rates due to a lack of personal investment amongst your citizens limits the impact of FCTV on your societal goals. -<<elseif ($FCTVreceiver == 2)>> - You have installed the FCTV receiver and have access to the full range of FCTV's programs. Decent viewership rates due to a noticable amount of personal investment amongst your citizens makes it somewhat easier to pursue your societal goals. -<<elseif ($FCTVreceiver == 3)>> - You have installed the FCTV receiver and have access to the full range of FCTV's programs. High viewership rates due to a large amount of personal investment amongst your citizens makes it easier to pursue your societal goals. + You have not installed a FCTV receiver. Installing this receiver will cost <<print cashFormat(Math.ceil(50000*$upgradeMultiplierArcology))>>. + [[Install|Manage Arcology][$cash -= Math.ceil(50000*$upgradeMultiplierArcology), $FCTVreceiver = 1, $receiverAvailable = $week, $rep += 500, $PC.engineering += 1]] <</if>> <<if $secExp == 1>> -- GitLab