Dungeon Crawl Stone Soup Tracker - DCSS
Viewing Issue Advanced Details
8425 Patches feature N/A 2014-04-23 16:17 2014-05-21 05:35
bones Both  
neil All  
normal Both  
resolved 0.15 ancient branch  
0.15-a0-212-g405fd41 done  
none    
none 0.15 ancient branch  
0008425: Adding a new menu_colour category for items shown in the status panel.
Hi. I've never submitted a patch here before so I don't really know what I'm doing, but I had an idea and went ahead and implemented it.

This patch adds a new category to menu_colour, called "stats", which is used when an item is shown in the stats panel in the top right.

Normally, not much is coloured there by default save for cursed items. But with this change it's easy to add your own useful colours. I often found myself swapping to the wrong ranged or melee weapon, or keeping wielded chunks equipped too long. Now you can easily add special colours there that won't interfere with your other colour rules. For example:

menu_colour += stats:magenta:food
menu_colour += stats:lightblue:melee
menu_colour += stats:yellow:ranged


To help make simple rules like that, I also added the "ranged" and "melee" prefixes to weapons in the item_prefix function.
? file icon 0001-Add-stats-category-to-menu_colour-and-provide-ranged.patch [^] (2,934 bytes) 2014-04-23 16:17 [Show Content]
Issue History
2014-04-23 16:17 bones New Issue
2014-04-23 16:17 bones File Added: 0001-Add-stats-category-to-menu_colour-and-provide-ranged.patch
2014-04-23 16:22 chris Issue Monitored: chris
2014-05-21 05:35 neil Note Added: 0026250
2014-05-21 05:35 neil Status new => resolved
2014-05-21 05:35 neil Fixed in Branch => 0.15 development branch
2014-05-21 05:35 neil Resolution open => done
2014-05-21 05:35 neil Assigned To => neil

Notes
(0026250)
neil   
2014-05-21 05:35   
In trunk (0.15-a0-938-g840db46), thanks! I made the "melee" tag also appear on staves and rods (0.15-a0-939-ga143668).