{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/25262","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/25262/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/25262/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/25262/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/25262","id":355710666,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMTc2Nzc0","number":25262,"title":"[WIP] Show remaining time left in Eat menu, and add support for showing Weeks","user":{"login":"MT-Arnoldussen","id":3521568,"node_id":"MDQ6VXNlcjM1MjE1Njg=","avatar_url":"https://avatars1.githubusercontent.com/u/3521568?v=4","gravatar_id":"","url":"https://api.github.com/users/MT-Arnoldussen","html_url":"https://github.com/MT-Arnoldussen","followers_url":"https://api.github.com/users/MT-Arnoldussen/followers","following_url":"https://api.github.com/users/MT-Arnoldussen/following{/other_user}","gists_url":"https://api.github.com/users/MT-Arnoldussen/gists{/gist_id}","starred_url":"https://api.github.com/users/MT-Arnoldussen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MT-Arnoldussen/subscriptions","organizations_url":"https://api.github.com/users/MT-Arnoldussen/orgs","repos_url":"https://api.github.com/users/MT-Arnoldussen/repos","events_url":"https://api.github.com/users/MT-Arnoldussen/events{/privacy}","received_events_url":"https://api.github.com/users/MT-Arnoldussen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-30T18:51:58Z","updated_at":"2018-08-31T10:10:29Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/25262","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/25262","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/25262.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/25262.patch"},"body":"#### Summary\r\n```SUMMARY: Interface \"Show remaining time left in Eat menu, and add support for showing Weeks\"```\r\n\r\n#### To Do\r\n- [x] Display Time Left in `E`at menu..\r\n- [ ] Make Time Left use (relative) rot instead of age.\r\n- [ ] Rename \"Spoils In\" -> \"Shelf Life\" *everywhere*.\r\n- [ ] Re-add Shelf Life column.\r\n- [ ] Add Freshness column.\r\n- [ ] Add Time Left (\"Spoils In\") to item description.\r\n- [ ] Make <1 day of Time Left a bit more precise for high survival skill characters.\r\n\r\n#### Why\r\nBeing able to see how long the food you have will roughly last is very useful. Currently you only have the `(old)` and `(fresh)` tags to work with, but usually most of your food will have neither.\r\n\r\n#### What\r\nInstead of the time food would last if newly created, the `E`at menu now shows the amount of time the food has left.\r\n\r\n* This remaining time is not 100% correct, as food can last longer than it is supposed to.\r\n* If the remaining time is less than or equal to 1 day, it will show 1 day is left.\r\n* If the remaining time is less than or equal to 1 week, and your survival skill is at least 4, it will show the exact amount of days left.\r\n* Otherwise it will round up to the next week.\r\n* This will then be changed into seasons or years if appropriate.\r\n\r\nIn addition to that, it will now show \"weeks\" in between \"days\" and \"seasons\". This is mostly for people who play with longer season lengths, since seeing something will last 28 or 42 days is kinda weird.\r\n\r\n\r\n#### Screenshots\r\nDefault season length:\r\n![spoils 14 day seasons](https://user-images.githubusercontent.com/3521568/44872130-017eec80-ac95-11e8-8f54-37ff0ae7da21.PNG)\r\n91 day season length:\r\n![spoils 91 day season](https://user-images.githubusercontent.com/3521568/44872131-017eec80-ac95-11e8-9073-3d7fa9367a9b.PNG)\r\nThis is with high survival skill, since it shows \"2 days\". With low survival skill that would be \"1 week\".\r\n\r\n#### Potential Issues\r\nWith higher amounts of time left the displayed time being rounded up to a week might still be a little too precise.\r\n"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/417619023","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/25262#issuecomment-417619023","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/25262","id":417619023,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzYxOTAyMw==","user":{"login":"nexusmrsep","id":39925111,"node_id":"MDQ6VXNlcjM5OTI1MTEx","avatar_url":"https://avatars0.githubusercontent.com/u/39925111?v=4","gravatar_id":"","url":"https://api.github.com/users/nexusmrsep","html_url":"https://github.com/nexusmrsep","followers_url":"https://api.github.com/users/nexusmrsep/followers","following_url":"https://api.github.com/users/nexusmrsep/following{/other_user}","gists_url":"https://api.github.com/users/nexusmrsep/gists{/gist_id}","starred_url":"https://api.github.com/users/nexusmrsep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexusmrsep/subscriptions","organizations_url":"https://api.github.com/users/nexusmrsep/orgs","repos_url":"https://api.github.com/users/nexusmrsep/repos","events_url":"https://api.github.com/users/nexusmrsep/events{/privacy}","received_events_url":"https://api.github.com/users/nexusmrsep/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T10:10:29Z","updated_at":"2018-08-31T10:10:29Z","author_association":"CONTRIBUTOR","body":"Get relative rot is not randomized in any way. It just divides rot by spoil time to get percentage. You can find how it works in map.cpp as far as I remember."}}
{"actor":{"display_login":"nexusmrsep"}}