{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/188109044","pull_request_review_id":120022624,"id":188109044,"diff_hunk":"@@ -0,0 +1,142 @@\n+/*\n+Holds the proc for backstabbing.\n+\n+usage:\n+\n+/obj/item/weapon/attack(mob/living/target, mob/user, var/target_zone)\n+\tbackstab(target, user, 60, BRUTE, DAM_SHARP, target_zone)\n+\t..()\n+May also be used as:\n+\n+/obj/item/weapon/attack(mob/living/target, mob/user, var/target_zone)\n+\t..()\n+\tif(backstab(target, user, 60, BRUTE, DAM_SHARP, target_zone))\n+\t\t[insert code here]\n+---------------\n+The proc itself:\n+\n+backstab(mob/living/target, mob/user, damage, damage_type, damage_flags, target_zone, location_check )\n+\n+Expected inputs per arg:\n+target: Mob\n+user: mob/user\n+damage: Num. Defaults to 30 if not set. Can be zero, if you just want the backstab check itself. This is the flat damage done to SIMPLE MOBS. Humans recieve organ damage instead.\n+damtype: Expects a damage type macro. Can accept the damage strings, but it is recommended you use the macro instead.\n+target_zone: target zone intent.\n+location_check: bool. allows facestabs if set to false, skipping the check for both mob's locations. Automatically set to false if the target is lying down -AND- lying face down.\n+---------------\n+Proc returns a boolean if successful.\n+*/\n+\n+/obj/item/weapon/proc/backstab(var/mob/living/target, mob/user, var/damage, var/damage_type, var/damage_flags, var/target_zone, var/location_check)\n+\n+\t//debug block\n+\tvar/valid_stab = TRUE\n+\tif( !(get_turf(user) == get_step(target, turn( target.dir, 180))) )\n+\t\tvalid_stab = FALSE\n+\tworld << \"location check: [location_check ? \"true\" : \"false\"].<br>\\","path":"code/game/objects/items/weapons/special_attacks/backstab.dm","position":37,"original_position":37,"commit_id":"fe5776933bd1fd8e40ce539ec4886becd0313cf5","original_commit_id":"fe5776933bd1fd8e40ce539ec4886becd0313cf5","user":{"login":"PsiOmegaDelta","id":496895,"avatar_url":"https://avatars2.githubusercontent.com/u/496895?v=4","gravatar_id":"","url":"https://api.github.com/users/PsiOmegaDelta","html_url":"https://github.com/PsiOmegaDelta","followers_url":"https://api.github.com/users/PsiOmegaDelta/followers","following_url":"https://api.github.com/users/PsiOmegaDelta/following{/other_user}","gists_url":"https://api.github.com/users/PsiOmegaDelta/gists{/gist_id}","starred_url":"https://api.github.com/users/PsiOmegaDelta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsiOmegaDelta/subscriptions","organizations_url":"https://api.github.com/users/PsiOmegaDelta/orgs","repos_url":"https://api.github.com/users/PsiOmegaDelta/repos","events_url":"https://api.github.com/users/PsiOmegaDelta/events{/privacy}","received_events_url":"https://api.github.com/users/PsiOmegaDelta/received_events","type":"User","site_admin":false},"body":"Debug output. No one wants that.","created_at":"2018-05-14T21:48:09Z","updated_at":"2018-05-14T21:48:18Z","html_url":"https://github.com/Baystation12/Baystation12/pull/21485#discussion_r188109044","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/188109044"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/21485#discussion_r188109044"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485","id":187926487,"html_url":"https://github.com/Baystation12/Baystation12/pull/21485","diff_url":"https://github.com/Baystation12/Baystation12/pull/21485.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/21485.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/21485","number":21485,"state":"open","locked":false,"title":"[Ready] Adds backstabbing. Butterfly knives are the only items that use it so far.","user":{"login":"chaoko99","id":4706052,"avatar_url":"https://avatars0.githubusercontent.com/u/4706052?v=4","gravatar_id":"","url":"https://api.github.com/users/chaoko99","html_url":"https://github.com/chaoko99","followers_url":"https://api.github.com/users/chaoko99/followers","following_url":"https://api.github.com/users/chaoko99/following{/other_user}","gists_url":"https://api.github.com/users/chaoko99/gists{/gist_id}","starred_url":"https://api.github.com/users/chaoko99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaoko99/subscriptions","organizations_url":"https://api.github.com/users/chaoko99/orgs","repos_url":"https://api.github.com/users/chaoko99/repos","events_url":"https://api.github.com/users/chaoko99/events{/privacy}","received_events_url":"https://api.github.com/users/chaoko99/received_events","type":"User","site_admin":false},"body":"Proc is fully reusable, and quite documented!\r\n🆑 \r\nrscadd: Adds a fully reusable backstabbing mechanic, used by butterfly knives and switchblades.\r\n/ 🆑 \r\nWhy: \r\n[The reason, summarized](https://www.youtube.com/watch?v=g1u5MawzSNU)\r\n\r\nIf you want an actual reason... I dunno, it felt like it could be neat.\r\n\r\n- [x]  attack doesn't seem to actually see the backstab itself. Hm.\r\n\r\n60 brute is an arbitrary example.","created_at":"2018-05-14T19:26:44Z","updated_at":"2018-05-14T21:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc5632be0717744947c0da4f3d3982c9777e59c0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":751550282,"url":"https://api.github.com/repos/Baystation12/Baystation12/labels/Work%20In%20Progress","name":"Work In Progress","color":"e99695","default":false},{"id":159907993,"url":"https://api.github.com/repos/Baystation12/Baystation12/labels/feature","name":"feature","color":"4B692F","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/21485/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/fe5776933bd1fd8e40ce539ec4886becd0313cf5","head":{"label":"chaoko99:wazgulisgay","ref":"wazgulisgay","sha":"fe5776933bd1fd8e40ce539ec4886becd0313cf5","user":{"login":"chaoko99","id":4706052,"avatar_url":"https://avatars0.githubusercontent.com/u/4706052?v=4","gravatar_id":"","url":"https://api.github.com/users/chaoko99","html_url":"https://github.com/chaoko99","followers_url":"https://api.github.com/users/chaoko99/followers","following_url":"https://api.github.com/users/chaoko99/following{/other_user}","gists_url":"https://api.github.com/users/chaoko99/gists{/gist_id}","starred_url":"https://api.github.com/users/chaoko99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaoko99/subscriptions","organizations_url":"https://api.github.com/users/chaoko99/orgs","repos_url":"https://api.github.com/users/chaoko99/repos","events_url":"https://api.github.com/users/chaoko99/events{/privacy}","received_events_url":"https://api.github.com/users/chaoko99/received_events","type":"User","site_admin":false},"repo":{"id":84681103,"name":"Baystation12","full_name":"chaoko99/Baystation12","owner":{"login":"chaoko99","id":4706052,"avatar_url":"https://avatars0.githubusercontent.com/u/4706052?v=4","gravatar_id":"","url":"https://api.github.com/users/chaoko99","html_url":"https://github.com/chaoko99","followers_url":"https://api.github.com/users/chaoko99/followers","following_url":"https://api.github.com/users/chaoko99/following{/other_user}","gists_url":"https://api.github.com/users/chaoko99/gists{/gist_id}","starred_url":"https://api.github.com/users/chaoko99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaoko99/subscriptions","organizations_url":"https://api.github.com/users/chaoko99/orgs","repos_url":"https://api.github.com/users/chaoko99/repos","events_url":"https://api.github.com/users/chaoko99/events{/privacy}","received_events_url":"https://api.github.com/users/chaoko99/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chaoko99/Baystation12","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/chaoko99/Baystation12","forks_url":"https://api.github.com/repos/chaoko99/Baystation12/forks","keys_url":"https://api.github.com/repos/chaoko99/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chaoko99/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chaoko99/Baystation12/teams","hooks_url":"https://api.github.com/repos/chaoko99/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/chaoko99/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/chaoko99/Baystation12/events","assignees_url":"https://api.github.com/repos/chaoko99/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/chaoko99/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/chaoko99/Baystation12/tags","blobs_url":"https://api.github.com/repos/chaoko99/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chaoko99/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chaoko99/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/chaoko99/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chaoko99/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/chaoko99/Baystation12/languages","stargazers_url":"https://api.github.com/repos/chaoko99/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/chaoko99/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/chaoko99/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/chaoko99/Baystation12/subscription","commits_url":"https://api.github.com/repos/chaoko99/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/chaoko99/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/chaoko99/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/chaoko99/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/chaoko99/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/chaoko99/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chaoko99/Baystation12/merges","archive_url":"https://api.github.com/repos/chaoko99/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chaoko99/Baystation12/downloads","issues_url":"https://api.github.com/repos/chaoko99/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/chaoko99/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/chaoko99/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/chaoko99/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chaoko99/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/chaoko99/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/chaoko99/Baystation12/deployments","created_at":"2017-03-11T21:30:14Z","updated_at":"2018-05-11T18:14:52Z","pushed_at":"2018-05-14T21:23:16Z","git_url":"git://github.com/chaoko99/Baystation12.git","ssh_url":"git@github.com:chaoko99/Baystation12.git","clone_url":"https://github.com/chaoko99/Baystation12.git","svn_url":"https://github.com/chaoko99/Baystation12","homepage":"http://baystation12.net/","size":805472,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"53dc1e6120d0ecfbcbfaf7bfb9215f206d03bf3b","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars0.githubusercontent.com/u/1174322?v=4","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"repo":{"id":2715933,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars0.githubusercontent.com/u/1174322?v=4","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Baystation12/Baystation12","description":"The code for Baystation12's branch of SS13","fork":false,"url":"https://api.github.com/repos/Baystation12/Baystation12","forks_url":"https://api.github.com/repos/Baystation12/Baystation12/forks","keys_url":"https://api.github.com/repos/Baystation12/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Baystation12/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Baystation12/Baystation12/teams","hooks_url":"https://api.github.com/repos/Baystation12/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Baystation12/Baystation12/events","assignees_url":"https://api.github.com/repos/Baystation12/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Baystation12/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Baystation12/Baystation12/tags","blobs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Baystation12/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Baystation12/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Baystation12/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Baystation12/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Baystation12/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Baystation12/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Baystation12/Baystation12/subscription","commits_url":"https://api.github.com/repos/Baystation12/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Baystation12/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Baystation12/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Baystation12/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Baystation12/Baystation12/merges","archive_url":"https://api.github.com/repos/Baystation12/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Baystation12/Baystation12/downloads","issues_url":"https://api.github.com/repos/Baystation12/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Baystation12/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Baystation12/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Baystation12/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Baystation12/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/Baystation12/Baystation12/deployments","created_at":"2011-11-05T16:12:41Z","updated_at":"2018-05-14T20:30:17Z","pushed_at":"2018-05-14T21:23:18Z","git_url":"git://github.com/Baystation12/Baystation12.git","ssh_url":"git@github.com:Baystation12/Baystation12.git","clone_url":"https://github.com/Baystation12/Baystation12.git","svn_url":"https://github.com/Baystation12/Baystation12","homepage":"http://baystation12.net/","size":792322,"stargazers_count":280,"watchers_count":280,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":980,"mirror_url":null,"archived":false,"open_issues_count":1792,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":980,"open_issues":1792,"watchers":280,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/21485"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/21485"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/21485/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/21485/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/fe5776933bd1fd8e40ce539ec4886becd0313cf5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"PsiOmegaDelta"}}