Skip to content

Add the recently added character Zibai to the GI Loadouts roster.#501

Draft
sdglitched wants to merge 2 commits intogridhead:mainfrom
sdglitched:feat/issue-488
Draft

Add the recently added character Zibai to the GI Loadouts roster.#501
sdglitched wants to merge 2 commits intogridhead:mainfrom
sdglitched:feat/issue-488

Conversation

@sdglitched
Copy link
Collaborator

Add the recently added character Zibai to the GI Loadouts roster.

Currently the stats are not available in the wiki.
Screenshot From 2026-02-07 19-36-31
Screenshot From 2026-02-07 19-36-48

Closes: #488

Signed-off-by: Shounak Dey <shounakdey@ymail.com>
Signed-off-by: Shounak Dey <shounakdey@ymail.com>
@sdglitched sdglitched requested a review from gridhead February 7, 2026 14:20
@sdglitched sdglitched added the enhancement New feature or request label Feb 7, 2026
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @sdglitched, your pull request is larger than the review limit of 150000 diff characters

@sdglitched sdglitched marked this pull request as draft February 7, 2026 14:20
@gemini-code-assist
Copy link

Summary of Changes

Hello @sdglitched, 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 introduces the recently added character 'Zibai' to the GI Loadouts application. It encompasses the addition of all necessary asset references and character data definitions, ensuring 'Zibai' is fully recognized and available within the system. This update keeps the application current with new game content, providing users with access to the latest character information.

Highlights

  • New Character Integration: The character 'Zibai' has been fully integrated into the application's character roster, making them available for use within the GI Loadouts system.
  • Asset References Updated: Resource files (.qrc) have been updated to include image assets for 'Zibai' across various categories, such as character back, face, name, and wish art.
  • Character Data Definition: A new Python file (zibai.py) has been created to define 'Zibai's' base stats, ascension stat (critical damage), weapon type (sword), and vision (Geo).
  • Character Enum Expansion: The CharName enumeration has been updated to include 'Zibai', ensuring the character is officially recognized within the application's type system.

🧠 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.

Changelog
  • assets/back.qrc
    • Added a file reference for 'imgs/char/back/zibai.webp'.
  • assets/face.qrc
    • Added a file reference for 'imgs/char/face/zibai.webp'.
  • assets/name.qrc
    • Added a file reference for 'imgs/char/name/zibai.webp'.
  • assets/wish.qrc
    • Added a file reference for 'imgs/char/wish/zibai.webp'.
  • gi_loadouts/data/char/init.py
    • Imported the Zibai class.
    • Added Zibai to the __charmaps__ dictionary.
  • gi_loadouts/data/char/zibai.py
    • Created a new file defining the Zibai character with placeholder base stats, critical damage ascension stat, sword weapon type, and Geo vision.
  • gi_loadouts/type/char/init.py
    • Added zibai to the CharName enum.
Activity
  • No human activity (comments, reviews) has been recorded on this pull request yet.
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 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 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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

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 adds the new character Zibai to the roster. The changes correctly add the character's assets and data files. However, there are two main issues. First, the character's base and ascension stats are placeholders with zero values. While noted in the PR description, this should be marked with a TODO in the code to ensure it's tracked and updated. Second, there are no tests for the new character in test/data/test_char.py. Adding a test case, even with placeholder data, is crucial for maintainability and to verify the character is integrated correctly.

@@ -0,0 +1,19 @@
from ...type.char import BaseStat, Char, CharName

Choose a reason for hiding this comment

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

high

A new character has been added, but the corresponding tests in test/data/test_char.py are missing. Please add a new pytest.param for Zibai to the test_char test function. Even with placeholder stats, a test case should be added to verify the character is loaded correctly. You can use expected values of 0 for the stats for now.

Comment on lines +13 to +14
base: BaseStat = BaseStat(attack=0, defense=0, health_points=0)
ascn: BaseStat = BaseStat(attack=0, defense=0, health_points=0)

Choose a reason for hiding this comment

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

high

The base and ascension stats for Zibai are all set to 0. While I understand from the pull request description that the stats are not yet available, merging this with zeroed-out values will lead to incorrect data for this character in the application. It's better to add a TODO comment to track this and ensure it gets updated as soon as the stats are available. This will make it clear to future developers that this is placeholder data.

Suggested change
base: BaseStat = BaseStat(attack=0, defense=0, health_points=0)
ascn: BaseStat = BaseStat(attack=0, defense=0, health_points=0)
# TODO: Update with actual stats once available from the wiki.
base: BaseStat = BaseStat(attack=0, defense=0, health_points=0)
ascn: BaseStat = BaseStat(attack=0, defense=0, health_points=0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the recently added character Zibai to the GI Loadouts roster

2 participants