From 1f6fa7729f9eb3bcf6fd55c0c4fe1d875d58b47a Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Mon, 25 Mar 2019 21:25:28 -0400 Subject: [PATCH] neighbor ownership --- src/uncategorized/neighborDescription.tw | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/uncategorized/neighborDescription.tw b/src/uncategorized/neighborDescription.tw index e1ee625620a..3fcd338f39a 100644 --- a/src/uncategorized/neighborDescription.tw +++ b/src/uncategorized/neighborDescription.tw @@ -27,7 +27,15 @@ <</if>> <<if $arcologies[$i].government != "your trustees">> <<if $arcologies[$i].government != "your agent">> - Its leadership has control of approximately @@.orange;<<print Math.trunc(($arcologies[$i].ownership*random(100-$economicUncertainty,100+$economicUncertainty))/100)>>%@@ of the arcology<<if $arcologies[$i].minority > $arcologies[$i].ownership-10>>, a dangerously narrow margin over competition with a @@.tan;<<print Math.trunc(($arcologies[$i].minority*random(100-$economicUncertainty,100+$economicUncertainty))/100)>>%@@ share<</if>>. + Its leadership has control of approximately + <<if $assistantPower == 0>> + @@.orange;<<print Math.trunc(($arcologies[$i].ownership*random(100-$economicUncertainty,100+$economicUncertainty))/100)>>%@@ + <<elseif $assistantPower == 1>> + @@.orange;<<print Math.trunc(($arcologies[$i].ownership*random(50-$economicUncertainty,50+$economicUncertainty))/100)>>%@@ + <<else>> + @@.orange;<<print Math.trunc(($arcologies[$i].ownership*$economicUncertainty)/100)>>%@@ + <</if>> + of the arcology<<if $arcologies[$i].minority > $arcologies[$i].ownership-10>>, a dangerously narrow margin over competition with a @@.tan;<<print Math.trunc(($arcologies[$i].minority*random(100-$economicUncertainty,100+$economicUncertainty))/100)>>%@@ share<</if>>. <</if>> <</if>> <<if $arcologies[$i].PCminority > 0>>You own @@.lime;$arcologies[$i].PCminority%@@ of this arcology<<if (($arcologies[$i].government == "your trustees") || ($arcologies[$i].government == "your agent")) && $arcologies[$i].minority > $arcologies[$i].PCminority-10>>, a dangerously narrow margin over competition with a @@.red;<<print Math.trunc(($arcologies[$i].minority*random(100-$economicUncertainty,100+$economicUncertainty))/100)>>%@@ share<</if>>.<</if>> -- GitLab