mirror of
https://github.com/Theaninova/HitScoreVisualizer.git
synced 2025-12-12 11:36:20 +00:00
Plugin should work in theory
This commit is contained in:
@@ -394,7 +394,7 @@ namespace HitScoreVisualizer
|
||||
float accuracy = 1f - Mathf.Clamp01(noteCutInfo.cutDistanceToCenter / 0.2f);
|
||||
float afterCut = 0f;
|
||||
if (saberAfterCutSwingRatingCounter != null)
|
||||
afterCutScore = saberAfterCutSwingRatingCounter.rating;
|
||||
afterCut = saberAfterCutSwingRatingCounter.rating;
|
||||
|
||||
int beforeCutScore, accuracyScore, afterCutScore;
|
||||
int beforeMax, accuracyMax, afterMax;
|
||||
@@ -404,18 +404,19 @@ namespace HitScoreVisualizer
|
||||
beforeMax = 100;
|
||||
accuracyMax = 100;
|
||||
afterMax = 100;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
beforeMax = 70;
|
||||
accuracyMax = 10;
|
||||
afterMax = 30;
|
||||
}
|
||||
|
||||
beforeCutScore = Mathf.Round((float) beforeMax * beforeCut);
|
||||
accuracyScore = Mathf.Round((float) accuracyMax * accuracy);
|
||||
afterCutScore = Mathf.Round((float) afterMax * afterCut);
|
||||
beforeCutScore = Mathf.RoundToInt((float) beforeMax * beforeCut);
|
||||
accuracyScore = Mathf.RoundToInt((float) accuracyMax * accuracy);
|
||||
afterCutScore = Mathf.RoundToInt((float) afterMax * afterCut);
|
||||
|
||||
if (beforeCutScore == beforeMax && accuracyScore == acMulti && afterCutScore == afterMax)
|
||||
if (beforeCutScore == beforeMax && accuracyScore == accuracyMax && afterCutScore == afterMax)
|
||||
{
|
||||
text.text = "Perfect!";
|
||||
return;
|
||||
|
||||
@@ -31,16 +31,16 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\0Harmony.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\0Harmony.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Assembly-CSharp-firstpass">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="IllusionPlugin">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\IllusionPlugin.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\IllusionPlugin.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
@@ -54,10 +54,10 @@
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="UnityEngine">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="UnityEngine.CoreModule">
|
||||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
||||
<HintPath>..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user