MCPcopy Create free account
hub / github.com/NetHack/NetHack / mar_status_dirty

Function mar_status_dirty

outdated/win/gem/wingem1.c:1600–1617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598/************************* mar_status_dirty *******************************/
1599
1600void
1601mar_status_dirty()
1602{
1603 int ccol;
1604
1605 ccol = mar_hp_query();
1606
1607 if (ccol < 2)
1608 curs_col = WHITE; /* 50-100% : 0 */
1609 else if (ccol < 3)
1610 curs_col = YELLOW; /* 33-50% : 6 */
1611 else if (ccol < 5)
1612 curs_col = LYELLOW; /* 20-33% : 14*/
1613 else if (ccol < 10)
1614 curs_col = RED; /* 10-20% : 2 */
1615 else
1616 curs_col = MAGENTA; /* <10% : 7*/
1617}
1618
1619/************************* mar_add_message *******************************/
1620

Callers 1

Gem_putstrFunction · 0.85

Calls 1

mar_hp_queryFunction · 0.85

Tested by

no test coverage detected