mirror of
https://github.com/Theaninova/HitScoreVisualizer.git
synced 2026-01-07 00:02:48 +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 accuracy = 1f - Mathf.Clamp01(noteCutInfo.cutDistanceToCenter / 0.2f);
|
||||||
float afterCut = 0f;
|
float afterCut = 0f;
|
||||||
if (saberAfterCutSwingRatingCounter != null)
|
if (saberAfterCutSwingRatingCounter != null)
|
||||||
afterCutScore = saberAfterCutSwingRatingCounter.rating;
|
afterCut = saberAfterCutSwingRatingCounter.rating;
|
||||||
|
|
||||||
int beforeCutScore, accuracyScore, afterCutScore;
|
int beforeCutScore, accuracyScore, afterCutScore;
|
||||||
int beforeMax, accuracyMax, afterMax;
|
int beforeMax, accuracyMax, afterMax;
|
||||||
@@ -404,18 +404,19 @@ namespace HitScoreVisualizer
|
|||||||
beforeMax = 100;
|
beforeMax = 100;
|
||||||
accuracyMax = 100;
|
accuracyMax = 100;
|
||||||
afterMax = 100;
|
afterMax = 100;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
beforeMax = 70;
|
beforeMax = 70;
|
||||||
accuracyMax = 10;
|
accuracyMax = 10;
|
||||||
afterMax = 30;
|
afterMax = 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeCutScore = Mathf.Round((float) beforeMax * beforeCut);
|
beforeCutScore = Mathf.RoundToInt((float) beforeMax * beforeCut);
|
||||||
accuracyScore = Mathf.Round((float) accuracyMax * accuracy);
|
accuracyScore = Mathf.RoundToInt((float) accuracyMax * accuracy);
|
||||||
afterCutScore = Mathf.Round((float) afterMax * afterCut);
|
afterCutScore = Mathf.RoundToInt((float) afterMax * afterCut);
|
||||||
|
|
||||||
if (beforeCutScore == beforeMax && accuracyScore == acMulti && afterCutScore == afterMax)
|
if (beforeCutScore == beforeMax && accuracyScore == accuracyMax && afterCutScore == afterMax)
|
||||||
{
|
{
|
||||||
text.text = "Perfect!";
|
text.text = "Perfect!";
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -31,16 +31,16 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="0Harmony">
|
<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>
|
||||||
<Reference Include="Assembly-CSharp">
|
<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>
|
||||||
<Reference Include="Assembly-CSharp-firstpass">
|
<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>
|
||||||
<Reference Include="IllusionPlugin">
|
<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>
|
||||||
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<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>
|
<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.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
<Reference Include="UnityEngine">
|
<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>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<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>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user