fix(inventory): Daybreak weapon dimensions (2 x 4 squares, instead of 2 x 2)#748
Conversation
Summary of ChangesHello, 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 corrects the inventory dimensions for the Daybreak weapon. By updating both the initialization logic and adding a database migration, it ensures that the item occupies the correct amount of space in the game world and existing player inventories. Highlights
🧠 New Feature in Public Preview: You can now enable Memory 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 AssistThe 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
Customization To customize 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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
|
There was a problem hiding this comment.
Code Review
This pull request updates the height of the 'Daybreak' weapon from 2 to 4 in both the database migration and the initialization code. Feedback suggests refining the migration SQL by removing the filter on the 'Name' column, as it may not exist in the table due to the localized string data model, and using only 'Group' and 'Number' for identification.
src/Persistence/EntityFramework/Migrations/20260405170905_UpdateDaybreakWeaponDimensions.cs
Outdated
Show resolved
Hide resolved
src/Persistence/EntityFramework/Migrations/20260405170905_UpdateDaybreakWeaponDimensions.cs
Outdated
Show resolved
Hide resolved
4efb0a6 to
e81d3a1
Compare
|
Usually we do data changes through configuration update plugins, but for this simple fix we can live with a migration. Thanks :) |
|
@sven-n thanks for guidance, that's really good to know. I would ensure to do it as you suggested from now on. I was also thinking that general configuration page is bloated with very "deep" configuration options, that you normally don't wanna see all the time. Those would sit well in dedicated plugins. 👍 |
looting Daybreak in the last 4 squares of the inventory would leave them as phantom for the client, because client expects a 2 x 4 (8 squares) to be occupied, not 2 x 2. This issue would persist through relogins until item is moved / deleted through Admin UI.