From b7838ab1e7c5abd638b620a3fe63877b03fddc89 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Wed, 31 Jul 2019 18:42:03 -0400 Subject: [PATCH] fix --- src/js/generateMarketSlave.js | 38 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/js/generateMarketSlave.js b/src/js/generateMarketSlave.js index 41455175d52..9a585634f06 100644 --- a/src/js/generateMarketSlave.js +++ b/src/js/generateMarketSlave.js @@ -668,26 +668,24 @@ window.generateMarketSlave = function(market = "kidnappers", numArcology = 1) { // scar em up -/* Scars: */ -let scarArray = ["left breast", "right breast", "back", "lower back", "left buttock", "right buttock"] -if V.activeSlave.amp != 1 { - scarArray.push("left upper arm", "right upper arm", "left thigh", "right thigh") -} -for (i to 0; _i < _scarArray.length; _i++) { - -} - <<run App.Medicine.Modification.addScar(V.activeSlave, _scarArray[_i], "whip">> -<</for>> -/* Manacles */ -if (V.activeSlave.amp != 1) { - scarArray = ["left wrist", "right wrist", "left ankle", "right ankle"]>> - <<for _i to 0; _i < _scarArray.length; _i++>> - <<run App.Medicine.Modification.addScar(V.activeSlave, _scarArray[_i], "chain")>> - <</for>> -} - -App.Medicine.Modification.addScar(V.activeSlave, "anus", "generic">> -App.Medicine.Modification.addScar(V.activeSlave, "vagina", "generic">> + if (jsRandom(1, 100) > 70) { + let scarArray = ["left breast", "right breast", "back", "lower back", "left buttock", "right buttock"]; + if (V.activeSlave.amp != 1) { + scarArray.push("left upper arm", "right upper arm", "left thigh", "right thigh"); + } + for (i = 0; _i < _scarArray.length; _i++) { + App.Medicine.Modification.addScar(V.activeSlave, _scarArray[_i], "whip"); + } + /* Manacles */ + if (V.activeSlave.amp != 1) { + scarArray = ["left wrist", "right wrist", "left ankle", "right ankle"]; + for (i = 0; _i < _scarArray.length; _i++) { + App.Medicine.Modification.addScar(V.activeSlave, _scarArray[_i], "chain"); + } + } + App.Medicine.Modification.addScar(V.activeSlave, "anus", "generic"); + App.Medicine.Modification.addScar(V.activeSlave, "vagina", "generic"); + } -- GitLab