aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/clan_problem_conditions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/clan_problem_conditions.rs')
-rw-r--r--crates/fparkan-runtime/src/clan_problem_conditions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/fparkan-runtime/src/clan_problem_conditions.rs b/crates/fparkan-runtime/src/clan_problem_conditions.rs
index 00d39173..e0d11336 100644
--- a/crates/fparkan-runtime/src/clan_problem_conditions.rs
+++ b/crates/fparkan-runtime/src/clan_problem_conditions.rs
@@ -8,7 +8,7 @@ pub(super) enum Condition {
BuildingCaptured(ObjectHandle),
GroupDestroyed,
GroupIdle,
- TransportInactive(ObjectHandle),
+ TaskInactive(ObjectHandle),
}
impl Condition {
@@ -18,7 +18,7 @@ impl Condition {
clan: OwnerId,
patrol: Option<&UnitPatrol>,
group: Option<&CombatGroup>,
- transport_active: impl Fn(ObjectHandle) -> bool,
+ task_active: impl Fn(ObjectHandle) -> bool,
) -> bool {
let live =
|unit| registration_sequence(world, unit).is_ok_and(|sequence| sequence.is_some());
@@ -32,7 +32,7 @@ impl Condition {
Self::GroupDestroyed => {
group.is_none_or(|group| group.members.iter().all(|&unit| !live(unit)))
}
- Self::TransportInactive(unit) => !live(unit) || !transport_active(unit),
+ Self::TaskInactive(unit) => !live(unit) || !task_active(unit),
Self::GroupIdle => group.is_none_or(|group| {
group.members.iter().all(|&unit| {
!live(unit) || patrol.is_none_or(|patrol| !patrol.is_patrolling(unit))