{"action":"created","comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/88997217","pull_request_review_id":9551416,"id":88997217,"diff_hunk":"@@ -7905,6 +7907,11 @@ bool game::npc_menu( npc &who )\n     amenu.addentry( use_item, true, 'i', _(\"Use item on\") );\n     amenu.addentry( sort_armor, true, 'r', _(\"Sort armor\") );\n     amenu.addentry( attack, true, 'a', _(\"Attack\") );\n+    if( !who.is_friend() ) {\n+        const bool armed = who.is_armed();","path":"src/game.cpp","position":16,"original_position":16,"commit_id":"55b100fb435085787dfd193fd26408e1922c2af9","original_commit_id":"55b100fb435085787dfd193fd26408e1922c2af9","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":"This temp doesn't add any value.","created_at":"2016-11-21T21:54:10Z","updated_at":"2016-11-21T21:54:10Z","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326#discussion_r88997217","pull_request_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326","_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/comments/88997217"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326#discussion_r88997217"},"pull_request":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326"}}},"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326","id":94270140,"html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326.patch","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/19326","number":19326,"state":"open","locked":false,"title":"[RDY] Add ability to steal items from NPC","user":{"login":"patternoia","id":661749,"avatar_url":"https://avatars.githubusercontent.com/u/661749?v=3","gravatar_id":"","url":"https://api.github.com/users/patternoia","html_url":"https://github.com/patternoia","followers_url":"https://api.github.com/users/patternoia/followers","following_url":"https://api.github.com/users/patternoia/following{/other_user}","gists_url":"https://api.github.com/users/patternoia/gists{/gist_id}","starred_url":"https://api.github.com/users/patternoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patternoia/subscriptions","organizations_url":"https://api.github.com/users/patternoia/orgs","repos_url":"https://api.github.com/users/patternoia/repos","events_url":"https://api.github.com/users/patternoia/events{/privacy}","received_events_url":"https://api.github.com/users/patternoia/received_events","type":"User","site_admin":false},"body":"Adds an entry to the NPC interaction menu (invoked by `e` + directional key).\r\nThere are two mechanics - forcefully take a wielded or worn item from NPC, or try to sneakily steal an item from inventory.\r\nFirst check is mainly based on strength stat and could result in you taking an item from NPC by force; trying to take it and failing to do so with an item ending up on the floor; and finally having no luck at all. All these actions make NPC attack you.\r\n\r\nSecond check is dexterity based and could result in you successfully stealing item; failing to do so with NPC paying no attention to this; and failing miserably with NPC attacking you.\r\n\r\nThese checks are for now only for demonstration and not balanced at all.\r\nThey as well include calculations of boni and mali from having your hands free, having them not frostbit or burnt, having hands and feet unencumbered and stats (STR, DEX, PER) check.\r\n\r\n\r\nUPD: Please share your ideas, what do you think should be checked on rolls.","created_at":"2016-11-17T23:02:34Z","updated_at":"2016-11-21T21:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eef146205d6f0f778e675f26f2e61badd00ef97d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326/commits","review_comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326/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/19326/comments","statuses_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/55b100fb435085787dfd193fd26408e1922c2af9","head":{"label":"patternoia:stealing","ref":"stealing","sha":"55b100fb435085787dfd193fd26408e1922c2af9","user":{"login":"patternoia","id":661749,"avatar_url":"https://avatars.githubusercontent.com/u/661749?v=3","gravatar_id":"","url":"https://api.github.com/users/patternoia","html_url":"https://github.com/patternoia","followers_url":"https://api.github.com/users/patternoia/followers","following_url":"https://api.github.com/users/patternoia/following{/other_user}","gists_url":"https://api.github.com/users/patternoia/gists{/gist_id}","starred_url":"https://api.github.com/users/patternoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patternoia/subscriptions","organizations_url":"https://api.github.com/users/patternoia/orgs","repos_url":"https://api.github.com/users/patternoia/repos","events_url":"https://api.github.com/users/patternoia/events{/privacy}","received_events_url":"https://api.github.com/users/patternoia/received_events","type":"User","site_admin":false},"repo":{"id":70487203,"name":"Cataclysm-DDA","full_name":"patternoia/Cataclysm-DDA","owner":{"login":"patternoia","id":661749,"avatar_url":"https://avatars.githubusercontent.com/u/661749?v=3","gravatar_id":"","url":"https://api.github.com/users/patternoia","html_url":"https://github.com/patternoia","followers_url":"https://api.github.com/users/patternoia/followers","following_url":"https://api.github.com/users/patternoia/following{/other_user}","gists_url":"https://api.github.com/users/patternoia/gists{/gist_id}","starred_url":"https://api.github.com/users/patternoia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patternoia/subscriptions","organizations_url":"https://api.github.com/users/patternoia/orgs","repos_url":"https://api.github.com/users/patternoia/repos","events_url":"https://api.github.com/users/patternoia/events{/privacy}","received_events_url":"https://api.github.com/users/patternoia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patternoia/Cataclysm-DDA","description":"Cataclysm - Dark Days Ahead. A fork/variant of Cataclysm Roguelike by Whales.","fork":true,"url":"https://api.github.com/repos/patternoia/Cataclysm-DDA","forks_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/forks","keys_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/teams","hooks_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/hooks","issue_events_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/issues/events{/number}","events_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/events","assignees_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/assignees{/user}","branches_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/branches{/branch}","tags_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/tags","blobs_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/git/refs{/sha}","trees_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/statuses/{sha}","languages_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/languages","stargazers_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/stargazers","contributors_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/contributors","subscribers_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/subscribers","subscription_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/subscription","commits_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/commits{/sha}","git_commits_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/git/commits{/sha}","comments_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/comments{/number}","issue_comment_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/issues/comments{/number}","contents_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/contents/{+path}","compare_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/merges","archive_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/downloads","issues_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/issues{/number}","pulls_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/pulls{/number}","milestones_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/milestones{/number}","notifications_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/labels{/name}","releases_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/releases{/id}","deployments_url":"https://api.github.com/repos/patternoia/Cataclysm-DDA/deployments","created_at":"2016-10-10T12:50:54Z","updated_at":"2016-10-10T12:51:03Z","pushed_at":"2016-11-21T21:26:30Z","git_url":"git://github.com/patternoia/Cataclysm-DDA.git","ssh_url":"git@github.com:patternoia/Cataclysm-DDA.git","clone_url":"https://github.com/patternoia/Cataclysm-DDA.git","svn_url":"https://github.com/patternoia/Cataclysm-DDA","homepage":"http://en.cataclysmdda.com/","size":814058,"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":"74a00f775ae0a972dee0f808c4929aa569b08f27","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-11-21T20:24:10Z","pushed_at":"2016-11-21T21:54:01Z","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":1098269,"stargazers_count":1175,"watchers_count":1175,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":989,"mirror_url":null,"open_issues_count":1008,"forks":989,"open_issues":1008,"watchers":1175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326"},"html":{"href":"https://github.com/CleverRaven/Cataclysm-DDA/pull/19326"},"issue":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/19326"},"comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/19326/comments"},"review_comments":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/19326/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/19326/commits"},"statuses":{"href":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/statuses/55b100fb435085787dfd193fd26408e1922c2af9"}}}}
{"actor":{"display_login":"codemime"}}