TONPPAMF

The Official NPPAngband And NPPMoria Forum

You are not logged in.

Announcement

July 4th, 2018 - Registrations have been turned off due to the large ratio of spam vs legitimate discussion.

#1 2016-02-24 16:23:05

hydraa
Member
Registered: 2004-10-11
Posts: 421

Spell points goes to red too early in the side bar

Looks like in qt_sidebar.cpp spell points go to red way too early vs hit points  Looks like when you move the hp warn to the menu bar (changing it from tens to units) you change hp but not sp

* Calculate the hp color separately, for ports.
...
    else if (p_ptr->chp > (p_ptr->mhp * op_ptr->hitpoint_warn) / 100)

* Calculate the sp color separately, for ports.
...
else if (p_ptr->csp > (p_ptr->msp * op_ptr->hitpoint_warn) / 10)

Offline

#2 2016-02-28 23:02:03

NPPAngband
NPPAngband Maintainer
Registered: 2004-07-01
Posts: 1,647
Website

Re: Spell points goes to red too early in the side bar

Fixed, thanks.  Also, the comment section "for ports" also needed to go.

Offline

Board footer

Powered by FluxBB