diff --git a/src/pregmod/editGenetics.tw b/src/pregmod/editGenetics.tw index 171bd10489caa6721b235d590bdcce4cca6c2810..bcd746c7ac7d8dc1e968e5568208869394eb7244 100644 --- a/src/pregmod/editGenetics.tw +++ b/src/pregmod/editGenetics.tw @@ -191,7 +191,7 @@ if(id === 0) { return '<i>unknown</i>'; } if(id === -1) { /* The PC */ - return tmpl.birthFullName(SugarCube.State.variables.PC) + ' (PC)'; + return tmpl.birthFullName(State.variables.PC) + ' (PC)'; } else { var parent = SugarCube.State.variables.genePool.find(function(s) { return s.ID === id; }); return (parent ? tmpl.birthFullName(parent) : '<i>missing</i>') + ' (' + id + ')'; diff --git a/src/uncategorized/wardrobeUse.tw b/src/uncategorized/wardrobeUse.tw index 21166aaaa22572c014a5047deba70be5ef947834..2ba5d83912171aabd90cede49829420f95fb0b21 100644 --- a/src/uncategorized/wardrobeUse.tw +++ b/src/uncategorized/wardrobeUse.tw @@ -319,7 +319,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.'' <</if>> /* Display an HTML5 color picker */ /* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */ - <<print '<input type="color" value="'+_clothingBaseColor+'" onInput="SugarCube.State.variables.activeSlave.clothingBaseColor = event.target.value;">'>> + <<print '<input type="color" value="'+_clothingBaseColor+'" onInput="State.variables.activeSlave.clothingBaseColor = event.target.value;">'>> <<link "use default color">> <<run delete $activeSlave.clothingBaseColor >> /* reload passage to display everything correctly */ @@ -501,7 +501,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.'' <</if>> /* Display an HTML5 color picker */ /* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */ - <<print '<input type="color" value="'+_shoeColour+'" onInput="SugarCube.State.variables.activeSlave.shoeColor = event.target.value;">'>> + <<print '<input type="color" value="'+_shoeColour+'" onInput="State.variables.activeSlave.shoeColor = event.target.value;">'>> <<link "use default color">> <<run delete $activeSlave.shoeColor >> /* reload passage to display everything correctly */