{"action":"created","comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/200851067","pull_request_review_id":135243064,"id":200851067,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDg1MTA2Nw==","diff_hunk":"@@ -5059,9 +5060,16 @@ static bool heat_item( player &p )\n     item &target = heat->is_food_container() ? heat->contents.front() : *heat;\n     p.mod_moves( -300 );\n     add_msg( _( \"You heat up the food.\" ) );\n-    target.item_tags.insert( \"HOT\" );\n-    target.active = true;\n-    target.item_counter = 600; // sets the hot food flag for 60 minutes\n+    if( target.item_tags.count( \"FROZEN\" ) ) {\n+        target.item_tags.erase( \"FROZEN\" );\n+        target.item_tags.insert( \"HOT\" );\n+        target.active = true;\n+        target.item_counter = 100; // prevents insta-freeze afterwards\n+    } else {\n+        target.item_tags.insert( \"HOT\" );\n+        target.active = true;\n+        target.item_counter = 600; // sets the hot food flag for 60 minutes","path":"src/iuse.cpp","position":27,"original_position":27,"commit_id":"efbaca91ffe017c49d68072eaabf0b1293850121","original_commit_id":"50304d7ced8f171c832fcbcea5b7a3a48a3af83b","user":{"login":"Night-Pryanik","id":11132525,"node_id":"MDQ6VXNlcjExMTMyNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/11132525?v=4","gravatar_id":"","url":"https://api.github.com/users/Night-Pryanik","html_url":"https://github.com/Night-Pryanik","followers_url":"https://api.github.com/users/Night-Pryanik/followers","following_url":"https://api.github.com/users/Night-Pryanik/following{/other_user}","gists_url":"https://api.github.com/users/Night-Pryanik/gists{/gist_id}","starred_url":"https://api.github.com/users/Night-Pryanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Night-Pryanik/subscriptions","organizations_url":"https://api.github.com/users/Night-Pryanik/orgs","repos_url":"https://api.github.com/users/Night-Pryanik/repos","events_url":"https://api.github.com/users/Night-Pryanik/events{/privacy}","received_events_url":"https://api.github.com/users/Night-Pryanik/received_events","type":"User","site_admin":false},"body":"IMO it should be changed to 10-15 minutes.","created_at":"2018-07-08T19:34:20Z","updated_at":"2018-07-08T19:34:20Z","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228#discussion_r200851067","pull_request_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/200851067"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228#discussion_r200851067"},"pull_request":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228"}},"in_reply_to_id":200830998},"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228","id":199894912,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5ODk0OTEy","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","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228","number":24228,"state":"open","locked":false,"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},"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.**","created_at":"2018-07-07T12:27:56Z","updated_at":"2018-07-08T19:34:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2df2e65d7941125c441d40edfbf0822551b9fde8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228/commits","review_comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228/comments","review_comment_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228/comments","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/efbaca91ffe017c49d68072eaabf0b1293850121","head":{"label":"nexusmrsep:freezer","ref":"freezer","sha":"efbaca91ffe017c49d68072eaabf0b1293850121","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},"repo":{"id":136736821,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY3MzY4MjE=","name":"Cataclysm-DDA","full_name":"nexusmrsep/Cataclysm-DDA","owner":{"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},"private":false,"html_url":"https://github.com/nexusmrsep/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.","fork":true,"url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA","forks_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/nexusmrsep/Cataclysm-DDA/deployments","created_at":"2018-06-09T15:49:24Z","updated_at":"2018-07-07T06:32:46Z","pushed_at":"2018-07-08T19:33:52Z","git_url":"git://github.com/nexusmrsep/Cataclysm-DDA.git","ssh_url":"git@github.com:nexusmrsep/Cataclysm-DDA.git","clone_url":"https://github.com/nexusmrsep/Cataclysm-DDA.git","svn_url":"https://github.com/nexusmrsep/Cataclysm-DDA","homepage":"http://cataclysmdda.org","size":1232370,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CleverRaven:master","ref":"master","sha":"2ccd3b81a334bfafee0494e48a9586c10f35b1af","user":{"login":"CleverRaven","id":4367009,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNjcwMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/4367009?v=4","gravatar_id":"","url":"https://api.github.com/users/CleverRaven","html_url":"https://github.com/CleverRaven","followers_url":"https://api.github.com/users/CleverRaven/followers","following_url":"https://api.github.com/users/CleverRaven/following{/other_user}","gists_url":"https://api.github.com/users/CleverRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverRaven/subscriptions","organizations_url":"https://api.github.com/users/CleverRaven/orgs","repos_url":"https://api.github.com/users/CleverRaven/repos","events_url":"https://api.github.com/users/CleverRaven/events{/privacy}","received_events_url":"https://api.github.com/users/CleverRaven/received_events","type":"Organization","site_admin":false},"repo":{"id":5973855,"node_id":"MDEwOlJlcG9zaXRvcnk1OTczODU1","name":"Cataclysm-DDA","full_name":"CleverRaven/Cataclysm-DDA","owner":{"login":"CleverRaven","id":4367009,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNjcwMDk=","avatar_url":"https://avatars0.githubusercontent.com/u/4367009?v=4","gravatar_id":"","url":"https://api.github.com/users/CleverRaven","html_url":"https://github.com/CleverRaven","followers_url":"https://api.github.com/users/CleverRaven/followers","following_url":"https://api.github.com/users/CleverRaven/following{/other_user}","gists_url":"https://api.github.com/users/CleverRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/CleverRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleverRaven/subscriptions","organizations_url":"https://api.github.com/users/CleverRaven/orgs","repos_url":"https://api.github.com/users/CleverRaven/repos","events_url":"https://api.github.com/users/CleverRaven/events{/privacy}","received_events_url":"https://api.github.com/users/CleverRaven/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CleverRaven/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.","fork":false,"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","forks_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/deployments","created_at":"2012-09-26T22:57:43Z","updated_at":"2018-07-08T19:34:01Z","pushed_at":"2018-07-08T19:33:54Z","git_url":"git://github.com/CleverRaven/Cataclysm-DDA.git","ssh_url":"git@github.com:CleverRaven/Cataclysm-DDA.git","clone_url":"https://github.com/CleverRaven/Cataclysm-DDA.git","svn_url":"https://github.com/CleverRaven/Cataclysm-DDA","homepage":"http://cataclysmdda.org","size":1238199,"stargazers_count":1927,"watchers_count":1927,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1333,"mirror_url":null,"archived":false,"open_issues_count":843,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1333,"open_issues":843,"watchers":1927,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/24228"},"issue":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228"},"comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/24228/comments"},"review_comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228/comments"},"review_comment":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/24228/commits"},"statuses":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/efbaca91ffe017c49d68072eaabf0b1293850121"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Night-Pryanik"}}