Add forcing of green HP bar in special case

When the HP bar has exactly 48 pixels and the HP ratio is strictly
greater than 0.5, the HP bar is displayed as green rather than yellow.