CleverRaven/Cataclysm-DDA — pull request #9380 by tivec (2014-10-02 20:42:07+00:00)
Title: Add color to perishable items, and items about to rot.

This makes it so perishable items are shown with a green color in your list, and the items that are about to rot (10% left of the time before it rots) will be shown bright yellow. This transitions nicely into the darker yellow/brown color when it has rotted and gives the player a hint that this one is going to be going bad soon.

Example items:
Pear spoils in 140 hours. That means it will be bright yellow for the last 14.
Milk spoils in 8 hours, meaning it will be bright yellow for 48 minutes.
Jam spoils in 240 hours, so the last 24 hours will be bright yellow.