Skip to content

Refactor combat state handling in McpMod.StateBuilder - #36

Open
judgeou wants to merge 1 commit into
Gennadiyev:mainfrom
judgeou:79b86d-on-3d6ef24
Open

Refactor combat state handling in McpMod.StateBuilder#36
judgeou wants to merge 1 commit into
Gennadiyev:mainfrom
judgeou:79b86d-on-3d6ef24

Conversation

@judgeou

@judgeou judgeou commented Mar 30, 2026

Copy link
Copy Markdown
  • Simplified the logic for serializing combat fields by removing unnecessary checks for combat state.
  • Ensured that HP, max HP, and block values are always retrieved from the creature, regardless of combat status.
  • Updated comments for clarity on the handling of combat-related data.

- Simplified the logic for serializing combat fields by removing unnecessary checks for combat state.
- Ensured that HP, max HP, and block values are always retrieved from the creature, regardless of combat status.
- Updated comments for clarity on the handling of combat-related data.
@judgeou

judgeou commented Mar 30, 2026

Copy link
Copy Markdown
Author

@Gennadiyev Have you noticed that when you're not in combat, your HP is 0/0?

@Gennadiyev

Copy link
Copy Markdown
Owner
image Not... really...

@judgeou

judgeou commented Mar 30, 2026

Copy link
Copy Markdown
Author

Not... really...

strange...

@Gennadiyev

Copy link
Copy Markdown
Owner

Not... really...

strange...

Are you in multiplayer?

@judgeou

judgeou commented Mar 30, 2026

Copy link
Copy Markdown
Author

Are you in multiplayer?

No, singleplayer, I have always conducted tests in a single-player environment.

@Gennadiyev Gennadiyev added thinking This issue requires more thoughts, inputs, or time to brew. defect There is a defect here... labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defect There is a defect here... size/S thinking This issue requires more thoughts, inputs, or time to brew.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants