diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 24940631d44baf076a0ccf215161d34468604fc5..6e719bfda423e0d143575656ee22c630b61522ea 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -9576,7 +9576,7 @@ window.assignJob = function assignJob(slave, job) { slave.assignmentVisible = 0; V.farmyardSlaves++; V.FarmyardiIDs.push(slave.ID); - switch (V.dairyDecoration) { + switch (V.farmyardDecoration) { case "Aztec Revivalist": case "Chinese Revivalist": case "Chattel Religionist": diff --git a/src/facilities/nursery/placeInNursery.tw b/src/facilities/nursery/placeInNursery.tw deleted file mode 100644 index a233eae109a7791d323e896b97fd9144115925ec..0000000000000000000000000000000000000000 --- a/src/facilities/nursery/placeInNursery.tw +++ /dev/null @@ -1,60 +0,0 @@ -:: Place In Nursery - -/* CURRENTLY NOT IN USE -<<silently>> - -<<set $childrenInLine = []>> -<<set _activeChildIndex = $childIndices[$activeSlave.ID]>> -<<set _CL = $cribs.length>> - -<<if ($activeSlave.assignmentVisible == 1)>> - <<for _pin = _activeChildIndex - 1; _pin != _activeChildIndex; _pin-->> /* loops backwards through the $cribs array *//* - <<if _pin < 0>> - <<set _pin = _CL>> - <<continue>> - <</if>> - <<if $cribs[_pin].assignmentVisible == 1>> - <<set $childrenInLine.push(_pin)>> /* index of the previous slave in line *//* - <<break>> - <</if>> - <</for>> - <<for _pin = _activeChildIndex + 1; _pin != _activeChildIndex; _pin++>> /* this loops forwards through the $cribs array *//* - <<if _pin == _CL>> - <<set _pin = -1>> - <<continue>> - <</if>> - <<if $cribs[_pin].assignmentVisible == 1>> - <<set $childrenInLine.push(_pin)>> /* index of the next slave in line *//* - <<break>> - <</if>> - <</for>> -<<else>> - <<for _pin = _activeChildIndex - 1; _pin != _activeChildIndex; _pin-->> /* loops backwards through the $cribs array *//* - <<if _pin < 0>> - <<set _pin = _CL>> - <<continue>> - <</if>> - <<if ($cribs[_pin].assignment == $activeSlave.assignment)>> - <<set $childrenInLine.push(_pin)>> /* index of the previous slave in line *//* - <<break>> - <</if>> - <</for>> - <<for _pin = _activeChildIndex + 1; _pin != _activeChildIndex; _pin++>> /* this loops forwards through the $cribs array *//* - <<if _pin == _CL>> - <<set _pin = -1>> - <<continue>> - <</if>> - <<if ($cribs[_pin].assignment == $activeSlave.assignment)>> - <<set $childrenInLine.push(_pin)>> /* index of the next slave in line *//* - <<break>> - <</if>> - <</for>> -<</if>> - -<<if $childrenInLine.length == 0>> /* if there are no other cribs available, set previous/next slave to self *//* - <<set $childrenInLine[0] = _activeChildIndex>> - <<set $childrenInLine[1] = _activeChildIndex>> -<</if>> - -<</silently>> -*/ \ No newline at end of file diff --git a/src/js/assignJS.tw b/src/js/assignJS.tw index 6beaa0a0785d97dc375228da0cb51d8b58ea712d..2ca984e1b0ffcf2b7e145c89a9825273711f5248 100644 --- a/src/js/assignJS.tw +++ b/src/js/assignJS.tw @@ -133,7 +133,7 @@ window.assignJob = function assignJob(slave, job) { slave.assignmentVisible = 0; V.farmyardSlaves++; V.FarmyardiIDs.push(slave.ID); - switch (V.dairyDecoration) { + switch (V.farmyardDecoration) { case "Aztec Revivalist": case "Chinese Revivalist": case "Chattel Religionist":