Skip to content

Fix empty merchant NPCs (Christine, Julia, Moss)#803

Open
nolt wants to merge 1 commit into
MUnique:masterfrom
nolt:fix-empty-merchant-stores
Open

Fix empty merchant NPCs (Christine, Julia, Moss)#803
nolt wants to merge 1 commit into
MUnique:masterfrom
nolt:fix-empty-merchant-stores

Conversation

@nolt

@nolt nolt commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fix empty merchant NPCs (Christine, Julia, Moss)

Problem

Three Season 6 NPCs have a merchant window (NpcWindow.Merchant) but no MerchantStore, so talking to them opens an empty, non-working shop:

  • Christine the General Goods Merchant (545) — Loren Market
  • Market Union Member Julia (547) — Loren Market
  • Moss The Merchant (492) — Elvenland

Change

Adds a configuration update plugin (AddMissingMerchantStoresPlugIn, UpdateVersion = 84) that clones the general-goods store carried by Thompson the Merchant (231) onto each of the three NPCs. Mirrors the existing pattern in AddKalimaPlugIn (cloning a store onto another NPC).

  • Idempotent — skips any NPC that already has a store, and bails out if the source store is missing.
  • Optional (IsMandatory = false) — server owners opt in via the admin panel's Updates page.

Result

After applying the update, the three NPCs sell general goods (potions, antidotes, bolts/arrows, town portal scroll, armor of guardsman) and show up in the admin panel's merchant editor for further per-NPC tuning. No engine/behavior changes — data only.

Files

  • src/Persistence/Initialization/Updates/AddMissingMerchantStoresPlugIn.cs (new)
  • src/Persistence/Initialization/Updates/UpdateVersion.cs (+1 enum entry)

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an issue where specific merchant NPCs in the game were initialized with empty, non-functional shop windows. By implementing a new optional configuration update plugin, the system now clones a valid general-goods store onto these NPCs, ensuring they are fully operational for players while remaining idempotent and configurable for server owners.

Highlights

  • New Configuration Update Plugin: Introduced AddMissingMerchantStoresPlugIn to automatically assign merchant stores to specific NPCs that were previously missing them.
  • Targeted NPC Fixes: Restores functionality for Christine (545), Julia (547), and Moss (492) by cloning the general-goods store from Thompson the Merchant (231).
  • Version Management: Updated UpdateVersion enum to include AddMissingMerchantStores (84) to support the new migration path.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a new update plugin, AddMissingMerchantStoresPlugIn, which assigns a general-goods merchant store (cloned from Thompson the Merchant) to NPCs that have a merchant window but no items assigned (Christine, Julia, and Moss). It also registers this update version in the UpdateVersion enum. The review feedback suggests optimizing the ApplyAsync method by removing the unnecessary async keyword and #pragma warning suppression, and returning default instead to avoid the overhead of an async state machine.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/Persistence/Initialization/Updates/AddMissingMerchantStoresPlugIn.cs Outdated
Christine the General Goods Merchant (545) and Market Union Member Julia
(547) in the Loren Market, and Moss The Merchant (492) in Elvenland, have a
merchant window but no MerchantStore, so talking to them opens an empty,
non-working shop and the click can even fall through.

Add a configuration update (UpdateVersion 84) that clones the general-goods
(potion girl) store carried by Thompson the Merchant (231) onto each of them.
The update is idempotent (skips NPCs that already have a store) and optional.
After it runs they sell items and appear in the admin panel's merchant editor.
@nolt nolt force-pushed the fix-empty-merchant-stores branch from 7b3d3a8 to 90d5a4b Compare June 17, 2026 15:47
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.

1 participant