[Bug] Empath self-injuries: Injuries panel hides fresh wounds behind scars, Healing figures stay blank after health
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
- Domain
- frontend, full-stack
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
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
- 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.
- Open Window → Injuries (Figure layout) and the Healing window, with the patient box blank (acting on yourself).
- 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
healthsummary, not only afterperceive 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.InjuryCellholds oneKind+Severity, so a region can be a wound or a scar, never both. - The
healthtext is only used to clear, and for the tail.DrXmlParser.TryApplyHealthInjurySummaryuses 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.HealthWoundTextalready 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 fromPerceiveHealthParser(theperceive health self/ touch block). The plainhealthverb never produces a chart, so the self figures stay empty until the Empath perceives themselves.
Possible direction
- Let
InjuryCell(andInjuryEvent/GameState.Injuries) carry a wound reading and a scar reading side by side, filled from thehealthsummary when the dialog only supplies one of them. - Extend the
healthsummary 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
healthtext is coarser thanperceive 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 realperceive health selfarrives.
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
area:mapper bug est:<1d P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
GenieClient/Genie5#449 · 1 comment ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
SubtitleEdit/subtitleedit#17351 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
elsa-workflows/elsa-foundation#6384 ·
Maintainers usually reply within 1 day
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days