:: Agent Select [nobr jump-from-safe]

<<set $nextButton = "Back", $nextLink = "Neighbor Interact", $encyclopedia = "Agents">>
''Appoint an Agent from your devoted slaves:''

<<= App.UI.SlaveList.slaveSelectionList(
		s => (s.fuckdoll === 0 && s.devotion > 20 && s.intelligence + s.intelligenceImplant > 15 && s.intelligenceImplant >= 15 && canWalk(s) && canSee(s) && canHear(s) && canTalk(s) && s.broodmother < 2 && (s.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")),
		(slave) => App.UI.DOM.passageLink(SlaveFullName(slave), 'Agent Workaround',
			() => { V.i = V.slaves.findIndex((s) => s.ID === slave.ID); }),
		s => App.Entity.facilities.arcologyAgent.manager.slaveHasExperience(s)
	)>>

src/npc/agent/agentSelect.tw