reverse mod assignment order

This commit is contained in:
AlchlcDvl authored and XtraCube committed 2024-12-21 15:16:20 -05:00
1 parent 570bb388b6
commit 23e11fef93
1 file changed
+2 -1
+2 -1
View File
@@ -65,8 +65,9 @@ public static class ModifierManager
var rand = new Random();
List<uint> filteredModifiers = [];
var modifiers = IdToTypeModifierMap.Where(pair => pair.Value.IsAssignableTo(typeof(GameModifier))).Reverse(); // For some reason the modifiers are sorted in reverse by namespace, but alphabetical by class name lol
foreach (var modifier in IdToTypeModifierMap.Where(pair => pair.Value.IsAssignableTo(typeof(GameModifier))))
foreach (var modifier in modifiers)
{
if (Activator.CreateInstance(modifier.Value) is not GameModifier mod)
{