Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.

feat: share reset windows and deterministic stock logic - #235

Merged
ggmolly merged 3 commits into
mainfrom
feat/shop-reset-framework
Feb 22, 2026
Merged

feat: share reset windows and deterministic stock logic#235
ggmolly merged 3 commits into
mainfrom
feat/shop-reset-framework

Conversation

@ggmolly

@ggmolly ggmolly commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Standardizes shop reset windows with shared daily/monthly helpers so shop state aligns to region reset boundaries.
  • Makes guild shop stock generation deterministic per commander and reset window while preserving weighted pool behavior from config data.
  • Implements monthly template rotation for month shop and medal shop flows so core/prototype/medal catalogs rotate by month template id.
  • Extends guild manual refresh handling to support refresh limits and cost ladders from guild settings.

Changes

  • Added internal/shopreset shared utilities for reset windows and deterministic seed derivation.
  • Updated guild/arena/medal shop services to consume shared reset windows instead of fixed UTC-only day math.
  • Updated month shop handlers to select the active template entry by current month and use reset-aware month keys for purchase counts.
  • Updated guild shop handler to apply refresh limit/cost progression and pass refresh counters through refresh operations.
  • Added and updated shop-focused tests for deterministic selection behavior, reset semantics, month-template selection, and guild refresh ladders.

@ggmolly ggmolly added type/feature New capability area/shop Shop and purchases status/needs-review Ready for review labels Feb 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c95936ce85

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/answer/shop_data.go Outdated
Comment thread internal/medalshop/service.go Outdated
@ggmolly
ggmolly merged commit 67ff394 into main Feb 22, 2026
1 check passed
@ggmolly
ggmolly deleted the feat/shop-reset-framework branch February 22, 2026 14:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/shop Shop and purchases status/needs-review Ready for review type/feature New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant