{"action":"created","comment":{"url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/comments/59982677","id":59982677,"diff_hunk":"@@ -257,17 +257,24 @@\n \n \tvar/obj/item/organ/limb/affecting = H.get_organ(check_zone(user.zone_sel.selecting))\n \n-\tif(affecting.status == ORGAN_ROBOTIC && user.a_intent != \"harm\")\n-\t\tif(src.remove_fuel(1))\n-\t\t\tplaysound(loc, 'sound/items/Welder.ogg', 50, 1)\n-\t\t\tuser.visible_message(\"<span class='notice'>[user] starts to fix some of the dents on [H]'s [affecting.getDisplayName()].</span>\", \"<span class='notice'>You start fixing some of the dents on [H]'s [affecting.getDisplayName()].</span>\")\n-\t\t\tif(!do_mob(user, H, 50))\treturn\n-\t\t\titem_heal_robotic(H, user, 5, 0)\n+\tif(user.a_intent != \"harm\")\n+\t\tif(affecting.status == ORGAN_ORGANIC && affecting.bloodloss > 0)\n+\t\t\tif(src.remove_fuel(1))\n+\t\t\t\tplaysound(loc, 'sound/items/Welder.ogg', 50, 1)\n+\t\t\t\tuser.visible_message(\"<span class='notice'>[user] starts to close up wounds on [H]'s [affecting.getDisplayName()].</span>\", \"<span class='notice'>You start closing up wounds on [H]'s [affecting.getDisplayName()].</span>\")\n+\t\t\t\tif(!do_mob(user, H, 50))\treturn\n+\t\t\t\tuser.visible_message(\"<span class='notice'>[user] has closed up wounds [H]'s [affecting.getDisplayName()].</span>\", \"<span class='notice'>You closed up wounds on [H]'s [affecting.getDisplayName()].</span>\")\n+\t\t\t\taffecting.heal_damage(bleed=affecting.bloodloss)\n+\t\t\t\taffecting.take_damage(burn=10) //Quite harsh tradeoff\n \t\t\treturn\n-\t\telse\n-\t\t\treturn\n-\telse\n-\t\treturn ..()\n+\t\telse if(affecting.status == ORGAN_ROBOTIC && affecting.get_damage() > 0)","path":"code/game/objects/items/weapons/tools.dm","position":24,"original_position":24,"commit_id":"d16e8d074da5f2828f41610d2d9b5d34b100eff2","original_commit_id":"d16e8d074da5f2828f41610d2d9b5d34b100eff2","user":{"login":"Carbonhell","id":11891037,"avatar_url":"https://avatars.githubusercontent.com/u/11891037?v=3","gravatar_id":"","url":"https://api.github.com/users/Carbonhell","html_url":"https://github.com/Carbonhell","followers_url":"https://api.github.com/users/Carbonhell/followers","following_url":"https://api.github.com/users/Carbonhell/following{/other_user}","gists_url":"https://api.github.com/users/Carbonhell/gists{/gist_id}","starred_url":"https://api.github.com/users/Carbonhell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carbonhell/subscriptions","organizations_url":"https://api.github.com/users/Carbonhell/orgs","repos_url":"https://api.github.com/users/Carbonhell/repos","events_url":"https://api.github.com/users/Carbonhell/events{/privacy}","received_events_url":"https://api.github.com/users/Carbonhell/received_events","type":"User","site_admin":false},"body":"Is get damage the right proc?you only want to fix brute DMG, burn gets fixed by wires","created_at":"2016-04-17T11:45:23Z","updated_at":"2016-04-17T11:45:23Z","html_url":"https://github.com/HippieStationCode/HippieStation13/pull/2156#discussion_r59982677","pull_request_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156","_links":{"self":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/comments/59982677"},"html":{"href":"https://github.com/HippieStationCode/HippieStation13/pull/2156#discussion_r59982677"},"pull_request":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156"}}},"pull_request":{"url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156","id":66227923,"html_url":"https://github.com/HippieStationCode/HippieStation13/pull/2156","diff_url":"https://github.com/HippieStationCode/HippieStation13/pull/2156.diff","patch_url":"https://github.com/HippieStationCode/HippieStation13/pull/2156.patch","issue_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/2156","number":2156,"state":"open","locked":false,"title":"Bleeding overhaul","user":{"login":"Crystalwarrior","id":3470436,"avatar_url":"https://avatars.githubusercontent.com/u/3470436?v=3","gravatar_id":"","url":"https://api.github.com/users/Crystalwarrior","html_url":"https://github.com/Crystalwarrior","followers_url":"https://api.github.com/users/Crystalwarrior/followers","following_url":"https://api.github.com/users/Crystalwarrior/following{/other_user}","gists_url":"https://api.github.com/users/Crystalwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/Crystalwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crystalwarrior/subscriptions","organizations_url":"https://api.github.com/users/Crystalwarrior/orgs","repos_url":"https://api.github.com/users/Crystalwarrior/repos","events_url":"https://api.github.com/users/Crystalwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/Crystalwarrior/received_events","type":"User","site_admin":false},"body":"_for every small feature i make i have to make like 20 fucking overhauls i swear to god what is this_\r\nThis PR overhauls bleeding in terms of it's use as well as the recovery methods.\r\nBefore, bleeding was determined by raw brute variables on all of your limbs. Now it's determined by a special \"bloodloss\" variable, which goes from 0 to 2, that determines amount of units of blood you lose per limb. This means that SHARP weapons are more likely to cause bloodsplatters and bloodloss than BLUNT weapons. I also make use of SHARP_ACCURATE flag for knives and scalpels to make them even more viable for causing bloodloss.\r\n\r\nBleeding chance is determined by this algorithm:\r\n`prob(ITEM.force * max(ITEM.sharpness+1, 1) + LIMB.brute_dam/2)`\r\nwhere prob is probability from 0 to 100, ITEM.sharpness is a variable from 0 to 2 (0 is BLUNT, 1 is SHARP, 2 is SHARP_ACCURATE) and LIMB.brute_dam is the limb's brute damage.\r\nTo put it simply, it checks the item sharpness, item force and affected limb's existing brute damage for the probability. All these factors will increase the chances of causing a blood splatter and bloodloss.\r\nALSO, this PR makes blood splatters a good visual indicator that you have caused your victim to bleed.\r\n\r\nNote that this is not an accurate probability since prior to that there's also probability for bloodifying the item itself:\r\n`if(ITEM.force && prob(25 + (ITEM.force * 2))) //45% on toolboxes (10 force)`\r\n\r\nand here's a fukken changelog copypasta because I'm lazy.\r\n  - experiment: \"Bloodloss has now become a seperate damage variable on organs as opposed to something determined by brute damage! This means that sharp weapons are more likely to cause bleeding than blunt.\"\r\n  - tweak: \"Most knives have been given an \\\"IS_SHARP_ACCURATE\\\" tag, which lets you use these knives to cut food + it has an additional bleeding buff. Scalpel also has this tag, for the record.\"\r\n  - tweak: \"Medical Analyzers interface has been given a slight overhaul. Damage reports are now properly tabulated, bleed variable is now visible on limbs. It determines the amount of blood lost every tick (2 seconds). Max bloodloss for every individual limb is 2.\"\r\n  - tweak: \"Styptic Patches now completely heal bloodloss. Bruise packs remove 1 point of bloodloss.\"\r\n  - tweak: \"Buffed iron reagent to restore 0.6u of blood every tick instead of 0.4u. Nutriment still restores 0.4u. What this means is that if you use iron + eat something you'll restore 1u of blood every tick (2 seconds).\"\r\n  - tweak: \"Most injected reagents and a bunch of other items (like mediguns/bibles) heal a small bit of bloodloss as well.\"\r\n  - tweak: \"IV drips have been sped up slightly to restore 15u of blood instead of 10u every tick\"\r\n  - tweak: \"If your limb has 0 brute damage it will no longer have bloodloss\"\r\n  - tweak: \"Cautery and Welding Tool both can close up bleeding wounds. Completely healing the brute damage on a limb will also remove bloodloss.\"\r\n  - tweak: \"Embedded objects now cause bloodloss on limb instead of being hard-checked by blood code.\"\r\n  - rscadd: \"Surgery freezer now has 2 of each blood type + 3 random bloodtype bloodpacks. Empty bloodpacks are removed because nobody will fuckin donate blood on this server.\"","created_at":"2016-04-12T21:05:03Z","updated_at":"2016-04-17T11:45:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02eba87417dd70e69b8a74cb4b37ae2ddc4532d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156/commits","review_comments_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156/comments","review_comment_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/2156/comments","statuses_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/statuses/d16e8d074da5f2828f41610d2d9b5d34b100eff2","head":{"label":"Crystalwarrior:BleedingOverhaul","ref":"BleedingOverhaul","sha":"d16e8d074da5f2828f41610d2d9b5d34b100eff2","user":{"login":"Crystalwarrior","id":3470436,"avatar_url":"https://avatars.githubusercontent.com/u/3470436?v=3","gravatar_id":"","url":"https://api.github.com/users/Crystalwarrior","html_url":"https://github.com/Crystalwarrior","followers_url":"https://api.github.com/users/Crystalwarrior/followers","following_url":"https://api.github.com/users/Crystalwarrior/following{/other_user}","gists_url":"https://api.github.com/users/Crystalwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/Crystalwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crystalwarrior/subscriptions","organizations_url":"https://api.github.com/users/Crystalwarrior/orgs","repos_url":"https://api.github.com/users/Crystalwarrior/repos","events_url":"https://api.github.com/users/Crystalwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/Crystalwarrior/received_events","type":"User","site_admin":false},"repo":{"id":45267808,"name":"HippieStation13","full_name":"Crystalwarrior/HippieStation13","owner":{"login":"Crystalwarrior","id":3470436,"avatar_url":"https://avatars.githubusercontent.com/u/3470436?v=3","gravatar_id":"","url":"https://api.github.com/users/Crystalwarrior","html_url":"https://github.com/Crystalwarrior","followers_url":"https://api.github.com/users/Crystalwarrior/followers","following_url":"https://api.github.com/users/Crystalwarrior/following{/other_user}","gists_url":"https://api.github.com/users/Crystalwarrior/gists{/gist_id}","starred_url":"https://api.github.com/users/Crystalwarrior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crystalwarrior/subscriptions","organizations_url":"https://api.github.com/users/Crystalwarrior/orgs","repos_url":"https://api.github.com/users/Crystalwarrior/repos","events_url":"https://api.github.com/users/Crystalwarrior/events{/privacy}","received_events_url":"https://api.github.com/users/Crystalwarrior/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Crystalwarrior/HippieStation13","description":"PSA: Please remember to remember our coding standards, specifically all of them. Rule 6 under git is the most important.","fork":true,"url":"https://api.github.com/repos/Crystalwarrior/HippieStation13","forks_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/forks","keys_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/teams","hooks_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/hooks","issue_events_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/issues/events{/number}","events_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/events","assignees_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/assignees{/user}","branches_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/branches{/branch}","tags_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/tags","blobs_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/statuses/{sha}","languages_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/languages","stargazers_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/stargazers","contributors_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/contributors","subscribers_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/subscribers","subscription_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/subscription","commits_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/contents/{+path}","compare_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/merges","archive_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/downloads","issues_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/issues{/number}","pulls_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/pulls{/number}","milestones_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/milestones{/number}","notifications_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/labels{/name}","releases_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/releases{/id}","deployments_url":"https://api.github.com/repos/Crystalwarrior/HippieStation13/deployments","created_at":"2015-10-30T18:00:23Z","updated_at":"2016-04-02T14:22:02Z","pushed_at":"2016-04-15T13:39:42Z","git_url":"git://github.com/Crystalwarrior/HippieStation13.git","ssh_url":"git@github.com:Crystalwarrior/HippieStation13.git","clone_url":"https://github.com/Crystalwarrior/HippieStation13.git","svn_url":"https://github.com/Crystalwarrior/HippieStation13","homepage":"http://www.hippie-station-13.com/forums/viewtopic.php?f=51&t=1120","size":794157,"stargazers_count":0,"watchers_count":0,"language":"DM","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":"HippieStationCode:master","ref":"master","sha":"14a6beefd62d1413cf1b884dee3999b334d0e3c5","user":{"login":"HippieStationCode","id":11670901,"avatar_url":"https://avatars.githubusercontent.com/u/11670901?v=3","gravatar_id":"","url":"https://api.github.com/users/HippieStationCode","html_url":"https://github.com/HippieStationCode","followers_url":"https://api.github.com/users/HippieStationCode/followers","following_url":"https://api.github.com/users/HippieStationCode/following{/other_user}","gists_url":"https://api.github.com/users/HippieStationCode/gists{/gist_id}","starred_url":"https://api.github.com/users/HippieStationCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HippieStationCode/subscriptions","organizations_url":"https://api.github.com/users/HippieStationCode/orgs","repos_url":"https://api.github.com/users/HippieStationCode/repos","events_url":"https://api.github.com/users/HippieStationCode/events{/privacy}","received_events_url":"https://api.github.com/users/HippieStationCode/received_events","type":"Organization","site_admin":false},"repo":{"id":33435422,"name":"HippieStation13","full_name":"HippieStationCode/HippieStation13","owner":{"login":"HippieStationCode","id":11670901,"avatar_url":"https://avatars.githubusercontent.com/u/11670901?v=3","gravatar_id":"","url":"https://api.github.com/users/HippieStationCode","html_url":"https://github.com/HippieStationCode","followers_url":"https://api.github.com/users/HippieStationCode/followers","following_url":"https://api.github.com/users/HippieStationCode/following{/other_user}","gists_url":"https://api.github.com/users/HippieStationCode/gists{/gist_id}","starred_url":"https://api.github.com/users/HippieStationCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HippieStationCode/subscriptions","organizations_url":"https://api.github.com/users/HippieStationCode/orgs","repos_url":"https://api.github.com/users/HippieStationCode/repos","events_url":"https://api.github.com/users/HippieStationCode/events{/privacy}","received_events_url":"https://api.github.com/users/HippieStationCode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HippieStationCode/HippieStation13","description":"PSA: Please remember to remember our coding standards, specifically all of them. Rule 6 under git is the most important.","fork":false,"url":"https://api.github.com/repos/HippieStationCode/HippieStation13","forks_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/forks","keys_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/teams","hooks_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/hooks","issue_events_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/events{/number}","events_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/events","assignees_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/assignees{/user}","branches_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/branches{/branch}","tags_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/tags","blobs_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/statuses/{sha}","languages_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/languages","stargazers_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/stargazers","contributors_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/contributors","subscribers_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/subscribers","subscription_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/subscription","commits_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/contents/{+path}","compare_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/merges","archive_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/downloads","issues_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues{/number}","pulls_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls{/number}","milestones_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/milestones{/number}","notifications_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/labels{/name}","releases_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/releases{/id}","deployments_url":"https://api.github.com/repos/HippieStationCode/HippieStation13/deployments","created_at":"2015-04-05T08:46:33Z","updated_at":"2016-04-12T14:47:04Z","pushed_at":"2016-04-17T11:42:10Z","git_url":"git://github.com/HippieStationCode/HippieStation13.git","ssh_url":"git@github.com:HippieStationCode/HippieStation13.git","clone_url":"https://github.com/HippieStationCode/HippieStation13.git","svn_url":"https://github.com/HippieStationCode/HippieStation13","homepage":"http://www.hippiestation.com/","size":824945,"stargazers_count":16,"watchers_count":16,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":52,"forks":84,"open_issues":52,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156"},"html":{"href":"https://github.com/HippieStationCode/HippieStation13/pull/2156"},"issue":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/2156"},"comments":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/issues/2156/comments"},"review_comments":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156/comments"},"review_comment":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/pulls/2156/commits"},"statuses":{"href":"https://api.github.com/repos/HippieStationCode/HippieStation13/statuses/d16e8d074da5f2828f41610d2d9b5d34b100eff2"}}}}