feat(config): wire /config/update + /config/update_challenge_config (closes family 4/4)
is_skip_gacha_effect, use_challenge_two_pick_premium_card, and challenge_two_pick_sleeve_id all persist on ViewerInfo and round-trip through /load/index. The two challenge fields move from the global ChallengeConfig section to ViewerInfo — they're viewer preferences, not server-wide policy. Premium card defaults to 0; sleeve falls back to DefaultLoadoutConfig.SleeveId (3000011) when unset. MatchContextBuilder's TK2 sleeve read switches to the same viewer-scoped path. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -40,8 +40,6 @@ public class RotationConfigImporter
|
||||
{
|
||||
await UpsertSection<ChallengeConfig>(context, ChallengeConfig.ShippedDefaults, c =>
|
||||
{
|
||||
c.UseTwoPickPremiumCard = cc.UseTwoPickPremiumCard;
|
||||
c.TwoPickSleeveId = cc.TwoPickSleeveId;
|
||||
c.LastCardPackSetId = cc.LastCardPackSetId;
|
||||
c.CardPoolName = cc.CardPoolName;
|
||||
c.CardPoolUrl = cc.CardPoolUrl;
|
||||
|
||||
Reference in New Issue
Block a user