refactor: remove unused component, simplify visibility check defaulting behavior, reformat STORY.md

This commit is contained in:
Ryan Walters
2025-09-10 11:17:12 -05:00
parent 5563b64044
commit 7b6dad0c74
5 changed files with 5 additions and 14 deletions

View File

@@ -6,8 +6,8 @@ use crate::systems::SpawnTrigger;
use crate::{
map::builder::Map,
systems::{
AudioEvent, Blinking, DirectionalAnimation, Dying, Eaten, Frozen, Ghost, GhostCollider, GhostState, LinearAnimation,
Looping, NodeId, PlayerControlled, Position, Visibility,
AudioEvent, Blinking, DirectionalAnimation, Dying, Frozen, Ghost, GhostCollider, GhostState, LinearAnimation, Looping,
NodeId, PlayerControlled, Position, Visibility,
},
};
use bevy_ecs::{
@@ -296,7 +296,7 @@ pub fn stage_system(
};
commands
.entity(ghost_entity)
.remove::<(Frozen, Eaten)>()
.remove::<Frozen>()
.insert((Visibility::visible(), GhostState::Normal));
}
}