Recolour weapons on the HUD while corroded (Patashu)
authorChris Campbell <chriscampbell89@gmail.com>
Mon, 16 Jun 2014 16:09:27 +0000 (17:09 +0100)
committerChris Campbell <chriscampbell89@gmail.com>
Mon, 16 Jun 2014 16:09:27 +0000 (17:09 +0100)
crawl-ref/source/output.cc

index 4ccdf92..1e48dc1 100644 (file)
@@ -829,6 +829,8 @@ static void _print_stats_wp(int y)
         const int prefcol = menu_colour(wpn.name(DESC_INVENTORY), prefix, "stats");
         if (prefcol != -1)
             col = prefcol;
+        else if (you.duration[DUR_CORROSION])
+            col = RED;
         else
             col = LIGHTGREY;