feat(config): persist is_foil_preferred + is_prize_preferred (stubs → real)

This commit is contained in:
gamer147
2026-06-13 09:54:51 -04:00
parent 911374106f
commit 13ca7d118e
8 changed files with 4783 additions and 13 deletions

View File

@@ -253,7 +253,11 @@ public class LoadController : SVSimController
},
ArenaInfos = await BuildArenaInfosAsync(viewer.Id),
RotationSets = rotationSets,
UserConfig = new UserConfig(),
UserConfig = new UserConfig
{
IsFoilPreferred = viewer.Info.IsFoilPreferred ? 1 : 0,
IsPrizePreferred = viewer.Info.IsPrizePreferred ? 1 : 0,
},
OpenBattlefieldIds = (await _globalsRepository.GetBattlefields(true))
.Select(bf => bf.Id.ToString()).ToList(),
DefaultSettings = new DefaultSettings(defaultLoadout),