{"action":"created","comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/56220066","id":56220066,"diff_hunk":"@@ -454,12 +454,12 @@ void player::load(JsonObject &data)\n \n     // Add the earplugs.\n     if( has_bionic( \"bio_ears\" ) && !has_bionic( \"bio_earplugs\" ) ) {\n-        add_bionic(\"bio_earplugs\");\n+        add_bionic(\"bio_earplugs\", static_cast<body_part>( 12 ) );","path":"src/savegame_json.cpp","position":5,"original_position":5,"commit_id":"7bd84b7013a8b4499724e69e12fc7cb29aa81d11","original_commit_id":"7bd84b7013a8b4499724e69e12fc7cb29aa81d11","user":{"login":"codemime","id":11905613,"avatar_url":"https://avatars.githubusercontent.com/u/11905613?v=3","gravatar_id":"","url":"https://api.github.com/users/codemime","html_url":"https://github.com/codemime","followers_url":"https://api.github.com/users/codemime/followers","following_url":"https://api.github.com/users/codemime/following{/other_user}","gists_url":"https://api.github.com/users/codemime/gists{/gist_id}","starred_url":"https://api.github.com/users/codemime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemime/subscriptions","organizations_url":"https://api.github.com/users/codemime/orgs","repos_url":"https://api.github.com/users/codemime/repos","events_url":"https://api.github.com/users/codemime/events{/privacy}","received_events_url":"https://api.github.com/users/codemime/received_events","type":"User","site_admin":false},"body":"`num_bp`","created_at":"2016-03-15T18:52:00Z","updated_at":"2016-03-15T18:52:00Z","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774#discussion_r56220066","pull_request_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774","_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/56220066"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774#discussion_r56220066"},"pull_request":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774"}}},"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774","id":62678857,"html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774.patch","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15774","number":15774,"state":"open","locked":false,"title":"[WIP] Implementation of bionics slots system","user":{"login":"illi-kun","id":5421954,"avatar_url":"https://avatars.githubusercontent.com/u/5421954?v=3","gravatar_id":"","url":"https://api.github.com/users/illi-kun","html_url":"https://github.com/illi-kun","followers_url":"https://api.github.com/users/illi-kun/followers","following_url":"https://api.github.com/users/illi-kun/following{/other_user}","gists_url":"https://api.github.com/users/illi-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/illi-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illi-kun/subscriptions","organizations_url":"https://api.github.com/users/illi-kun/orgs","repos_url":"https://api.github.com/users/illi-kun/repos","events_url":"https://api.github.com/users/illi-kun/events{/privacy}","received_events_url":"https://api.github.com/users/illi-kun/received_events","type":"User","site_admin":false},"body":"It's in [WIP] status but I want to announce the changes I'm working on and receive some preliminary feedback.\r\n\r\nAs it was discussed previously, current CBM system allows you to install all stuff you found without any thinking about their actual necessity. Application of some limitations to CBM system should add some depth to the game, so finite number of slots (points, available internal volume, name it whatever you want) for CBMs installation could be a good limitation factor. \r\n\r\nI've started from this sketch of UI (pure text editor results, no coding) with slots available for bionics installation in each body part:\r\n![ui](https://cloud.githubusercontent.com/assets/5421954/13730438/74b979cc-e960-11e5-8d54-dd6177a08d53.png)\r\n\r\nScreens from the game showing actual progress are:\r\n- Bionics installation screen:\r\n![cbm_installation](https://cloud.githubusercontent.com/assets/5421954/13730442/a8b55bba-e960-11e5-92c7-b13f60e2cb7b.png)\r\n\r\n- Bionics menu:\r\n![cbm_menu](https://cloud.githubusercontent.com/assets/5421954/13730445/c04d2e88-e960-11e5-8291-f1983c04daae.png)\r\n\r\nTODO:\r\n- [ ] fix an issue with bugged description of CBM power consumption (it appears/ disappears randomly);\r\n- [ ] disable invlet assignment for passive bionics;\r\n- [ ] resolve conflicts between invlets & shortcuts;\r\n- [x] enable bodypart filter;\r\n- [ ] further UI improvements.\r\n- [ ] work on json infrastructure (read allowed bodyparts & internal size from json definition of bionic);\r\n- [ ] handle power units installation as a special case (temporary solution).\r\n\r\n\r\n\r\n  \r\n","created_at":"2016-03-13T18:35:10Z","updated_at":"2016-03-15T18:52:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5a01d96c58ada53f3c3e8ffe868143a7fea6eff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774/commits","review_comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774/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/15774/comments","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/7bd84b7013a8b4499724e69e12fc7cb29aa81d11","head":{"label":"illi-kun:cbm_ui","ref":"cbm_ui","sha":"7bd84b7013a8b4499724e69e12fc7cb29aa81d11","user":{"login":"illi-kun","id":5421954,"avatar_url":"https://avatars.githubusercontent.com/u/5421954?v=3","gravatar_id":"","url":"https://api.github.com/users/illi-kun","html_url":"https://github.com/illi-kun","followers_url":"https://api.github.com/users/illi-kun/followers","following_url":"https://api.github.com/users/illi-kun/following{/other_user}","gists_url":"https://api.github.com/users/illi-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/illi-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illi-kun/subscriptions","organizations_url":"https://api.github.com/users/illi-kun/orgs","repos_url":"https://api.github.com/users/illi-kun/repos","events_url":"https://api.github.com/users/illi-kun/events{/privacy}","received_events_url":"https://api.github.com/users/illi-kun/received_events","type":"User","site_admin":false},"repo":{"id":38418763,"name":"Cataclysm-DDA","full_name":"illi-kun/Cataclysm-DDA","owner":{"login":"illi-kun","id":5421954,"avatar_url":"https://avatars.githubusercontent.com/u/5421954?v=3","gravatar_id":"","url":"https://api.github.com/users/illi-kun","html_url":"https://github.com/illi-kun","followers_url":"https://api.github.com/users/illi-kun/followers","following_url":"https://api.github.com/users/illi-kun/following{/other_user}","gists_url":"https://api.github.com/users/illi-kun/gists{/gist_id}","starred_url":"https://api.github.com/users/illi-kun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illi-kun/subscriptions","organizations_url":"https://api.github.com/users/illi-kun/orgs","repos_url":"https://api.github.com/users/illi-kun/repos","events_url":"https://api.github.com/users/illi-kun/events{/privacy}","received_events_url":"https://api.github.com/users/illi-kun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/illi-kun/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A fork/variant of Cataclysm Roguelike by Whales.","fork":true,"url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA","forks_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/illi-kun/Cataclysm-DDA/deployments","created_at":"2015-07-02T07:47:29Z","updated_at":"2016-01-11T07:34:43Z","pushed_at":"2016-03-15T09:25:48Z","git_url":"git://github.com/illi-kun/Cataclysm-DDA.git","ssh_url":"git@github.com:illi-kun/Cataclysm-DDA.git","clone_url":"https://github.com/illi-kun/Cataclysm-DDA.git","svn_url":"https://github.com/illi-kun/Cataclysm-DDA","homepage":"http://en.cataclysmdda.com/","size":707768,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CleverRaven:master","ref":"master","sha":"2dc50312a35aa3a8b4355156677b1370109947e9","user":{"login":"CleverRaven","id":4367009,"avatar_url":"https://avatars.githubusercontent.com/u/4367009?v=3","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,"name":"Cataclysm-DDA","full_name":"CleverRaven/Cataclysm-DDA","owner":{"login":"CleverRaven","id":4367009,"avatar_url":"https://avatars.githubusercontent.com/u/4367009?v=3","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 fork/variant of Cataclysm Roguelike by Whales.","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":"2016-03-15T05:48:42Z","pushed_at":"2016-03-15T17:01:42Z","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://en.cataclysmdda.com/","size":957271,"stargazers_count":895,"watchers_count":895,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":864,"mirror_url":null,"open_issues_count":1207,"forks":864,"open_issues":1207,"watchers":895,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15774"},"issue":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15774"},"comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15774/comments"},"review_comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15774/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/15774/commits"},"statuses":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/7bd84b7013a8b4499724e69e12fc7cb29aa81d11"}}}}