Skip to content

Add economy ReapplyInitializeUser function [HIRO-85]#160

Merged
sesposito merged 3 commits into
mainfrom
spe/add-user-init-backfill-function
Jun 3, 2026
Merged

Add economy ReapplyInitializeUser function [HIRO-85]#160
sesposito merged 3 commits into
mainfrom
spe/add-user-init-backfill-function

Conversation

@sesposito

@sesposito sesposito commented May 27, 2026

Copy link
Copy Markdown
Member

Allows to apply changes introduced in initialize_user to an existing account.
Only currencies that the user has not owned, and items he does not currently hold are granted.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new ReapplyInitializeUser method to the EconomySystem interface so that updates to the initialize_user config (new currencies and items) can be retroactively applied to existing users, granting only currencies the user does not already own and items they don't currently hold.

Changes:

  • Add ReapplyInitializeUser method declaration to the EconomySystem interface in economy.go.
  • Add a corresponding entry under an "Unreleased / Added" section in CHANGELOG.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
economy.go Declares the new ReapplyInitializeUser method on the EconomySystem interface with accompanying doc comment.
CHANGELOG.md Adds an "Unreleased" section noting the new economy function.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tolgatolgay tolgatolgay changed the title Add economy ReapplyInitializeUser function Add economy ReapplyInitializeUser function [HIRO-85] Jun 1, 2026
@linear

linear Bot commented Jun 1, 2026

Copy link
Copy Markdown

HIRO-85

@sesposito sesposito requested a review from Calm0 June 2, 2026 15:59
@sesposito sesposito force-pushed the spe/add-user-init-backfill-function branch from 0f15a91 to 5d2445f Compare June 3, 2026 10:25
@sesposito sesposito merged commit 492bdad into main Jun 3, 2026
2 checks passed
@sesposito sesposito deleted the spe/add-user-init-backfill-function branch June 3, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants