From 83ee2635d1fcf5d20608eb05c90652b20ad5fb17 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 29 Nov 2021 12:35:54 -0600 Subject: [PATCH] Replace 3:00 and 9:00 with right and left. --- src/core.rs | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/core.rs b/src/core.rs index 5e808fe..ce9d3d3 100644 --- a/src/core.rs +++ b/src/core.rs @@ -420,13 +420,7 @@ pub trait PointLike { "left and ahead" } } - v if v <= 105. => { - if *mode == RelativeDirectionMode::ClockFacing { - "9:00" - } else { - "left" - } - } + v if v <= 105. => "left", v if v <= 135. => { if *mode == RelativeDirectionMode::ClockFacing { "8:00" @@ -456,13 +450,7 @@ pub trait PointLike { "right and behind" } } - v if v <= 285. => { - if *mode == RelativeDirectionMode::ClockFacing { - "3:00" - } else { - "right" - } - } + v if v <= 285. => "right", v if v <= 315. => { if *mode == RelativeDirectionMode::ClockFacing { "2:00" @@ -756,7 +744,8 @@ impl Plugin for CorePlugin { .add_system_to_stage( CoreStage::PostUpdate, copy_collider_position_to_coordinates.system(), - ).add_system(sync_config.system()); + ) + .add_system(sync_config.system()); } }