{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228","id":339142488,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5ODk0OTEy","number":24228,"title":"[WiP] [CR] Freezer & freeze mechanics overhaul","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-07T12:27:56Z","updated_at":"2018-07-08T11:30:06Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228.patch"},"body":"### **What does it do?**\r\n\r\nThis PR introduces:\r\n\r\n### **Minifreezer to freeze your food solid:**\r\n\r\n- [x] Minifreezer item, and a vehicle part\r\n- [x] Minifreezer consumes x1,5 more energy then standard minifridge (lower temperature = more power, higher delta temperature = faster energy transfer)\r\n- [x] Minifreezer firstly cools food, and then it freezes it (it's a process, not an on/off switch)\r\n\r\n### **New freeze mechanics:**\r\n- [x] FROZEN flag for frozen food,\r\n- [x] Frozen food has to defrost to be eaten (applies to frozen liquids too),\r\n- [x] EATEN_FROZEN food flag allows some food to be eaten in frozen state (it's not a morale flag),\r\n- [x] Frozen food can be heated to defrost,\r\n- [x] Cold environmental temperature (winter, ice lab) will first cool, then freeze your food solid.\r\n- [x] Frozen food will thaw to cool state (COLD flag), and cold food will go to normal temperature. Unless environment temperature is too cold for it to thaw.\r\n- [x] If food is not eaten cold (see cold drinks, EATEN_COLD flag) the above transition of states bypasses cold state and goes: normal <--> frozen.\r\n- [x] NO_FREEZE food flag causes instant rot of frozen item with this flag, some food don't like to be frozen at all (freezing irreversibly damages some food items rendering them inedible)\r\n- [x] NO_FREEZE flag has a feedback for the player in [e]xamine option as a warning not to freeze this food.\r\n- [x] fridge temperature was set to 37F/2,5C and moved to `game_constants.cpp`\r\n- [x] rot calculation for fridge stored items uses true temperature calculation and not flat values like before\r\n\r\n### **TODO:**\r\n- [ ] apply EATEN_FROZEN and NO_FREEZE flags to json-ized comestibles\r\n- [x] make it so that lightly frozen food can be still eaten (to prevent binary 0-1 effects)\r\n- [x] add more debug info for [e]xamine to probe HOT/COLD/FROZEN flags \"depth\" levels\r\n- [x] slow-down cooling process (it was drastically fast!)\r\n\r\n### **Rationale:**\r\nFollow the initial discussion and ideas presented at: #24145\r\n\r\n **FYI: ~~not yet tested~~ first rudimentary tests are promising.**"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/403281130","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228#issuecomment-403281130","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228","id":403281130,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzI4MTEzMA==","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-07-08T11:30:06Z","updated_at":"2018-07-08T11:30:06Z","author_association":"CONTRIBUTOR","body":"> Oh. I've worked with people on liquid diets. If it is not \"rotten\" it is edible in any material phase (we had thickener to turn juice/coffee into soup/paste).\r\n\r\nI agree, throw lettuce in a blender, and its perfectly edible, but after a freeze, & defrost and I'm not so sure. I think it's not mechanical damage but destruction on cellular level. But on this topic I'm not an expert, so feel free to add any thoughts or sources found."}}
{"actor":{"display_login":"nexusmrsep"}}