use bevy::prelude::*; use rand::Rng; use crate::{ components::{ ant::AntBundle, anthill::{AntCapacity, GroupSize, SpawnTimer}, common::AnimationIndices, }, ANT_COUNT, ANT_SCALE, }; #[allow(clippy::needless_pass_by_value)] pub fn leave_anthill_system( mut query: Query<(&mut AntCapacity, &GroupSize, &mut SpawnTimer)>, mut commands: Commands, time: Res