more new status - update genl_status_update
commit60b166aad85144cd7a6b0c0f0b596e049d9ca8c5
authorPatR <rankin@nethack.org>
Fri, 15 Jan 2016 11:30:40 +0000 (15 03:30 -0800)
committerPatR <rankin@nethack.org>
Fri, 15 Jan 2016 11:30:40 +0000 (15 03:30 -0800)
tree643e2699439c1f762b64564652757d7deb735b6e
parent4d866a2217b2fa12ae06f2b560a2b78e3df66c7d
more new status - update genl_status_update

Make genl_status_update behave approximately the same as basic bot2
when processing the second status line.  Preferred order:
Dlvl  Gold  Hp(HpMax) Pw(PwMax) AC  Xp  Time  Conditions
Alternate orders if above exceeds COLNO (note several extra spaces
get sequeezed out).  First one is used if everything except time fits,
second one is used if everything except experience (which can be wide
if 'showexp' option is on) and time fits, third is last resort:
Dlvl Gold Hp(HpMax) Pw(PwMax) AC Xp Conditions Time
Dlvl Gold Hp(HpMax) Pw(PwMax) AC Conditions Xp Time
Hp(HpMax) Pw(PwMax) AC Conditions Dlvl Gold Xp Time

Basic bot2 currently has Conditions as
Stone Slime Strngl FoodPois TermIll <hunger> <encumbrance> Blind Deaf
 Stun Conf Hallu Lev Fly Ride
genl_status_update has
<hunger> <encumbrance> Stone Slime Strngl FoodPois TermIll Blind Deaf
 Stun Conf Hallu Lev Fly Ride
which is as close as it can get with the current field organization.

Tested by temporarily changing tty_procs.status_init and .status_update
to use genl_* instead of tty_*.
src/botl.c
src/windows.c
util/makedefs.c