update PR #1071 - highlighting critical HP

If status field 'hitpoints' has rules for both 'criticalhp' and 'up'
or 'down' or 'changed', make critical-hp take precedence.  Otherwise
critical-hp might never be seen because of the value changing every
move (if hero has regeneration attribute).  Normally up/down/changed
take precedence over other types of highlighting.

Something is messed up with up/down/changed HP though.  I'm seeing
the 'up' highlight when it goes either up or down and not seeing the
'down' highlight at all.  'up' and 'down' for gold work as expected.
This commit is contained in:
PatR
2023-08-04 22:33:29 -07:00
parent 651a5b210f
commit 70791271dd
3 changed files with 32 additions and 16 deletions

View File

@@ -1654,6 +1654,7 @@ if something breakable was set up as alternate weapon and the second of two
"objfree: deleting worn obj"
strength cap for hero poly'd into an orc captain was 18/50 even though it is
10/100 for Uruk-Hai and monster Uruk-Hai can grow into orc captains
status_hilite rule for critical-hp takes precedence over up/down/changed HP
Fixes to 3.7.0-x Platform and/or Interface Problems Exposed Via git Repository