[Bug] Empath self-injuries: Injuries panel hides fresh wounds behind scars, Healing figures stay blank after health

Open
#458 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, xml

Research direction

Start with InjuryCell, InjuryEvent, and GameState.Injuries, then trace DrXmlParser.TryApplyHealthInjurySummary and HealthWoundText.Read to see where the health summary is discarded. Follow the injury dialog data into the Injuries panel and the PerceiveHealthParser output into the Healing window. Done means mixed wounds and scars appear for the same region, external and internal injuries are distinguished, and the self Healing figures populate from health while a later perceive health self can replace the estimate.

Written by the indexing model from the issue text.

Description

area:parser area:ui-dock bug P2

Summary

An Empath carrying a mix of fresh wounds and scars does not get an accurate picture of their own injuries from either the Injuries panel or the Healing window. The game's health output lists every wound, but the panels show only part of it (Injuries) or nothing at all (Healing).

Steps to reproduce

  1. On an Empath, take wounds from patients until several body parts carry both a fresh wound and a scar, plus at least one part with both an external and an internal wound.
  2. Open Window → Injuries (Figure layout) and the Healing window, with the patient box blank (acting on yourself).
  3. Type health.

What the game reports

You have some minor abrasions to the head, a few nearly invisible scars along the head,
some minor abrasions to the neck, a few nearly invisible scars along the neck,
some minor abrasions to the right arm, a few nearly invisible scars along the right arm,
some minor abrasions to the left arm, a few nearly invisible scars along the left arm,
minor swelling and bruising around the right leg compounded by cuts and bruises about the right leg,
some tiny scratches to the left leg, a few nearly invisible scars along the left leg,
some minor abrasions to the chest, a few nearly invisible scars along the chest,
some minor abrasions to the back, a few nearly invisible scars along the back.

That is 8 regions, 7 of which carry a fresh wound and a scar, and one (right leg) carrying an external and an internal fresh wound.

What Genie shows

Injuries panel — INJURIES (8), but every listed region reads only scar (1) (Head, Neck, Right Arm, Left Arm, Chest, Back, …). The fresh wound sitting on the same body part is not shown anywhere, and the figure is tinted scar-blue throughout. The right leg's internal/external split is not shown either.

Healing window — all four self figures (Fresh External / Fresh Internal / Scar External / Scar Internal) stay completely blank after health, even though the line above contains everything needed to fill them.

Expected

  • The Injuries panel should not hide a fresh wound behind a scar on the same body part. Either show both readings per region, or at least let the fresh wound win (it is the more urgent of the two), with the list spelling out both, e.g. Head — wound (1), scar (1).
  • The Healing window's four figures should fill for yourself from the health summary, not only after perceive health self.

Cause (from reading the source)

  • One reading per region. The Injuries panel is fed by the server's injuries dialog (<dialogData id="injuries"><image id="head" name="Scar1"/>…), which carries a single image per region in whatever display mode the server profile has selected. InjuryCell holds one Kind + Severity, so a region can be a wound or a scar, never both.
  • The health text is only used to clear, and for the tail. DrXmlParser.TryApplyHealthInjurySummary uses the summary to mark un-named regions healthy and to read the tail (HealthWoundText.Read(line, "tail")). For every other region the text is ignored in favour of the dialog reading, so the wound/scar and internal/external detail in the line is dropped. HealthWoundText already has the full phrase table and takes any body part — it just isn't asked about the other regions.
  • Healing figures only listen to perceive health. The Healing window's per-axis charts come from PerceiveHealthParser (the perceive health self / touch block). The plain health verb never produces a chart, so the self figures stay empty until the Empath perceives themselves.

Possible direction

  • Let InjuryCell (and InjuryEvent / GameState.Injuries) carry a wound reading and a scar reading side by side, filled from the health summary when the dialog only supplies one of them.
  • Extend the health summary parse to all regions and both depths ("inside the …" / "compounded by"), and publish it as a self chart so the Healing window's four figures can draw from it.
  • Severity from health text is coarser than perceive health (Lich's 1–8 scale vs the 13-rung perceive scale), so a self chart built from it should be marked as an estimate and replaced when a real perceive health self arrives.

Environment

  • Genie 5.0.1 beta, Windows, StormFront XML session
  • Character: Empath
Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.