{"action":"created","comment":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/35781866","id":35781866,"diff_hunk":"@@ -0,0 +1,52 @@\n+/obj/item/projectile/severing\n+\tname = \"bolt of severing\"\n+\ticon_state = \"red_laser\"\n+\tdamage = 0\n+\tdamage_type = BRUTE\n+\tnodamage = 1\n+\tflag = \"bullet\"\n+\tvar/sever = 1 //0 for sectumsempra(cutting, can cause bleeding), 1 for diffindo(hacks off arms/legs, acts like 0 on nonhumans)\n+\tvar/obj/item/weapon/gun/energy/severwand/SW = null\n+\n+/obj/item/projectile/severing/OnFired()\n+\tSW = shot_from\n+\tsever = SW.sever\n+\tif(sever)\n+\t\tname = \"bolt of severing\"\n+\t\tcolor = \"#FF0000\"\n+\telse\n+\t\tname = \"bolt of slashing\"\n+\t\tcolor = \"#AA2200\"\n+\n+/obj/item/projectile/severing/on_hit(var/atom/target, var/blocked = 0)\n+\tif(isliving(target))\n+\t\tvar/mob/living/L = target\n+\t\tif(L.flags & INVULNERABLE)\n+\t\t\treturn 0\n+\t\tif(sever)\n+\t\t\tif(prob(23))\n+\t\t\t\treturn 0\n+\t\t\tif(ishuman(L))\n+\t\t\t\tvar/mob/living/carbon/human/H = L\n+\t\t\t\tvar/datum/organ/external/O = null\n+\t\t\t\tswitch(def_zone)\n+\t\t\t\t\tif(\"head\")\n+\t\t\t\t\t\tO = H.organs_by_name[(pick(\"l_arm\",\"r_arm\",\"l_hand\",\"r_hand\"))]\n+\t\t\t\t\tif(\"chest\")\n+\t\t\t\t\t\tO = H.organs_by_name[(pick(\"l_arm\",\"r_arm\",\"l_hand\",\"r_hand\",\"l_leg\",\"r_leg\",\"l_foot\",\"r_foot\"))]\n+\t\t\t\t\tif(\"groin\")\n+\t\t\t\t\t\tO = H.organs_by_name[(pick(\"l_leg\",\"r_leg\",\"l_foot\",\"r_foot\"))]\n+\t\t\t\t\telse\n+\t\t\t\t\t\tO = H.get_organ(def_zone)\n+\t\t\t\tif(!(O.status & ORGAN_DESTROYED))\n+\t\t\t\t\tO.droplimb(1,1,1)\n+\t\t\t\t\tplaysound(H.loc, 'sound/weapons/bloodyslice.ogg', 65, 0)\n+\t\t\t\telse\n+\t\t\t\t\tH << \"<span class='notice'>You count yourself lucky as the bolt zips past where your [O] should be..</span>\"\n+\t\t\telse\n+\t\t\t\tL.adjustBruteLoss(20)\n+\t\t\t\tplaysound(L.loc, 'sound/weapons/bloodyslice.ogg', 50, 0)\n+\t\telse\n+\t\t\tL.adjustBruteLoss(6)\n+\t\t\tplaysound(L.loc, 'sound/weapons/bladeslice.ogg', 50, 0)\n+\treturn 1","path":"code/modules/projectiles/projectile/severing.dm","position":52,"original_position":52,"commit_id":"5c3f2514c7cc794fbaaff6226cce8e522fbc3d85","original_commit_id":"5c3f2514c7cc794fbaaff6226cce8e522fbc3d85","user":{"login":"wild-billy","id":6355724,"avatar_url":"https://avatars.githubusercontent.com/u/6355724?v=3","gravatar_id":"","url":"https://api.github.com/users/wild-billy","html_url":"https://github.com/wild-billy","followers_url":"https://api.github.com/users/wild-billy/followers","following_url":"https://api.github.com/users/wild-billy/following{/other_user}","gists_url":"https://api.github.com/users/wild-billy/gists{/gist_id}","starred_url":"https://api.github.com/users/wild-billy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wild-billy/subscriptions","organizations_url":"https://api.github.com/users/wild-billy/orgs","repos_url":"https://api.github.com/users/wild-billy/repos","events_url":"https://api.github.com/users/wild-billy/events{/privacy}","received_events_url":"https://api.github.com/users/wild-billy/received_events","type":"User","site_admin":false},"body":"The above proc could be cleaner:\r\n```dm\r\n/obj/item/projectile/severing/on_hit(var/atom/target,var/blocked)\r\n    if(!isliving(target)) return 0\r\n    var/mob/living/L = target\r\n    if(L.flags & INVULNERABLE) return 0\r\n    if(sever) //Diffindo: severs limbs\r\n        if(prob(23)) return 0 //Diffindo has 23% chance to miss\r\n        if(ishuman(L)) //Limb removal only implemented for humans\r\n            var/mob/living/carbon/human/H = L\r\n            var/datum/organ/external/O = null\r\n            switch(def_zone) //Select target limb, semi-randomly if player isn't aiming at one\r\n                if(\"head\")  O = H.organs_by_name[pick(\"l_arm\",\"r_arm\",\"l_hand\",\"r_hand\")]\r\n                if(\"chest\") O = H.organs_by_name[pick(\"l_arm\",\"r_arm\",\"l_hand\",\"r_hand\",\"l_leg\",\"r_leg\",\"l_foot\",\"r_foot\")]\r\n                if(\"groin\") O = H.organs_by_name[pick(\"l_leg\",\"r_leg\",\"l_foot\",\"r_foot\")]\r\n                else        O = H.get_organ(def_zone) //They're targeting a specific limb, use it\r\n            if(!(O.status & ORGAN_DESTROYED)) O.droplimb(1,1,1) //Slice it off\r\n            else H << \"<span class='notice'>You count yourself lucky as the bolt zips past where your [O] should be..</span>\"\r\n        else L.adjustBruteLoss(20) //Not a human: just damage them\r\n    else L.adjustBruteLoss(6) //Sectumsempra: plain damage\r\n    playsound(get_turf(L), 'sound/weapons/bladeslice.ogg', 50, 0)\r\n    return 1 \r\n```","created_at":"2015-07-29T16:44:51Z","updated_at":"2015-07-29T16:44:51Z","html_url":"https://github.com/d3athrow/vgstation13/pull/5431#discussion_r35781866","pull_request_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431","_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/35781866"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/5431#discussion_r35781866"},"pull_request":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431"}}},"pull_request":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431","id":40315853,"html_url":"https://github.com/d3athrow/vgstation13/pull/5431","diff_url":"https://github.com/d3athrow/vgstation13/pull/5431.diff","patch_url":"https://github.com/d3athrow/vgstation13/pull/5431.patch","issue_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/5431","number":5431,"state":"open","locked":false,"title":"goodbye ei nath","user":{"login":"VelardAmakar","id":3201659,"avatar_url":"https://avatars.githubusercontent.com/u/3201659?v=3","gravatar_id":"","url":"https://api.github.com/users/VelardAmakar","html_url":"https://github.com/VelardAmakar","followers_url":"https://api.github.com/users/VelardAmakar/followers","following_url":"https://api.github.com/users/VelardAmakar/following{/other_user}","gists_url":"https://api.github.com/users/VelardAmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/VelardAmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VelardAmakar/subscriptions","organizations_url":"https://api.github.com/users/VelardAmakar/orgs","repos_url":"https://api.github.com/users/VelardAmakar/repos","events_url":"https://api.github.com/users/VelardAmakar/events{/privacy}","received_events_url":"https://api.github.com/users/VelardAmakar/received_events","type":"User","site_admin":false},"body":"Wand of Severing\r\nHas two modes, Diffindo, which removes arms/hands/legs/feet at high cost, and Sectumsempra, which causes light damage at low cost.\r\n\r\nhttp://gfycat.com/ChiefGlisteningGermanwirehairedpointer\r\n\r\nif you give this a controversial tag i don't know what you're doing with yourself\r\nei nath is a shit spell and needs to go\r\nthis is my last pr","created_at":"2015-07-19T21:59:37Z","updated_at":"2015-07-29T16:44:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d0e30a37f71cf3f345b7c25e61d1ce6fc18530c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431/commits","review_comments_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431/comments","review_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/5431/comments","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/5c3f2514c7cc794fbaaff6226cce8e522fbc3d85","head":{"label":"VelardAmakar:einathiskill","ref":"einathiskill","sha":"5c3f2514c7cc794fbaaff6226cce8e522fbc3d85","user":{"login":"VelardAmakar","id":3201659,"avatar_url":"https://avatars.githubusercontent.com/u/3201659?v=3","gravatar_id":"","url":"https://api.github.com/users/VelardAmakar","html_url":"https://github.com/VelardAmakar","followers_url":"https://api.github.com/users/VelardAmakar/followers","following_url":"https://api.github.com/users/VelardAmakar/following{/other_user}","gists_url":"https://api.github.com/users/VelardAmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/VelardAmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VelardAmakar/subscriptions","organizations_url":"https://api.github.com/users/VelardAmakar/orgs","repos_url":"https://api.github.com/users/VelardAmakar/repos","events_url":"https://api.github.com/users/VelardAmakar/events{/privacy}","received_events_url":"https://api.github.com/users/VelardAmakar/received_events","type":"User","site_admin":false},"repo":{"id":17959814,"name":"vgstation13","full_name":"VelardAmakar/vgstation13","owner":{"login":"VelardAmakar","id":3201659,"avatar_url":"https://avatars.githubusercontent.com/u/3201659?v=3","gravatar_id":"","url":"https://api.github.com/users/VelardAmakar","html_url":"https://github.com/VelardAmakar","followers_url":"https://api.github.com/users/VelardAmakar/followers","following_url":"https://api.github.com/users/VelardAmakar/following{/other_user}","gists_url":"https://api.github.com/users/VelardAmakar/gists{/gist_id}","starred_url":"https://api.github.com/users/VelardAmakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VelardAmakar/subscriptions","organizations_url":"https://api.github.com/users/VelardAmakar/orgs","repos_url":"https://api.github.com/users/VelardAmakar/repos","events_url":"https://api.github.com/users/VelardAmakar/events{/privacy}","received_events_url":"https://api.github.com/users/VelardAmakar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VelardAmakar/vgstation13","description":"This is the vgstation's fork of baystation12's code.","fork":true,"url":"https://api.github.com/repos/VelardAmakar/vgstation13","forks_url":"https://api.github.com/repos/VelardAmakar/vgstation13/forks","keys_url":"https://api.github.com/repos/VelardAmakar/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VelardAmakar/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VelardAmakar/vgstation13/teams","hooks_url":"https://api.github.com/repos/VelardAmakar/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/VelardAmakar/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/VelardAmakar/vgstation13/events","assignees_url":"https://api.github.com/repos/VelardAmakar/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/VelardAmakar/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/VelardAmakar/vgstation13/tags","blobs_url":"https://api.github.com/repos/VelardAmakar/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VelardAmakar/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VelardAmakar/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/VelardAmakar/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VelardAmakar/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/VelardAmakar/vgstation13/languages","stargazers_url":"https://api.github.com/repos/VelardAmakar/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/VelardAmakar/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/VelardAmakar/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/VelardAmakar/vgstation13/subscription","commits_url":"https://api.github.com/repos/VelardAmakar/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/VelardAmakar/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/VelardAmakar/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/VelardAmakar/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/VelardAmakar/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/VelardAmakar/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VelardAmakar/vgstation13/merges","archive_url":"https://api.github.com/repos/VelardAmakar/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VelardAmakar/vgstation13/downloads","issues_url":"https://api.github.com/repos/VelardAmakar/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/VelardAmakar/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/VelardAmakar/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/VelardAmakar/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VelardAmakar/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/VelardAmakar/vgstation13/releases{/id}","created_at":"2014-03-20T21:53:51Z","updated_at":"2014-06-03T14:09:13Z","pushed_at":"2015-07-19T21:50:04Z","git_url":"git://github.com/VelardAmakar/vgstation13.git","ssh_url":"git@github.com:VelardAmakar/vgstation13.git","clone_url":"https://github.com/VelardAmakar/vgstation13.git","svn_url":"https://github.com/VelardAmakar/vgstation13","homepage":"","size":847694,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"Bleeding-Edge"}},"base":{"label":"d3athrow:Bleeding-Edge","ref":"Bleeding-Edge","sha":"f545aed7101293a234206be8c20a7781756f2ad4","user":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"repo":{"id":10441188,"name":"vgstation13","full_name":"d3athrow/vgstation13","owner":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d3athrow/vgstation13","description":"This is the vgstation's fork of baystation12's code.","fork":true,"url":"https://api.github.com/repos/d3athrow/vgstation13","forks_url":"https://api.github.com/repos/d3athrow/vgstation13/forks","keys_url":"https://api.github.com/repos/d3athrow/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3athrow/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3athrow/vgstation13/teams","hooks_url":"https://api.github.com/repos/d3athrow/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/d3athrow/vgstation13/events","assignees_url":"https://api.github.com/repos/d3athrow/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/d3athrow/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/d3athrow/vgstation13/tags","blobs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3athrow/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3athrow/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/d3athrow/vgstation13/languages","stargazers_url":"https://api.github.com/repos/d3athrow/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/d3athrow/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/d3athrow/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/d3athrow/vgstation13/subscription","commits_url":"https://api.github.com/repos/d3athrow/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3athrow/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3athrow/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/d3athrow/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3athrow/vgstation13/merges","archive_url":"https://api.github.com/repos/d3athrow/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3athrow/vgstation13/downloads","issues_url":"https://api.github.com/repos/d3athrow/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/d3athrow/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/d3athrow/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3athrow/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/d3athrow/vgstation13/releases{/id}","created_at":"2013-06-02T19:39:54Z","updated_at":"2015-07-23T14:33:42Z","pushed_at":"2015-07-29T15:43:34Z","git_url":"git://github.com/d3athrow/vgstation13.git","ssh_url":"git@github.com:d3athrow/vgstation13.git","clone_url":"https://github.com/d3athrow/vgstation13.git","svn_url":"https://github.com/d3athrow/vgstation13","homepage":"","size":1117337,"stargazers_count":64,"watchers_count":64,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":778,"forks":178,"open_issues":778,"watchers":64,"default_branch":"Bleeding-Edge"}},"_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/5431"},"issue":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/5431"},"comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/5431/comments"},"review_comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431/comments"},"review_comment":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/5431/commits"},"statuses":{"href":"https://api.github.com/repos/d3athrow/vgstation13/statuses/5c3f2514c7cc794fbaaff6226cce8e522fbc3d85"}}}}