The NPC AI system as it exists is a very ad hoc and messy state machine with no formal interfaces between decision making, information gathering, and actions.
The NPC AI system as it exists is a very ad hoc and messy state machine with no formal interfaces between decision making, information gathering, and actions.
Simply replacing this mess with a formal state machine would be a large improvement, but there's no reason not to take it further and move to a modern data-driven AI system.