From a8569de38a2cbd8985babab3354e4d976477d6e6 Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Sun, 15 Sep 2019 18:01:37 -0400
Subject: [PATCH] respect amp

---
 src/uncategorized/BackwardsCompatibility.tw | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw
index 9a447add808..0b116f26af6 100644
--- a/src/uncategorized/BackwardsCompatibility.tw
+++ b/src/uncategorized/BackwardsCompatibility.tw
@@ -99,11 +99,23 @@
 <</if>>
 
 <<if !$customSlave.hasOwnProperty("leg")>>
-	<<set $customSlave.leg = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}>>
+	<<if def $customSlave.amp && $customSlave.amp === 1>>
+		<<set $customSlave.leg = {left: null, right: null}>>
+	<<else>>
+		<<set $customSlave.leg = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}>>
+	<</if>>
 <</if>>
 
 <<if !$customSlave.hasOwnProperty("arm")>>
-	<<set $customSlave.arm = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}>>
+	<<if def $customSlave.amp && $customSlave.amp === 1>>
+		<<set $customSlave.arm = {left: null, right: null}>>
+	<<else>>
+		<<set $customSlave.arm = {left: new App.Entity.LimbState(), right: new App.Entity.LimbState()}>>
+	<</if>>
+<</if>>
+
+<<if $customSlave.hasOwnProperty("amp")>>
+	<<run delete $customSlave.amp>>
 <</if>>
 
 <<if !$customSlave.hasOwnProperty("skill")>>
-- 
GitLab