mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Use existing reflection methods to avoid manual binding of ExtendedLimits
This commit is contained in:
@ -57,8 +57,11 @@ namespace osu.Game.Rulesets.Mods
|
||||
|
||||
protected ModDifficultyAdjust()
|
||||
{
|
||||
OverallDifficulty.ExtendedLimits.BindTo(ExtendedLimits);
|
||||
DrainRate.ExtendedLimits.BindTo(ExtendedLimits);
|
||||
foreach (var (_, property) in this.GetOrderedSettingsSourceProperties())
|
||||
{
|
||||
if (property.GetValue(this) is DifficultyBindable diffAdjustBindable)
|
||||
diffAdjustBindable.ExtendedLimits.BindTo(ExtendedLimits);
|
||||
}
|
||||
}
|
||||
|
||||
public override string SettingDescription
|
||||
|
Reference in New Issue
Block a user