[3.5-dev] Fix 'full' display' post Gorged change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2987

    [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 https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎