Skip to content

Commit

Permalink
Update DrawableHitokori.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Flutterish committed Aug 8, 2020
1 parent 069f90f commit 28e1e8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Objects/Drawables/Hitokori/DrawableHitokori.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 28e1e8f

Please sign in to comment.