From 47d3f512d72895ce992d43387143710539b38751 Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Sun, 24 Sep 2017 12:48:16 +0300
Subject: [PATCH] added belly size as simple condition to RA

---
 src/uncategorized/rulesAssistant.tw | 9 ++++++++-
 src/utility/raWidgets.tw            | 2 ++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/uncategorized/rulesAssistant.tw b/src/uncategorized/rulesAssistant.tw
index 955180c0451..c2b2befb041 100644
--- a/src/uncategorized/rulesAssistant.tw
+++ b/src/uncategorized/rulesAssistant.tw
@@ -131,7 +131,7 @@
 __Rule $r Automatic Activation__
 <span id="activation"></span>
 
-<<if isSimpleCondition($currentRule.condition, ["devotion", "trust", "health", "energy", "weight", "actualAge", "physicalAge", "visualAge", "muscles", "lactation", "preg", "pregType", "bellyImplant"])>>
+<<if isSimpleCondition($currentRule.condition, ["devotion", "trust", "health", "energy", "weight", "actualAge", "physicalAge", "visualAge", "muscles", "lactation", "preg", "pregType", "bellyImplant", "belly"])>>
 
 <<timed 50ms>>
 	<<RAChangeActivation>>
@@ -245,6 +245,13 @@ __Rule $r Automatic Activation__
 <</link>> 
 <</if>>
 |
+<<link "Belly Size">>
+	<<unset _customCondition>>
+	<<set $currentRule.condition = changeVariable($currentRule.condition, "belly")>>
+	<<RAChangeActivation>>
+	<<RARuleModified>>
+<</link>> 
+|
 <<link "Custom">>
 	<<if (def _customConditionOld)>>
 		<<set _customCondition = _customConditionOld>>
diff --git a/src/utility/raWidgets.tw b/src/utility/raWidgets.tw
index b5caf05358b..186289dccdc 100644
--- a/src/utility/raWidgets.tw
+++ b/src/utility/raWidgets.tw
@@ -133,6 +133,8 @@
             <br>// Fetus count, rule can be applied only after week 10 of pregnancy. //
         <<case "bellyImplant">>
             <br>// Volume of belly implant in ccs. -1 - none. //
+        <<case "belly">>
+            <br>// Volume of belly in ccs. Any source. //
         <<case "custom">>
             <br>// Enter custom condition. //
         <</switch>>
-- 
GitLab