You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/ai/ai_flags.h
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ namespace AI {
44
44
Goal_on_hold, // when set, this goal cannot currently be satisfied, although it could be in the future
45
45
Subsys_needs_fixup, // when set, the subsystem index (for a destroy subsystem goal) is invalid and must be gotten from the subsys name stored in docker.name field!!
46
46
Goal_override, // paired with ai_goal_type::DYNAMIC to mean this goal overrides any other goal
47
+
Want_override, // a goal should set this flag if Goal_override should be assigned when the goal is achievable
47
48
Purge, // purge this goal next time we process
48
49
Goals_purged, // this goal has already caused other goals to get purged (because it is something like ai-disarm that renders other goals invalid)
49
50
Depart_sound_played,// Goober5000 - replacement for AL's hack ;)
ADE_VIRTVAR(OverridesWhenAchievable, l_Order, "boolean", "Whether this goal pre-empts all other goals when it is achievable", "boolean", "OverridesWhenAchievable flag, or invalid false if order handle is invalid")
493
+
{
494
+
order_h* ohp = nullptr;
495
+
bool want_override = false;
496
+
if (!ade_get_args(L, "o|b", l_Order.GetPtr(&ohp), &want_override))
ADE_FUNC(isValid, l_Order, NULL, "Detects whether handle is valid", "boolean", "true if valid, false if handle is invalid, nil if a syntax/type error occurs")
0 commit comments