diff --git a/slave variables documentation - Pregmod.txt b/slave variables documentation - Pregmod.txt index fbff5403ce436c8bf4ab492fa411094e61c3822c..51afbf2ed7b27460f33c09bdc73eb5e0ddbf81c8 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 9e318602dd5b81936b4ef0f66e594b93324cbd13..a0973e8faac486b245ad2c867dc869cef7870f98 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 941a542349cccbdcc6b3caa73be9eba9d2530ab9..cb24fa183c36d3314eec0b9e87ba19160a4219e1 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">>