Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 29, 2013, 16:58   #1
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,944
PowerWyrm is on a distinguished road
[3.5-dev] Fix 'full' display' post Gorged change

I looked at that commit and something like this would be more appropriate (since the code still does "<" to handle food thresholds):

Code:
/* p_ptr->food descriptions */
static const struct state_info hunger_data[] =
{
    { PY_FOOD_FAINT,   S("Faint"),  TERM_RED },
    { PY_FOOD_WEAK,    S("Weak"),   TERM_ORANGE },
    { PY_FOOD_ALERT,   S("Hungry"), TERM_YELLOW },
    { PY_FOOD_FULL,    S(""),       TERM_L_GREEN },
    { PY_FOOD_MAX + 1, S("Full"),   TERM_L_GREEN }
};


/*
 * Prints status of hunger
 */
static size_t prt_hunger(int row, int col)
{
    PRINT_STATE(<, hunger_data, p_ptr->food, row, col);
    return 0;
}
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[3.5-dev] Gorged status missing? molybdenum Vanilla 87 July 3, 2013 04:27
how to know the full extent of one item's powers... rader.wang AAR 5 April 14, 2013 10:06
Tales of Maj'Eyal 1.0.0 aka "And the Sky Full of Stars" DarkGod ToME 8 January 2, 2013 17:04
Angband 3.3.2 - anything else to fix? Magnate Vanilla 57 May 28, 2012 00:50
Fightless the full-casting mage fizzix AAR 65 July 27, 2010 09:11


All times are GMT +1. The time now is 23:52.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.