mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2025-10-21 19:20:34 +00:00
fix: typo
This commit is contained in:
parent
6c07bc0670
commit
a76cbdc02b
@ -23,5 +23,5 @@ pub struct DespawnFloor {
|
||||
pub enum TransitionFloor {
|
||||
#[default]
|
||||
Ascend,
|
||||
Descent,
|
||||
Descend,
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user