fix: typo

This commit is contained in:
Kristofers Solo 2024-12-23 12:46:32 +02:00
parent 6c07bc0670
commit a76cbdc02b
4 changed files with 4 additions and 4 deletions

View File

@ -23,5 +23,5 @@ pub struct DespawnFloor {
pub enum TransitionFloor {
#[default]
Ascend,
Descent,
Descend,
}

View File

@ -25,7 +25,7 @@ pub(super) fn floor_movement(
for event in event_reader.read() {
let (direction, target_y) = match event {
TransitionFloor::Ascend => (Vec3::Y, -global_config.height),
TransitionFloor::Descent => (Vec3::NEG_Y, global_config.height),
TransitionFloor::Descend => (Vec3::NEG_Y, global_config.height),
};
let movement = direction * movement_distance;

View File

@ -19,7 +19,7 @@ pub(super) fn spawn_floor(
for event in event_reader.read() {
let floor = match event {
TransitionFloor::Ascend => *floor.increased(),
TransitionFloor::Descent => *floor.decreased(),
TransitionFloor::Descend => *floor.decreased(),
};
if floor == 1 {

View File

@ -21,7 +21,7 @@ pub(super) fn descend_player(
for current_hex in query.iter() {
if current_hex.0 == config.start_pos && floor.0 != 1 {
event_writer.send(TransitionFloor::Descent);
event_writer.send(TransitionFloor::Descend);
return;
}
}