/// /// module AIRules { export var standUp = new Rule({ name: "Stand if down", firstPriority : AIRules.PRIORITY_ACTING_ON_SITUATION, priority : AIRules.PRIORITY_ACTING_ON_SITUATION, conditions : (runner : RulebookRunner) => { let person = runner.noun; return (person.stance != PersonStance.STANDING) }, code : (runner : RulebookRunner) => { return new ActionStand(runner.noun); } }); AI.combatRules.addRule(standUp); AI.rules.addRule(standUp); }