From 800c8c74129003584ffad6b184b4374ffedd562c Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Thu, 31 Jan 2019 01:05:14 -0500
Subject: [PATCH] Initial commit

---
 src/js/slaveGenerationJS.js             |  1 +
 src/uncategorized/remoteSurgery.tw      | 11 +++++++++++
 src/uncategorized/surgeryDegradation.tw |  2 +-
 src/utility/descriptionWidgetsFlesh.tw  |  3 +++
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/js/slaveGenerationJS.js b/src/js/slaveGenerationJS.js
index 9e03b7e2e94..95f0cb7402b 100644
--- a/src/js/slaveGenerationJS.js
+++ b/src/js/slaveGenerationJS.js
@@ -1500,6 +1500,7 @@ window.BaseSlave = function BaseSlave() {
 		hears: 0,
 		earwear: "none",
 		earImplant: 0,
+		earShape: "normal",
 		origHColor: "brown",
 		hColor: "brown",
 		pubicHColor: "brown",
diff --git a/src/uncategorized/remoteSurgery.tw b/src/uncategorized/remoteSurgery.tw
index 71117e65cd8..5293968c479 100644
--- a/src/uncategorized/remoteSurgery.tw
+++ b/src/uncategorized/remoteSurgery.tw
@@ -155,6 +155,17 @@ $His $activeSlave.faceShape face is
 	<</if>>
 <</if>>
 
+<</if>>
+	<br>&nbsp;&nbsp;&nbsp;&nbsp;
+	$He has 
+<<if $activeSlave.earShape == "normal">>
+	normal shaped ears.
+	[[Elongate ears|Surgery Degradation][$activeSlave.earShape = "elfin", cashX(forceNeg($surgeryCost), "slaveSurgery"), $activeSlave.health -= 10, $surgeryType = "earShape"]]
+<<elseif $activeSlave.earShape == "elfin">>
+	elfin shaped ears.
+	[[Purge ears|Surgery Degradation][$activeSlave.earShape = "normal", cashX(forceNeg($surgeryCost), "slaveSurgery"), $activeSlave.health -= 10, $surgeryType = "earShape"]]
+<</if>>
+
 <<if $activeSlave.earImplant == 1>>
 	<br>&nbsp;&nbsp;&nbsp;&nbsp;
 	$He has cochlear implants.
diff --git a/src/uncategorized/surgeryDegradation.tw b/src/uncategorized/surgeryDegradation.tw
index 3b0bbbd3113..e2ffcddeee0 100644
--- a/src/uncategorized/surgeryDegradation.tw
+++ b/src/uncategorized/surgeryDegradation.tw
@@ -416,7 +416,7 @@ As the remote surgery's long recovery cycle completes,
 	<</if>>
 	<<set $activeSlave.hears = 0>>
 
-<<case "newEars">>
+<<case "earShape">>
 	The implant surgery is @@.red;invasive@@ and $he spends some time in the autosurgery recovering. As soon as the bandages around $his ears are removed, $he initially believes nothing has changed, but soon discovers $his hearing is no longer technologically enhanced.
 
 <<case "boobs">>
diff --git a/src/utility/descriptionWidgetsFlesh.tw b/src/utility/descriptionWidgetsFlesh.tw
index ce769c0499d..443f82c5caf 100644
--- a/src/utility/descriptionWidgetsFlesh.tw
+++ b/src/utility/descriptionWidgetsFlesh.tw
@@ -5321,6 +5321,9 @@ $He's got a
 
 <<widget "earDescription">>
 /* ear shape description here */
+<<if $activeSlave.earShape == "elfin">>
+	$His $activeSlave.earShape ears are <<print either("elongated, ending in pointed tips that might wiggle when "+$he+"'s particularly pleased with something.", "long and thin, tapering to a point.", " leaf-shaped, and twitch with the slightest touch.")>>
+<</if>>
 <<if $activeSlave.hears < 0>>
 	<<if $activeSlave.hears == -1>>
 		$His hearing is noticeably impaired,
-- 
GitLab