From 4a4658a778ccb944525c4a0c927623e688229988 Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Tue, 28 May 2019 10:49:01 -0400 Subject: [PATCH] progress --- slave variables documentation - Pregmod.txt | 2 +- src/js/datatypeCleanupJS.js | 2 +- src/uncategorized/bodyModification.tw | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slave variables documentation - Pregmod.txt b/slave variables documentation - Pregmod.txt index fbff5403ce4..51afbf2ed7b 100644 --- a/slave variables documentation - Pregmod.txt +++ b/slave variables documentation - Pregmod.txt @@ -2153,7 +2153,7 @@ nail type brand: is an object -keys include any place on a slave body that can recieve a brand, and values are 0 for no brand or a string for the brand. +keys include any place on a slave body that can recieve a brand, values are a string for the brand. earPiercing: diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index 9e318602dd5..a0973e8faac 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -172,7 +172,7 @@ App.Entity.Utils.SlaveDataSchemeCleanup = (function() { */ function migrateBrand(slave) { if (typeof slave.brand !== "object") { - const brand = {}; + let brand = {}; if (slave.brandLocation !== 0) { brand[slave.brandLocation] = slave.brand; } diff --git a/src/uncategorized/bodyModification.tw b/src/uncategorized/bodyModification.tw index 941a542349c..cb24fa183c3 100644 --- a/src/uncategorized/bodyModification.tw +++ b/src/uncategorized/bodyModification.tw @@ -895,7 +895,7 @@ Branding: <<capture _brandName>> <<link "Remove Brand">> <<set $brandApplied = 0>> - <<set $activeSlave.brand[_brandName] = 0>> + <<set $activeSlave.brand.deleteAt(_brandName)>> <<run cashX(forceNeg($surgeryCost), "slaveSurgery", $activeSlave)>> <<set $degradation -= 10>> <<goto "Body Modification">> -- GitLab