From 5b89acf2e43c9fe90ae98d395debb55381f7432b Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 30 Nov 2020 16:56:46 -0500 Subject: [PATCH] cheat --- .../bodyModification/bodyModification.js | 58 +++++++++++++------ 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/src/facilities/bodyModification/bodyModification.js b/src/facilities/bodyModification/bodyModification.js index 78343de6904..8cd507b4c2d 100644 --- a/src/facilities/bodyModification/bodyModification.js +++ b/src/facilities/bodyModification/bodyModification.js @@ -735,7 +735,9 @@ App.UI.bodyModification = function(slave, cheat = false) { slave.custom.tattoo, (v) => { slave.custom.tattoo = v; - cashX(forceNeg(V.surgeryCost), "slaveMod", slave); + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + } refresh(); } ) @@ -748,7 +750,9 @@ App.UI.bodyModification = function(slave, cheat = false) { "Remove custom Tattoo", () => { slave.custom.tattoo = ""; - cashX(forceNeg(V.surgeryCost), "slaveMod", slave); + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + } } ) ); @@ -795,8 +799,10 @@ App.UI.bodyModification = function(slave, cheat = false) { () => { scarApplied = 0; delete slave.scar[_scarName]; - cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); - degradation -= 10; + if (!cheat) { + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + degradation -= 10; + } refresh(); } ) @@ -958,8 +964,10 @@ App.UI.bodyModification = function(slave, cheat = false) { V.scarTarget.local = _leftTarget; scarApplied = 1; App.Medicine.Modification.addScar(slave, _leftTarget, V.scarDesign.local); - cashX(forceNeg(V.modCost), "slaveMod", slave); - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + degradation += 10; + } refresh(); } ) @@ -980,8 +988,10 @@ App.UI.bodyModification = function(slave, cheat = false) { V.scarTarget.local = _rightTarget; scarApplied = 1; App.Medicine.Modification.addScar(slave, _rightTarget, V.scarDesign.local); - cashX(forceNeg(V.modCost), "slaveMod", slave); - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + degradation += 10; + } refresh(); } ) @@ -1034,9 +1044,11 @@ App.UI.bodyModification = function(slave, cheat = false) { degradation += 10; } } - cashX(forceNeg(V.modCost), "slaveMod", slave); - scarApplied = 1; - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + scarApplied = 1; + degradation += 10; + } refresh(); } ) @@ -1074,8 +1086,10 @@ App.UI.bodyModification = function(slave, cheat = false) { () => { brandApplied = false; delete slave.brand[brandPlace]; - cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); - degradation -= 10; + if (!cheat) { + cashX(forceNeg(V.surgeryCost), "slaveSurgery", slave); + degradation -= 10; + } refresh(); }, ) @@ -1181,8 +1195,10 @@ App.UI.bodyModification = function(slave, cheat = false) { () => { brandApplied = true; slave.brand[leftTarget] = check(V.brandDesign.local); - cashX(forceNeg(V.modCost), "slaveMod", slave); - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + degradation += 10; + } refresh(); }, ) @@ -1213,8 +1229,10 @@ App.UI.bodyModification = function(slave, cheat = false) { () => { brandApplied = true; slave.brand[rightTarget] = check(V.brandDesign.local); - cashX(forceNeg(V.modCost), "slaveMod", slave); - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + degradation += 10; + } refresh(); }, ) @@ -1248,8 +1266,10 @@ App.UI.bodyModification = function(slave, cheat = false) { () => { brandApplied = true; slave.brand[V.brandTarget.local] = V.brandDesign.local; - cashX(forceNeg(V.modCost), "slaveMod", slave); - degradation += 10; + if (!cheat) { + cashX(forceNeg(V.modCost), "slaveMod", slave); + degradation += 10; + } refresh(); }, ) -- GitLab