1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Add clarification comment

This commit is contained in:
Bartłomiej Dach 2024-05-06 08:49:30 +02:00
parent 1f92f1d19b
commit 4c7e6b125c
No known key found for this signature in database

View File

@ -55,6 +55,9 @@ namespace osu.Game.Overlays.Mods
protected override void Select()
{
// this implicitly presumes that if a system mod declares incompatibility with a non-system mod,
// the non-system mod should take precedence.
// if this assumption is ever broken, this should be reconsidered.
var selectedSystemMods = selectedMods.Value.Where(mod => mod.Type == ModType.System &&
!mod.IncompatibleMods.Any(t => Preset.Value.Mods.Any(t.IsInstanceOfType)));