From 28e1e8f88fc9570c18742ec17f6478233244c8dd Mon Sep 17 00:00:00 2001 From: Flutterish Date: Sat, 8 Aug 2020 20:59:47 +0200 Subject: [PATCH] Update DrawableHitokori.cs --- Objects/Drawables/Hitokori/DrawableHitokori.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Objects/Drawables/Hitokori/DrawableHitokori.cs b/Objects/Drawables/Hitokori/DrawableHitokori.cs index 04d0a12..c60818c 100644 --- a/Objects/Drawables/Hitokori/DrawableHitokori.cs +++ b/Objects/Drawables/Hitokori/DrawableHitokori.cs @@ -235,10 +235,11 @@ private void load ( HitokoriSettingsManager config ) { public double StableAngle { get { if ( Triplets ) { - double offset; - if ( LastOrbital == Hi ) offset = 0; - else if ( LastOrbital == Kori ) offset = Math.PI * 4 / 3; - else offset = Math.PI; // dont ask why these values i Dont kn o w + double offset = OrbitalIndex switch { + /* Hi */ 0 => 0, + /* Kori */ 1 => Math.PI * 4 / 3, + _ => Math.PI + }; // dont ask why these values i Dont kn o w return ( Hi.Angle - offset ).ToDegrees(); } else {