From bcb972aaca426a773b14d4ef79e7857113969148 Mon Sep 17 00:00:00 2001 From: corncobman21 <corncobman21@hotmail.com> Date: Mon, 18 Dec 2017 04:47:00 -0500 Subject: [PATCH] Change name, clothes and desc lisp replacing to JS function --- src/uncategorized/RESS.tw | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/uncategorized/RESS.tw b/src/uncategorized/RESS.tw index 4823679b8b7..9e88a2f2cfb 100644 --- a/src/uncategorized/RESS.tw +++ b/src/uncategorized/RESS.tw @@ -1428,7 +1428,8 @@ You come face to face with <<EventNameLink $activeSlave>> in a hallway of your p <<case "used whore">> <<if SlaveStatsChecker.checkForLisp($activeSlave)>> - <<set _slavename = $activeSlave.slaveName, _slavename = _slavename.replace("ss", "th"), _slavename = _slavename.replace("S", "Th"), _slavename = _slavename.replace("s", "th")>> + <<set _slavename = $activeSlave.slaveName>> + <<set _slavename = nameReplace(_slavename)>> <<else>> <<set _slavename = $activeSlave.slaveName>> <</if>> @@ -3819,7 +3820,8 @@ sighing contentedly at the feeling. <<if canSee($activeSlave)>>She opens her eye <<case "modest clothes">> <<if SlaveStatsChecker.checkForLisp($activeSlave)>> - <<set _clothes = $activeSlave.clothes, _clothes = _clothes.replace("ss", "th"), _clothes = _clothes.replace("S", "Th"), _clothes = _clothes.replace("s", "th")>> + <<set _clothes = $activeSlave.clothes>> + <<set _clothes = nameReplace(_clothes)>> <<else>> <<set _clothes = $activeSlave.clothes>> <</if>> @@ -17512,7 +17514,8 @@ You tell her kindly that you understand, and that she'll be trained to address t <<EventNameDelink $activeSlave>> <<replace "#result">> <<if SlaveStatsChecker.checkForLisp($activeSlave)>> - <<set _desc = $desc, _desc = _desc.replace("ss", "th"), _desc = _desc.replace("S", "Th"), _desc = _desc.replace("s", "th")>> + <<set _desc = $desc>> + <<set _desc = nameReplace(_desc)>> <<else>> <<set _desc = $desc>> <</if>> -- GitLab