{"action":"created","comment":{"url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/comments/25619621","id":25619621,"diff_hunk":"@@ -39,3 +39,174 @@ Space for all Urist-done, non-pill medical items. Please keep it tidy, as usual.\n \t\tnew /obj/item/weapon/reagent_containers/syringe/antitoxin( src )\n \t\tnew /obj/item/device/healthanalyzer( src )\n \t\treturn\n+\n+//Rags from torn clothes, a quick and, literally, dirty way to stop the bleeding... eventually.\n+\n+/obj/item/weapon/clothesrag\n+\tname = \"rag\"\n+\tdesc = \"The sad remains of a piece of clothing. Could be used to press wounds to stop them from bleeding, but it might take some time and is of dubious cleanliness.\"\n+\tw_class = 1\n+\ticon = 'icons/obj/toy.dmi'\n+\ticon_state = \"rag\"\n+\tvar/bloodvolume = 0 //how much blood has the rag soaked up\n+\tvar/bloodcapacity = 5 //how many times the rag can soak up blood\n+\tvar/soaked = 0 //if the rag has reached its capacity\n+\n+/obj/item/weapon/clothesrag/proc/checkvolume()\n+\tif(src.bloodvolume >= src.bloodcapacity)\n+\t\tsrc.soaked = 1\n+\telse\n+\t\tsrc.soaked = 0\n+\tif(soaked)\n+\t\tusr << \"The rag has reached its capacity!\"\n+\t\tsrc.name = \"bloody rag\"\n+\t\tsrc.desc = \"The sad remains of a piece of clothing. It has soaked up too much blood to be useful for stopping bleeding, better wash it!\"\n+\t\ticon_state = \"rag\"\n+\telse\n+\t\tsrc.name = \"rag\"\n+\t\tsrc.desc = \"The sad remains of a piece of clothing. Could be used to press wounds to stop them from bleeding, but it might take some time and is of dubious cleanliness.\"\n+\t\ticon_state = \"rag\"\n+\n+/obj/item/weapon/clothesrag/clean_blood()\n+\t..()\n+\tsrc.bloodvolume = 0\n+\tsrc.checkvolume()\n+\n+/obj/item/weapon/clothesrag/attack(mob/living/carbon/M as mob, mob/user as mob) //copypasta ahoy!\n+\n+\tif(soaked)\n+\t\tuser << \"<span class='warning'> \\The [src] is too bloody!</span>\"\n+\t\treturn 1\n+\n+\tif (!istype(M))\n+\t\tuser << \"<span class='warning'> \\The [src] cannot be applied to [M]!</span>\"\n+\t\treturn 1\n+\n+\tif ( ! (istype(user, /mob/living/carbon/human) || \\\n+\t\t\tistype(user, /mob/living/silicon) || \\\n+\t\t\tistype(user, /mob/living/carbon/monkey)) )\n+\t\tuser << \"<span class='warning'> You don't have the dexterity to do this!</span>\"\n+\t\treturn 1\n+\n+\tif (istype(M, /mob/living/carbon/human))\n+\t\tvar/mob/living/carbon/human/H = M\n+\t\tvar/datum/organ/external/affecting = H.get_organ(user.zone_sel.selecting)\n+\n+\t\tif(affecting.display_name == \"head\")\n+\t\t\tif(H.head && istype(H.head,/obj/item/clothing/head/helmet/space))\n+\t\t\t\tuser << \"<span class='warning'> You can't apply [src] through [H.head]!</span>\"\n+\t\t\t\treturn 1\n+\t\telse\n+\t\t\tif(H.wear_suit && istype(H.wear_suit,/obj/item/clothing/suit/space))\n+\t\t\t\tuser << \"<span class='warning'> You can't apply [src] through [H.wear_suit]!</span>\"\n+\t\t\t\treturn 1\n+\n+\t\tif(affecting.status & ORGAN_ROBOT)\n+\t\t\tuser << \"<span class='warning'> This isn't useful at all on a robotic limb..</span>\"\n+\t\t\treturn 1\n+\n+\t\tH.UpdateDamageIcon()\n+\n+\t\tif(affecting.open == 0)\n+\t\t\tif(!affecting.bandage())","path":"code/modules/urist/items/uristmed.dm","position":73,"original_position":73,"commit_id":"405d8603fabe94aff661a2bf4c08faf697249a59","original_commit_id":"405d8603fabe94aff661a2bf4c08faf697249a59","user":{"login":"comma","id":1300258,"avatar_url":"https://avatars.githubusercontent.com/u/1300258?v=3","gravatar_id":"","url":"https://api.github.com/users/comma","html_url":"https://github.com/comma","followers_url":"https://api.github.com/users/comma/followers","following_url":"https://api.github.com/users/comma/following{/other_user}","gists_url":"https://api.github.com/users/comma/gists{/gist_id}","starred_url":"https://api.github.com/users/comma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comma/subscriptions","organizations_url":"https://api.github.com/users/comma/orgs","repos_url":"https://api.github.com/users/comma/repos","events_url":"https://api.github.com/users/comma/events{/privacy}","received_events_url":"https://api.github.com/users/comma/received_events","type":"User","site_admin":false},"body":"Wounds are getting bandaged at this point, so prob check down the line does nothing.","created_at":"2015-03-02T17:49:33Z","updated_at":"2015-03-02T17:49:33Z","html_url":"https://github.com/UristMcStation/UristMcStation/pull/207#discussion_r25619621","pull_request_url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/comments/25619621"},"html":{"href":"https://github.com/UristMcStation/UristMcStation/pull/207#discussion_r25619621"},"pull_request":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207","id":29851730,"html_url":"https://github.com/UristMcStation/UristMcStation/pull/207","diff_url":"https://github.com/UristMcStation/UristMcStation/pull/207.diff","patch_url":"https://github.com/UristMcStation/UristMcStation/pull/207.patch","issue_url":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/207","number":207,"state":"open","locked":false,"title":"[DNM] Rags: Ghetto Bandages","user":{"login":"scrdest","id":4363639,"avatar_url":"https://avatars.githubusercontent.com/u/4363639?v=3","gravatar_id":"","url":"https://api.github.com/users/scrdest","html_url":"https://github.com/scrdest","followers_url":"https://api.github.com/users/scrdest/followers","following_url":"https://api.github.com/users/scrdest/following{/other_user}","gists_url":"https://api.github.com/users/scrdest/gists{/gist_id}","starred_url":"https://api.github.com/users/scrdest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrdest/subscriptions","organizations_url":"https://api.github.com/users/scrdest/orgs","repos_url":"https://api.github.com/users/scrdest/repos","events_url":"https://api.github.com/users/scrdest/events{/privacy}","received_events_url":"https://api.github.com/users/scrdest/received_events","type":"User","site_admin":false},"body":"That's right, something even shittier at keeping people alive than bandages proper, but still better than bleeding to death of a deep papercut. The idea, of course, is after yesterday's train round.\r\n\r\nRags use the damp rag sprite for now and are made by ripping apart suit or jumpsuit layer clothes for two or one rag, respectively, with checks for /space/ /wizrobe/ and /armor/ subtypes of suits to prevent breaking those; it could probably be done with something more elegant like vars or flags, but it would also mean shitting my code all over the branch.\r\n\r\nTearing clothes apart is not immediate; it takes a short while, but you may move during that, and requires the clothing to be held and NOT worn, so you cannot accidentally destroy all your clothes and you have a chance of disarming someone who stole and tries to destroy your clothes.\r\n\r\nUnlike bandages, rags can be used multiple times, but they only stop the bleeding, only at a 20% chance (lower than self-applied splints, which are a pain already), slightly raise the wound's germ level and need washing. After being applied five times (so, statistically after stopping one wound) they become soaked with blood, requiring to be washed in a sink to be usable again. The icon stays the same for now, but I'll get some spritework for that later.\r\n\r\nThe PR is working as of right now, but it's working *TOO* well; I need an adult here, because the bandaging system is so arcane that it involves changing in pentagrams written in a newborn's blood to compile it - somehow, applying the rag bandages the organ even when I didn't tell it to, via some kind of weird cross-checking, so I hope @Zuhayr (because he checks up on us) or someone else who groks it can help me figure it out.","created_at":"2015-02-23T22:21:18Z","updated_at":"2015-03-02T17:49:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"672357b1f00f9a91e2cb642fe1e628452f50be33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207/commits","review_comments_url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207/comments","review_comment_url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/207/comments","statuses_url":"https://api.github.com/repos/UristMcStation/UristMcStation/statuses/405d8603fabe94aff661a2bf4c08faf697249a59","head":{"label":"scrdest:ghettotreatment","ref":"ghettotreatment","sha":"405d8603fabe94aff661a2bf4c08faf697249a59","user":{"login":"scrdest","id":4363639,"avatar_url":"https://avatars.githubusercontent.com/u/4363639?v=3","gravatar_id":"","url":"https://api.github.com/users/scrdest","html_url":"https://github.com/scrdest","followers_url":"https://api.github.com/users/scrdest/followers","following_url":"https://api.github.com/users/scrdest/following{/other_user}","gists_url":"https://api.github.com/users/scrdest/gists{/gist_id}","starred_url":"https://api.github.com/users/scrdest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrdest/subscriptions","organizations_url":"https://api.github.com/users/scrdest/orgs","repos_url":"https://api.github.com/users/scrdest/repos","events_url":"https://api.github.com/users/scrdest/events{/privacy}","received_events_url":"https://api.github.com/users/scrdest/received_events","type":"User","site_admin":false},"repo":{"id":25438225,"name":"UristMcStation","full_name":"scrdest/UristMcStation","owner":{"login":"scrdest","id":4363639,"avatar_url":"https://avatars.githubusercontent.com/u/4363639?v=3","gravatar_id":"","url":"https://api.github.com/users/scrdest","html_url":"https://github.com/scrdest","followers_url":"https://api.github.com/users/scrdest/followers","following_url":"https://api.github.com/users/scrdest/following{/other_user}","gists_url":"https://api.github.com/users/scrdest/gists{/gist_id}","starred_url":"https://api.github.com/users/scrdest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrdest/subscriptions","organizations_url":"https://api.github.com/users/scrdest/orgs","repos_url":"https://api.github.com/users/scrdest/repos","events_url":"https://api.github.com/users/scrdest/events{/privacy}","received_events_url":"https://api.github.com/users/scrdest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scrdest/UristMcStation","description":"Urist McStation's BS12 branch. Come play at byond://24.240.44.164:59359","fork":true,"url":"https://api.github.com/repos/scrdest/UristMcStation","forks_url":"https://api.github.com/repos/scrdest/UristMcStation/forks","keys_url":"https://api.github.com/repos/scrdest/UristMcStation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrdest/UristMcStation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrdest/UristMcStation/teams","hooks_url":"https://api.github.com/repos/scrdest/UristMcStation/hooks","issue_events_url":"https://api.github.com/repos/scrdest/UristMcStation/issues/events{/number}","events_url":"https://api.github.com/repos/scrdest/UristMcStation/events","assignees_url":"https://api.github.com/repos/scrdest/UristMcStation/assignees{/user}","branches_url":"https://api.github.com/repos/scrdest/UristMcStation/branches{/branch}","tags_url":"https://api.github.com/repos/scrdest/UristMcStation/tags","blobs_url":"https://api.github.com/repos/scrdest/UristMcStation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrdest/UristMcStation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrdest/UristMcStation/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrdest/UristMcStation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrdest/UristMcStation/statuses/{sha}","languages_url":"https://api.github.com/repos/scrdest/UristMcStation/languages","stargazers_url":"https://api.github.com/repos/scrdest/UristMcStation/stargazers","contributors_url":"https://api.github.com/repos/scrdest/UristMcStation/contributors","subscribers_url":"https://api.github.com/repos/scrdest/UristMcStation/subscribers","subscription_url":"https://api.github.com/repos/scrdest/UristMcStation/subscription","commits_url":"https://api.github.com/repos/scrdest/UristMcStation/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrdest/UristMcStation/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrdest/UristMcStation/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrdest/UristMcStation/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrdest/UristMcStation/contents/{+path}","compare_url":"https://api.github.com/repos/scrdest/UristMcStation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrdest/UristMcStation/merges","archive_url":"https://api.github.com/repos/scrdest/UristMcStation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrdest/UristMcStation/downloads","issues_url":"https://api.github.com/repos/scrdest/UristMcStation/issues{/number}","pulls_url":"https://api.github.com/repos/scrdest/UristMcStation/pulls{/number}","milestones_url":"https://api.github.com/repos/scrdest/UristMcStation/milestones{/number}","notifications_url":"https://api.github.com/repos/scrdest/UristMcStation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrdest/UristMcStation/labels{/name}","releases_url":"https://api.github.com/repos/scrdest/UristMcStation/releases{/id}","created_at":"2014-10-19T19:51:21Z","updated_at":"2015-02-22T20:18:33Z","pushed_at":"2015-02-23T22:15:45Z","git_url":"git://github.com/scrdest/UristMcStation.git","ssh_url":"git@github.com:scrdest/UristMcStation.git","clone_url":"https://github.com/scrdest/UristMcStation.git","svn_url":"https://github.com/scrdest/UristMcStation","homepage":"","size":514462,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"UristMcStation:master","ref":"master","sha":"e13e418f79aa2df6b4c8de1077d18dcbc5082780","user":{"login":"UristMcStation","id":6602767,"avatar_url":"https://avatars.githubusercontent.com/u/6602767?v=3","gravatar_id":"","url":"https://api.github.com/users/UristMcStation","html_url":"https://github.com/UristMcStation","followers_url":"https://api.github.com/users/UristMcStation/followers","following_url":"https://api.github.com/users/UristMcStation/following{/other_user}","gists_url":"https://api.github.com/users/UristMcStation/gists{/gist_id}","starred_url":"https://api.github.com/users/UristMcStation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UristMcStation/subscriptions","organizations_url":"https://api.github.com/users/UristMcStation/orgs","repos_url":"https://api.github.com/users/UristMcStation/repos","events_url":"https://api.github.com/users/UristMcStation/events{/privacy}","received_events_url":"https://api.github.com/users/UristMcStation/received_events","type":"Organization","site_admin":false},"repo":{"id":18000116,"name":"UristMcStation","full_name":"UristMcStation/UristMcStation","owner":{"login":"UristMcStation","id":6602767,"avatar_url":"https://avatars.githubusercontent.com/u/6602767?v=3","gravatar_id":"","url":"https://api.github.com/users/UristMcStation","html_url":"https://github.com/UristMcStation","followers_url":"https://api.github.com/users/UristMcStation/followers","following_url":"https://api.github.com/users/UristMcStation/following{/other_user}","gists_url":"https://api.github.com/users/UristMcStation/gists{/gist_id}","starred_url":"https://api.github.com/users/UristMcStation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UristMcStation/subscriptions","organizations_url":"https://api.github.com/users/UristMcStation/orgs","repos_url":"https://api.github.com/users/UristMcStation/repos","events_url":"https://api.github.com/users/UristMcStation/events{/privacy}","received_events_url":"https://api.github.com/users/UristMcStation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UristMcStation/UristMcStation","description":"Urist McStation's BS12 branch. Come play at byond://24.240.44.164:59359","fork":false,"url":"https://api.github.com/repos/UristMcStation/UristMcStation","forks_url":"https://api.github.com/repos/UristMcStation/UristMcStation/forks","keys_url":"https://api.github.com/repos/UristMcStation/UristMcStation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UristMcStation/UristMcStation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UristMcStation/UristMcStation/teams","hooks_url":"https://api.github.com/repos/UristMcStation/UristMcStation/hooks","issue_events_url":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/events{/number}","events_url":"https://api.github.com/repos/UristMcStation/UristMcStation/events","assignees_url":"https://api.github.com/repos/UristMcStation/UristMcStation/assignees{/user}","branches_url":"https://api.github.com/repos/UristMcStation/UristMcStation/branches{/branch}","tags_url":"https://api.github.com/repos/UristMcStation/UristMcStation/tags","blobs_url":"https://api.github.com/repos/UristMcStation/UristMcStation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UristMcStation/UristMcStation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UristMcStation/UristMcStation/git/refs{/sha}","trees_url":"https://api.github.com/repos/UristMcStation/UristMcStation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UristMcStation/UristMcStation/statuses/{sha}","languages_url":"https://api.github.com/repos/UristMcStation/UristMcStation/languages","stargazers_url":"https://api.github.com/repos/UristMcStation/UristMcStation/stargazers","contributors_url":"https://api.github.com/repos/UristMcStation/UristMcStation/contributors","subscribers_url":"https://api.github.com/repos/UristMcStation/UristMcStation/subscribers","subscription_url":"https://api.github.com/repos/UristMcStation/UristMcStation/subscription","commits_url":"https://api.github.com/repos/UristMcStation/UristMcStation/commits{/sha}","git_commits_url":"https://api.github.com/repos/UristMcStation/UristMcStation/git/commits{/sha}","comments_url":"https://api.github.com/repos/UristMcStation/UristMcStation/comments{/number}","issue_comment_url":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/comments{/number}","contents_url":"https://api.github.com/repos/UristMcStation/UristMcStation/contents/{+path}","compare_url":"https://api.github.com/repos/UristMcStation/UristMcStation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UristMcStation/UristMcStation/merges","archive_url":"https://api.github.com/repos/UristMcStation/UristMcStation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UristMcStation/UristMcStation/downloads","issues_url":"https://api.github.com/repos/UristMcStation/UristMcStation/issues{/number}","pulls_url":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls{/number}","milestones_url":"https://api.github.com/repos/UristMcStation/UristMcStation/milestones{/number}","notifications_url":"https://api.github.com/repos/UristMcStation/UristMcStation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UristMcStation/UristMcStation/labels{/name}","releases_url":"https://api.github.com/repos/UristMcStation/UristMcStation/releases{/id}","created_at":"2014-03-22T02:17:52Z","updated_at":"2015-03-02T09:00:06Z","pushed_at":"2015-03-02T09:00:06Z","git_url":"git://github.com/UristMcStation/UristMcStation.git","ssh_url":"git@github.com:UristMcStation/UristMcStation.git","clone_url":"https://github.com/UristMcStation/UristMcStation.git","svn_url":"https://github.com/UristMcStation/UristMcStation","homepage":"","size":521528,"stargazers_count":8,"watchers_count":8,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":10,"forks":20,"open_issues":10,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207"},"html":{"href":"https://github.com/UristMcStation/UristMcStation/pull/207"},"issue":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/207"},"comments":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/UristMcStation/UristMcStation/statuses/405d8603fabe94aff661a2bf4c08faf697249a59"}}}}