Open SSM240 opened 4 days ago
Just thought of a potentially better way to handle the presets thing - if it's possible to create a dropdown that's not directly tied to a setting that gets saved, we could use that for presets instead, and add more of them (like "Legacy" ones that use the current tier sorting?) without taking up a bunch of space in the menu. I'll have to look at that later when I get the chance.
(EDIT: this might not be possible actually, ChoiceOption seems to always expect there to be a ConfigEntry... maybe if we create our own option class but that feels like overkill đŸ˜…)
Bit of a bigger feature this time, this overhauls the sorting settings to be more customizable.
Lunar VoidBoss Boss VoidTier3 Tier3 VoidTier2 Tier2 VoidTier1 Tier1
. This replaces the Tier Descending settings.Start
,End
, andMixed
options. I also made it so that scrap always respects your tier sorting settings.Code-wise, the things worth pointing out / commenting on are:
descendingTier
param ofSortItems
(no, I didn't refactor it more thoroughly... sorry :P)initialized
to false, which re-populatestierMatcher
anditemTierLists
from scratch (yes I made sure this also clears them first)CombineVoidTiers
just makes it pretend that void items are the corresponding normal tier at sorting timeDictToString
method I added to Utils is for a debug log that shows the state oftierMatcher
after initialization is done... maybe this could be removed, but I also think it might not be a terrible idea to leave in, shouldn't be too spammy since it should only print once on first run start or after changing settings11
, that's the equipment tier, which doesn't have an entry in theItemTier
enum (and should never show up in the inventory anyway)Considerations / known issues: