{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/82605709","pull_request_review_id":3501064,"id":82605709,"diff_hunk":"@@ -91,9 +91,38 @@\n /mob/living/carbon/human/breathe()\n \tif(!dna.species.breathe(src))\n \t\t..()\n-\n+#define HUMAN_MAX_OXYLOSS 3\n+#define HUMAN_CRIT_MAX_OXYLOSS (SSmob.wait/30)\n /mob/living/carbon/human/check_breath(datum/gas_mixture/breath)\n-\tdna.species.check_breath(breath, src)\n+\n+\tvar/L = getorganslot(\"lungs\")\n+\n+\tif(!L)\n+\t\tif(health >= HEALTH_THRESHOLD_CRIT)\n+\t\t\tadjustOxyLoss(HUMAN_MAX_OXYLOSS + 1)\n+\t\telse if(!(NOCRITDAMAGE in dna.species.specflags))\n+\t\t\tadjustOxyLoss(HUMAN_CRIT_MAX_OXYLOSS)\n+\n+\t\tfailed_last_breath = 1\n+\n+\t\tif(dna && dna.species)\n+\t\t\tvar/datum/species/S = dna.species\n+\n+\t\t\tif(S.safe_oxygen_min)\n+\t\t\t\tthrow_alert(\"oxy\", /obj/screen/alert/oxy)\n+\t\t\telse if(S.safe_toxins_min)\n+\t\t\t\tthrow_alert(\"not_enough_tox\", /obj/screen/alert/not_enough_tox)\n+\t\t\telse if(S.safe_co2_min)\n+\t\t\t\tthrow_alert(\"not_enough_co2\", /obj/screen/alert/not_enough_co2)\n+\n+\t\treturn 0\n+\telse\n+\t\tif(istype(L,/obj/item/organ/lungs))","path":"code/modules/mob/living/carbon/human/life.dm","position":32,"original_position":32,"commit_id":"c0275aab04361a902ab0fd3a8763a40e5bb45df8","original_commit_id":"c0275aab04361a902ab0fd3a8763a40e5bb45df8","user":{"login":"phil235","id":3476142,"avatar_url":"https://avatars.githubusercontent.com/u/3476142?v=3","gravatar_id":"","url":"https://api.github.com/users/phil235","html_url":"https://github.com/phil235","followers_url":"https://api.github.com/users/phil235/followers","following_url":"https://api.github.com/users/phil235/following{/other_user}","gists_url":"https://api.github.com/users/phil235/gists{/gist_id}","starred_url":"https://api.github.com/users/phil235/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil235/subscriptions","organizations_url":"https://api.github.com/users/phil235/orgs","repos_url":"https://api.github.com/users/phil235/repos","events_url":"https://api.github.com/users/phil235/events{/privacy}","received_events_url":"https://api.github.com/users/phil235/received_events","type":"User","site_admin":false},"body":"people can have an organ in the lung slot that isn't /obj/item/organ/lungs ??","created_at":"2016-10-10T13:42:21Z","updated_at":"2016-10-10T13:42:21Z","html_url":"https://github.com/tgstation/tgstation/pull/20869#discussion_r82605709","pull_request_url":"https://api.github.com/repos/tgstation/tgstation/pulls/20869","_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/82605709"},"html":{"href":"https://github.com/tgstation/tgstation/pull/20869#discussion_r82605709"},"pull_request":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/20869"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/20869","id":88561907,"html_url":"https://github.com/tgstation/tgstation/pull/20869","diff_url":"https://github.com/tgstation/tgstation/pull/20869.diff","patch_url":"https://github.com/tgstation/tgstation/pull/20869.patch","issue_url":"https://api.github.com/repos/tgstation/tgstation/issues/20869","number":20869,"state":"open","locked":false,"title":"Moves breathing from species to the lung organ","user":{"login":"Shadowlight213","id":9410002,"avatar_url":"https://avatars.githubusercontent.com/u/9410002?v=3","gravatar_id":"","url":"https://api.github.com/users/Shadowlight213","html_url":"https://github.com/Shadowlight213","followers_url":"https://api.github.com/users/Shadowlight213/followers","following_url":"https://api.github.com/users/Shadowlight213/following{/other_user}","gists_url":"https://api.github.com/users/Shadowlight213/gists{/gist_id}","starred_url":"https://api.github.com/users/Shadowlight213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shadowlight213/subscriptions","organizations_url":"https://api.github.com/users/Shadowlight213/orgs","repos_url":"https://api.github.com/users/Shadowlight213/repos","events_url":"https://api.github.com/users/Shadowlight213/events{/privacy}","received_events_url":"https://api.github.com/users/Shadowlight213/received_events","type":"User","site_admin":false},"body":"\r\n:cl:\r\nexperiment: Breathing has been moved from species to the lung organ\r\nadd: Lung transplants are now possible!\r\n/:cl:","created_at":"2016-10-08T23:03:16Z","updated_at":"2016-10-10T13:42:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4f001395375c5ff318d00c3c55c2456cecba7dc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/tgstation/pulls/20869/commits","review_comments_url":"https://api.github.com/repos/tgstation/tgstation/pulls/20869/comments","review_comment_url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/tgstation/issues/20869/comments","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/c0275aab04361a902ab0fd3a8763a40e5bb45df8","head":{"label":"Shadowlight213:gaswalkers","ref":"gaswalkers","sha":"c0275aab04361a902ab0fd3a8763a40e5bb45df8","user":{"login":"Shadowlight213","id":9410002,"avatar_url":"https://avatars.githubusercontent.com/u/9410002?v=3","gravatar_id":"","url":"https://api.github.com/users/Shadowlight213","html_url":"https://github.com/Shadowlight213","followers_url":"https://api.github.com/users/Shadowlight213/followers","following_url":"https://api.github.com/users/Shadowlight213/following{/other_user}","gists_url":"https://api.github.com/users/Shadowlight213/gists{/gist_id}","starred_url":"https://api.github.com/users/Shadowlight213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shadowlight213/subscriptions","organizations_url":"https://api.github.com/users/Shadowlight213/orgs","repos_url":"https://api.github.com/users/Shadowlight213/repos","events_url":"https://api.github.com/users/Shadowlight213/events{/privacy}","received_events_url":"https://api.github.com/users/Shadowlight213/received_events","type":"User","site_admin":false},"repo":{"id":32113084,"name":"-tg-station","full_name":"Shadowlight213/-tg-station","owner":{"login":"Shadowlight213","id":9410002,"avatar_url":"https://avatars.githubusercontent.com/u/9410002?v=3","gravatar_id":"","url":"https://api.github.com/users/Shadowlight213","html_url":"https://github.com/Shadowlight213","followers_url":"https://api.github.com/users/Shadowlight213/followers","following_url":"https://api.github.com/users/Shadowlight213/following{/other_user}","gists_url":"https://api.github.com/users/Shadowlight213/gists{/gist_id}","starred_url":"https://api.github.com/users/Shadowlight213/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shadowlight213/subscriptions","organizations_url":"https://api.github.com/users/Shadowlight213/orgs","repos_url":"https://api.github.com/users/Shadowlight213/repos","events_url":"https://api.github.com/users/Shadowlight213/events{/privacy}","received_events_url":"https://api.github.com/users/Shadowlight213/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shadowlight213/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/Shadowlight213/-tg-station","forks_url":"https://api.github.com/repos/Shadowlight213/-tg-station/forks","keys_url":"https://api.github.com/repos/Shadowlight213/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shadowlight213/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shadowlight213/-tg-station/teams","hooks_url":"https://api.github.com/repos/Shadowlight213/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/Shadowlight213/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/Shadowlight213/-tg-station/events","assignees_url":"https://api.github.com/repos/Shadowlight213/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/Shadowlight213/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/Shadowlight213/-tg-station/tags","blobs_url":"https://api.github.com/repos/Shadowlight213/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shadowlight213/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shadowlight213/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shadowlight213/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shadowlight213/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/Shadowlight213/-tg-station/languages","stargazers_url":"https://api.github.com/repos/Shadowlight213/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/Shadowlight213/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/Shadowlight213/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/Shadowlight213/-tg-station/subscription","commits_url":"https://api.github.com/repos/Shadowlight213/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shadowlight213/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shadowlight213/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shadowlight213/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shadowlight213/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/Shadowlight213/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shadowlight213/-tg-station/merges","archive_url":"https://api.github.com/repos/Shadowlight213/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shadowlight213/-tg-station/downloads","issues_url":"https://api.github.com/repos/Shadowlight213/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/Shadowlight213/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/Shadowlight213/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/Shadowlight213/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shadowlight213/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/Shadowlight213/-tg-station/releases{/id}","deployments_url":"https://api.github.com/repos/Shadowlight213/-tg-station/deployments","created_at":"2015-03-13T01:10:41Z","updated_at":"2016-01-12T00:23:32Z","pushed_at":"2016-10-09T03:41:24Z","git_url":"git://github.com/Shadowlight213/-tg-station.git","ssh_url":"git@github.com:Shadowlight213/-tg-station.git","clone_url":"https://github.com/Shadowlight213/-tg-station.git","svn_url":"https://github.com/Shadowlight213/-tg-station","homepage":"http://www.tgstation13.org/","size":665342,"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":"tgstation:master","ref":"master","sha":"fcdbf3742aa187dc802bd6b06b9eb729e06a1dff","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"tgstation","full_name":"tgstation/tgstation","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/tgstation","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/tgstation","forks_url":"https://api.github.com/repos/tgstation/tgstation/forks","keys_url":"https://api.github.com/repos/tgstation/tgstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/tgstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/tgstation/teams","hooks_url":"https://api.github.com/repos/tgstation/tgstation/hooks","issue_events_url":"https://api.github.com/repos/tgstation/tgstation/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/tgstation/events","assignees_url":"https://api.github.com/repos/tgstation/tgstation/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/tgstation/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/tgstation/tags","blobs_url":"https://api.github.com/repos/tgstation/tgstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/tgstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/tgstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/tgstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/tgstation/languages","stargazers_url":"https://api.github.com/repos/tgstation/tgstation/stargazers","contributors_url":"https://api.github.com/repos/tgstation/tgstation/contributors","subscribers_url":"https://api.github.com/repos/tgstation/tgstation/subscribers","subscription_url":"https://api.github.com/repos/tgstation/tgstation/subscription","commits_url":"https://api.github.com/repos/tgstation/tgstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/tgstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/tgstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/tgstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/tgstation/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/tgstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/tgstation/merges","archive_url":"https://api.github.com/repos/tgstation/tgstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/tgstation/downloads","issues_url":"https://api.github.com/repos/tgstation/tgstation/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/tgstation/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/tgstation/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/tgstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/tgstation/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/tgstation/releases{/id}","deployments_url":"https://api.github.com/repos/tgstation/tgstation/deployments","created_at":"2012-01-21T17:32:47Z","updated_at":"2016-10-07T17:25:18Z","pushed_at":"2016-10-10T12:01:19Z","git_url":"git://github.com/tgstation/tgstation.git","ssh_url":"git@github.com:tgstation/tgstation.git","clone_url":"https://github.com/tgstation/tgstation.git","svn_url":"https://github.com/tgstation/tgstation","homepage":"http://www.tgstation13.org/","size":1574695,"stargazers_count":322,"watchers_count":322,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1152,"mirror_url":null,"open_issues_count":938,"forks":1152,"open_issues":938,"watchers":322,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/20869"},"html":{"href":"https://github.com/tgstation/tgstation/pull/20869"},"issue":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/20869"},"comments":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/20869/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/20869/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/20869/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/tgstation/statuses/c0275aab04361a902ab0fd3a8763a40e5bb45df8"}}}}
{"actor":{"display_login":"phil235"}}