{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15012","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15012/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15012/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15012/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15012","id":128487044,"number":15012,"title":"Shield Foundation Part 2: BLOCK_WHILE_WORN","user":{"login":"chaosvolt","id":11582235,"avatar_url":"https://avatars.githubusercontent.com/u/11582235?v=3","gravatar_id":"","url":"https://api.github.com/users/chaosvolt","html_url":"https://github.com/chaosvolt","followers_url":"https://api.github.com/users/chaosvolt/followers","following_url":"https://api.github.com/users/chaosvolt/following{/other_user}","gists_url":"https://api.github.com/users/chaosvolt/gists{/gist_id}","starred_url":"https://api.github.com/users/chaosvolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaosvolt/subscriptions","organizations_url":"https://api.github.com/users/chaosvolt/orgs","repos_url":"https://api.github.com/users/chaosvolt/repos","events_url":"https://api.github.com/users/chaosvolt/events{/privacy}","received_events_url":"https://api.github.com/users/chaosvolt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-25T08:33:00Z","updated_at":"2016-01-25T18:21:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/15012","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15012","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15012.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15012.patch"},"body":"This is still centered around a potentially broken function, having trouble figured it out. In any case, this is the other half of what I attempted in https://github.com/CleverRaven/Cataclysm-DDA/pull/14711 previously.\r\n\r\n* Attempting to add code for allowing worn items to be used in blocking.\r\n* Added the relevant flag to a couple items, actual shields can come later."},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/174609651","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/15012#issuecomment-174609651","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/15012","id":174609651,"user":{"login":"chaosvolt","id":11582235,"avatar_url":"https://avatars.githubusercontent.com/u/11582235?v=3","gravatar_id":"","url":"https://api.github.com/users/chaosvolt","html_url":"https://github.com/chaosvolt","followers_url":"https://api.github.com/users/chaosvolt/followers","following_url":"https://api.github.com/users/chaosvolt/following{/other_user}","gists_url":"https://api.github.com/users/chaosvolt/gists{/gist_id}","starred_url":"https://api.github.com/users/chaosvolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaosvolt/subscriptions","organizations_url":"https://api.github.com/users/chaosvolt/orgs","repos_url":"https://api.github.com/users/chaosvolt/repos","events_url":"https://api.github.com/users/chaosvolt/events{/privacy}","received_events_url":"https://api.github.com/users/chaosvolt/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T18:21:07Z","updated_at":"2016-01-25T18:21:07Z","body":"Aw hell. What'd I fuck up this time?\r\n\r\n````\r\nsrc/melee.cpp:1369:15: error: return type of out-of-line definition of 'player::best_shield' differs from that in the declaration\r\nitem &player::best_shield()\r\n~~~~~~        ^\r\nsrc/player.h:461:14: note: previous declaration is here\r\n        item best_shield();\r\n        ~~~~ ^\r\nsrc/melee.cpp:1400:11: error: non-const lvalue reference to type 'item' cannot bind to a temporary of type 'item'\r\n    item &shield = best_shield();\r\n          ^        ~~~~~~~~~~~~~\r\n````"}}