diff --git a/src/js/consistencyCheck.js b/src/js/consistencyCheck.js index 95fc8a619940e5e303f3de006f36056979e0eefd..06aa274e6517304b408a5842e748af1d34135ca4 100644 --- a/src/js/consistencyCheck.js +++ b/src/js/consistencyCheck.js @@ -3,8 +3,7 @@ * @param {JQuery.PassageRenderingEvent} event */ App.Debug.slavesConsistency = function(event) { - if (event.passage.title !== "AS Dump" // Don't put in the work on passages we leave immediately anyway. - && V.slaves !== undefined) { // no V.slaves at game start + if (V.slaves !== undefined) { // no V.slaves at game start if (V.slaves.includes(null)) { const p = document.createElement("p"); p.append(App.UI.DOM.makeElement("span", "ERROR: Main slaves array contains a null entry! Please report this. ", "error"), diff --git a/src/npc/asDump.tw b/src/npc/asDump.tw deleted file mode 100644 index b4cbe49c29a289151e1421f15e92cfe2384ee915..0000000000000000000000000000000000000000 --- a/src/npc/asDump.tw +++ /dev/null @@ -1,30 +0,0 @@ -:: AS Dump [no-history] - -<<if (ndef $activeSlave) || ($activeSlave == 0)>> - - @@.red;ERROR:@@ AS Dump, activeSlave invalid, returnTo is '$returnTo', previous passage was '<<print previous()>>'. Please report this. - - <<link "Continue">><<goto $returnTo>><</link>> | [[Go Back|previous()]] - -<<else>> - - <<silently>> - - <<set _SL = $slaves.length, _ID = $activeSlave.ID>> - - <<if $i >= 0 && $i < _SL && $slaves[$i].ID == _ID>> /* shortcut if $i is already pointing to this slave */ - <<set $slaves[$i] = $activeSlave>> - <<else>> - <<set $i = $slaveIndices[_ID]>> /* find $i if exists */ - <<if ndef $i>> /* not found, so new slave */ - <<run newSlave($activeSlave)>> - <<else>> - <<set $slaves[$i] = $activeSlave>> - <</if>> - <</if>> - - <</silently>> - - <<goto $returnTo>> - -<</if>>