mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 12:07:37 +09:00
Use local static to determine score per spinner tick
This commit is contained in:
parent
3a26bd8d9b
commit
3c9ee6abc1
@ -5,7 +5,6 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Rulesets.Judgements;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
||||||
{
|
{
|
||||||
@ -14,6 +13,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SpinnerBonusDisplay : CompositeDrawable
|
public class SpinnerBonusDisplay : CompositeDrawable
|
||||||
{
|
{
|
||||||
|
private static readonly int score_per_tick = new SpinnerBonusTick().CreateJudgement().MaxNumericResult;
|
||||||
|
|
||||||
private readonly OsuSpriteText bonusCounter;
|
private readonly OsuSpriteText bonusCounter;
|
||||||
|
|
||||||
public SpinnerBonusDisplay()
|
public SpinnerBonusDisplay()
|
||||||
@ -37,7 +38,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
displayedCount = count;
|
displayedCount = count;
|
||||||
bonusCounter.Text = $"{Judgement.LARGE_BONUS_SCORE * count}";
|
bonusCounter.Text = $"{score_per_tick * count}";
|
||||||
bonusCounter.FadeOutFromOne(1500);
|
bonusCounter.FadeOutFromOne(1500);
|
||||||
bonusCounter.ScaleTo(1.5f).Then().ScaleTo(1f, 1000, Easing.OutQuint);
|
bonusCounter.ScaleTo(1.5f).Then().ScaleTo(1f, 1000, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user