mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
remove unnecessary ToString calls
This commit is contained in:
@ -35,10 +35,10 @@ namespace osu.Game.Rulesets.Catch.Mods
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value.ToString()}";
|
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value}";
|
||||||
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value.ToString()}";
|
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value}";
|
||||||
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value.ToString()}";
|
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value}";
|
||||||
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value.ToString()}";
|
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value}";
|
||||||
|
|
||||||
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
|
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
|
||||||
// filter out empty strings so we don't have orphaned commas
|
// filter out empty strings so we don't have orphaned commas
|
||||||
|
@ -35,10 +35,10 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value.ToString()}";
|
string circleSize = CircleSize.IsDefault ? "" : $"CS {CircleSize.Value}";
|
||||||
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value.ToString()}";
|
string drainRate = DrainRate.IsDefault ? "" : $"HP {DrainRate.Value}";
|
||||||
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value.ToString()}";
|
string overallDifficulty = OverallDifficulty.IsDefault ? "" : $"OD {OverallDifficulty.Value}";
|
||||||
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value.ToString()}";
|
string approachRate = ApproachRate.IsDefault ? "" : $"AR {ApproachRate.Value}";
|
||||||
|
|
||||||
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
|
string[] settings = new string[] { circleSize, drainRate, overallDifficulty, approachRate };
|
||||||
// filter out empty strings so we don't have orphaned commas
|
// filter out empty strings so we don't have orphaned commas
|
||||||
|
Reference in New Issue
Block a user