:: PassageDone[nobr]
<<include 'PassageDoneCommands'>>

:: PassageDoneCommands
	<<run $connectedLocations.sortByPriority()>>
	<<run console.log("connectedLocations",$connectedLocations)>>
	<<append "#connectedLocations">><<for _connectedLocation range $connectedLocations>><<if _connectedLocation.forPassage == passage()>><<ConnectedLocationDom _connectedLocation>><</if>><</for>><</append>>
	
	<<for _npcId, _npcAction range _presentNPCs ?? {}>>
		<<if _npcAction.trim()>>
			<<act $npc(_npcId).usedname undefined `{image:$npc(_npcId).image,capture:['_npcAction']}`>>_npcAction<</act>>
		<</if>>
	<</for>>
	
	<<actionsRefresh>>


		

	<<if $settings and $settings.lightmode === true>>
		<<done>>
			<<run setup.applyLightStyle()>>
		<</done>>
	<</if>>

	<<set _messagingExecuted = true>>
    <<for _label, _class range $msg_queue || {}>>
        <<msgPresent _label _class>>
    <</for>>

    <<script>>
        $(".autoReload").find("select").on("change", function (event) {
            Engine.show();
        });
    <</script>>

