From a2e66ea8ac8afd812989c9650f29c719ee4b9b85 Mon Sep 17 00:00:00 2001
From: turnop <17540-turnop@users.noreply.gitgud.io>
Date: Sat, 19 Sep 2020 16:25:37 -0700
Subject: [PATCH] adds if tags to poorknight

---
 src/uncategorized/SEpoorKnight.tw | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/uncategorized/SEpoorKnight.tw b/src/uncategorized/SEpoorKnight.tw
index 3085ff2e7c4..8af6b4ef883 100644
--- a/src/uncategorized/SEpoorKnight.tw
+++ b/src/uncategorized/SEpoorKnight.tw
@@ -9,7 +9,7 @@ The cruel rambunciousness of this trader and your own Knights continued for a fe
 This 'Valentin', a quiet man built like a mountain, has very rapidly become a local hero to your peasantry. You have heard petitions calling for him to be Knighted, and the public has nearly immediately come to see him as a courageous fighter against the various injustices of your hierarchical Imperial society. Your Barons, on the other hand, murmur that he is a rabblerouser, a peasant who has clearly forgotten his station at the bottom of the pyramid, and that to do anything but punish him for his insolence will surely lead to riots and unrest. Such a man would surely be a proud and capable Imperial Knight, but to Knight him would undoubtedly be seen as condoning liberal freedoms in your lower classes, and a Knight drawn from the filthy, unwashed peasants is totally unheard of.
 <br><br>
 <span id="result">
-
+<<if $cash >= 5000>>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;<<link "Knight him in a Grand Festival">> <<print cashFormat(5000)>>
 	<<replace "#result">>
 	You make your stance on the issue known with a large public ceremony, awarding Valentin with his own private apartment, coat of arms, and a set of Imperial Plate in the very marketplace where he bested a group of brutish foreign thugs and an overly-cocky Knight. A swarm of peasantry surround every inch of the ceremony, @@.green;cheering your name@@ and 'Sir' Valentin's as you demonstrate that skill and courage is more important than social station. The furious foreign merchant sends you a message a few days later swearing to @@.red;never return to your arcology@@, and the Barons grumble about the wildly dancing and celebrating peasants @@.red;undermining your authority@@.
@@ -17,7 +17,9 @@ This 'Valentin', a quiet man built like a mountain, has very rapidly become a lo
     <<run $arcologies[0].prosperity -= 2>>
     <<run repX(5000, "event")>>
 	<</replace>> 
+<</if>>
 <</link>>
+<<if $cash >= 500>>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;<<link "Knight him in a Quiet Ceremony">> <<print cashFormat(500)>>
 	<<replace "#result">>
 	You quietly award the brave peasant a set of Imperial Plate and his own apartment in a private ceremony attended only by a handful of your Barons and Knights. Many of the watching oligarchs seem thoroughly unenthusiastic about the enormous, grease-stained man joining their hallowed ranks, but politely clap and congratulate him nevertheless. Even the pompous Knight who he beat a few days ago, still sporting a black eye, claps him on the back after you have him rise as 'Sir' Valentin and congratulates him on a fight "befitting of a real man". Word of your decision soon reaches the peasantry, who @@.green;celebrate@@ the rewards given for honor, but you later recieve a message from the foreign merchant infuriated that you would reward such insolence and claiming that he'll @@.red;hike his prices for you@@.
@@ -25,6 +27,7 @@ This 'Valentin', a quiet man built like a mountain, has very rapidly become a lo
     <<run $arcologies[0].prosperity -= 1>>
     <<run repX(2000, "event")>>
 	<</replace>>
+<</if>>
 <</link>>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;<<link "Have him flogged for attacking your honored guests">>
 	<<replace "#result">>
-- 
GitLab