{"action":"created","comment":{"url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/comments/196246049","pull_request_review_id":129762960,"id":196246049,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjI0NjA0OQ==","diff_hunk":"@@ -66,39 +67,87 @@\n /obj/structure/morgue/attack_paw(mob/user)\r\n \treturn src.attack_hand(user)\r\n \r\n-/obj/structure/morgue/attack_hand(mob/user)\r\n-\tuser.SetNextMove(CLICK_CD_INTERACT)\r\n-\tif (src.connected)\r\n-\t\tfor(var/atom/movable/A as mob|obj in src.connected.loc)\r\n+/obj/structure/morgue/proc/has_mobs()\r\n+\tvar/list/compiled = mob_check(src, 0, 0) // Search for mobs in all contents.\r\n+\tif(!length(compiled)) // No mobs?\r\n+\t\treturn FALSE\r\n+\treturn TRUE\r\n+\r\n+/obj/structure/morgue/proc/has_clonable_bodies()\r\n+\tvar/list/compiled = mob_check(src, 0, 0) // Search for mobs in all contents.\r\n+\tif(!length(compiled)) // No mobs?\r\n+\t\treturn FALSE\r\n+\r\n+\tfor(var/mob/living/M in compiled)\r\n+\t\tif ((isnull(M)) || (!(ishuman(M))) || (!M.dna))\r\n+\t\t\tcontinue\r\n+\t\tvar/mob/living/carbon/human/H = M\r\n+\t\tif ((H.brain_op_stage == 4.0) || (H.suiciding == 1) || (!H.ckey) || (!H.client) || (NOCLONE in H.mutations))\r","path":"code/game/objects/structures/morgue.dm","position":31,"original_position":31,"commit_id":"812511854f7d20d9db297acb5c900b858d435326","original_commit_id":"812511854f7d20d9db297acb5c900b858d435326","user":{"login":"LudwigVonChesterfield","id":17705613,"node_id":"MDQ6VXNlcjE3NzA1NjEz","avatar_url":"https://avatars2.githubusercontent.com/u/17705613?v=4","gravatar_id":"","url":"https://api.github.com/users/LudwigVonChesterfield","html_url":"https://github.com/LudwigVonChesterfield","followers_url":"https://api.github.com/users/LudwigVonChesterfield/followers","following_url":"https://api.github.com/users/LudwigVonChesterfield/following{/other_user}","gists_url":"https://api.github.com/users/LudwigVonChesterfield/gists{/gist_id}","starred_url":"https://api.github.com/users/LudwigVonChesterfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LudwigVonChesterfield/subscriptions","organizations_url":"https://api.github.com/users/LudwigVonChesterfield/orgs","repos_url":"https://api.github.com/users/LudwigVonChesterfield/repos","events_url":"https://api.github.com/users/LudwigVonChesterfield/events{/privacy}","received_events_url":"https://api.github.com/users/LudwigVonChesterfield/received_events","type":"User","site_admin":false},"body":"Интересно. А ведь у нас есть client_check в проке mob_check. Зачем мы второй раз проверяем на наличие у моба клиента, если уже на этапе вызова прока mob_check могли бы?","created_at":"2018-06-18T22:33:19Z","updated_at":"2018-06-18T22:36:08Z","html_url":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543#discussion_r196246049","pull_request_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/comments/196246049"},"html":{"href":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543#discussion_r196246049"},"pull_request":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543"}}},"pull_request":{"url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543","id":195401622,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDAxNjIy","html_url":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543","diff_url":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543.diff","patch_url":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543.patch","issue_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/2543","number":2543,"state":"open","locked":false,"title":"Лампы в морге мигают зеленым если внутри тела есть игрок","user":{"login":"Alexofp","id":14040378,"node_id":"MDQ6VXNlcjE0MDQwMzc4","avatar_url":"https://avatars1.githubusercontent.com/u/14040378?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexofp","html_url":"https://github.com/Alexofp","followers_url":"https://api.github.com/users/Alexofp/followers","following_url":"https://api.github.com/users/Alexofp/following{/other_user}","gists_url":"https://api.github.com/users/Alexofp/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexofp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexofp/subscriptions","organizations_url":"https://api.github.com/users/Alexofp/orgs","repos_url":"https://api.github.com/users/Alexofp/repos","events_url":"https://api.github.com/users/Alexofp/events{/privacy}","received_events_url":"https://api.github.com/users/Alexofp/received_events","type":"User","site_admin":false},"body":"Если внутри гроба в морге есть хуман с игроком внутри или игрок возвращается в тело в морге, лампочка начинает мигать зеленым. Если гостается - опять краснеет.\r\n![default](https://user-images.githubusercontent.com/14040378/41513237-8352809c-72a1-11e8-8eee-2d76b93c786c.png)\r\n\r\nЗакрывает вот это Closes #2408 \r\n:cl:\r\n- rscadd: Лампы в морге мигают зеленым если внутри тела есть игрок","created_at":"2018-06-17T23:57:21Z","updated_at":"2018-06-18T22:36:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7327efed84158f3a3357a49ae92b26d427507a3b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":356334355,"node_id":"MDU6TGFiZWwzNTYzMzQzNTU=","url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/labels/Feature","name":"Feature","color":"d4c5f9","default":false},{"id":397895046,"node_id":"MDU6TGFiZWwzOTc4OTUwNDY=","url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/labels/Sprites","name":"Sprites","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543/commits","review_comments_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543/comments","review_comment_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/2543/comments","statuses_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/statuses/812511854f7d20d9db297acb5c900b858d435326","head":{"label":"Alexofp:morguelamp-feature","ref":"morguelamp-feature","sha":"812511854f7d20d9db297acb5c900b858d435326","user":{"login":"Alexofp","id":14040378,"node_id":"MDQ6VXNlcjE0MDQwMzc4","avatar_url":"https://avatars1.githubusercontent.com/u/14040378?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexofp","html_url":"https://github.com/Alexofp","followers_url":"https://api.github.com/users/Alexofp/followers","following_url":"https://api.github.com/users/Alexofp/following{/other_user}","gists_url":"https://api.github.com/users/Alexofp/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexofp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexofp/subscriptions","organizations_url":"https://api.github.com/users/Alexofp/orgs","repos_url":"https://api.github.com/users/Alexofp/repos","events_url":"https://api.github.com/users/Alexofp/events{/privacy}","received_events_url":"https://api.github.com/users/Alexofp/received_events","type":"User","site_admin":false},"repo":{"id":121145406,"node_id":"MDEwOlJlcG9zaXRvcnkxMjExNDU0MDY=","name":"TauCetiClassic","full_name":"Alexofp/TauCetiClassic","owner":{"login":"Alexofp","id":14040378,"node_id":"MDQ6VXNlcjE0MDQwMzc4","avatar_url":"https://avatars1.githubusercontent.com/u/14040378?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexofp","html_url":"https://github.com/Alexofp","followers_url":"https://api.github.com/users/Alexofp/followers","following_url":"https://api.github.com/users/Alexofp/following{/other_user}","gists_url":"https://api.github.com/users/Alexofp/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexofp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexofp/subscriptions","organizations_url":"https://api.github.com/users/Alexofp/orgs","repos_url":"https://api.github.com/users/Alexofp/repos","events_url":"https://api.github.com/users/Alexofp/events{/privacy}","received_events_url":"https://api.github.com/users/Alexofp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alexofp/TauCetiClassic","description":"Франкенштейн жив","fork":true,"url":"https://api.github.com/repos/Alexofp/TauCetiClassic","forks_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/forks","keys_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/teams","hooks_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/hooks","issue_events_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/issues/events{/number}","events_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/events","assignees_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/assignees{/user}","branches_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/branches{/branch}","tags_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/tags","blobs_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/statuses/{sha}","languages_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/languages","stargazers_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/stargazers","contributors_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/contributors","subscribers_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/subscribers","subscription_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/subscription","commits_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/contents/{+path}","compare_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/merges","archive_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/downloads","issues_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/issues{/number}","pulls_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/pulls{/number}","milestones_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/milestones{/number}","notifications_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/labels{/name}","releases_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/releases{/id}","deployments_url":"https://api.github.com/repos/Alexofp/TauCetiClassic/deployments","created_at":"2018-02-11T16:58:24Z","updated_at":"2018-03-29T13:48:11Z","pushed_at":"2018-06-18T00:02:31Z","git_url":"git://github.com/Alexofp/TauCetiClassic.git","ssh_url":"git@github.com:Alexofp/TauCetiClassic.git","clone_url":"https://github.com/Alexofp/TauCetiClassic.git","svn_url":"https://github.com/Alexofp/TauCetiClassic","homepage":null,"size":565908,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TauCetiStation:master","ref":"master","sha":"c0b41d22eb3375674960beffcf6681f3c2cea081","user":{"login":"TauCetiStation","id":7280533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyODA1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7280533?v=4","gravatar_id":"","url":"https://api.github.com/users/TauCetiStation","html_url":"https://github.com/TauCetiStation","followers_url":"https://api.github.com/users/TauCetiStation/followers","following_url":"https://api.github.com/users/TauCetiStation/following{/other_user}","gists_url":"https://api.github.com/users/TauCetiStation/gists{/gist_id}","starred_url":"https://api.github.com/users/TauCetiStation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauCetiStation/subscriptions","organizations_url":"https://api.github.com/users/TauCetiStation/orgs","repos_url":"https://api.github.com/users/TauCetiStation/repos","events_url":"https://api.github.com/users/TauCetiStation/events{/privacy}","received_events_url":"https://api.github.com/users/TauCetiStation/received_events","type":"Organization","site_admin":false},"repo":{"id":55870442,"node_id":"MDEwOlJlcG9zaXRvcnk1NTg3MDQ0Mg==","name":"TauCetiClassic","full_name":"TauCetiStation/TauCetiClassic","owner":{"login":"TauCetiStation","id":7280533,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyODA1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/7280533?v=4","gravatar_id":"","url":"https://api.github.com/users/TauCetiStation","html_url":"https://github.com/TauCetiStation","followers_url":"https://api.github.com/users/TauCetiStation/followers","following_url":"https://api.github.com/users/TauCetiStation/following{/other_user}","gists_url":"https://api.github.com/users/TauCetiStation/gists{/gist_id}","starred_url":"https://api.github.com/users/TauCetiStation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauCetiStation/subscriptions","organizations_url":"https://api.github.com/users/TauCetiStation/orgs","repos_url":"https://api.github.com/users/TauCetiStation/repos","events_url":"https://api.github.com/users/TauCetiStation/events{/privacy}","received_events_url":"https://api.github.com/users/TauCetiStation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TauCetiStation/TauCetiClassic","description":"Франкенштейн жив","fork":false,"url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic","forks_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/forks","keys_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/teams","hooks_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/hooks","issue_events_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/events{/number}","events_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/events","assignees_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/assignees{/user}","branches_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/branches{/branch}","tags_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/tags","blobs_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/git/refs{/sha}","trees_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/statuses/{sha}","languages_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/languages","stargazers_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/stargazers","contributors_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/contributors","subscribers_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/subscribers","subscription_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/subscription","commits_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/commits{/sha}","git_commits_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/git/commits{/sha}","comments_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/comments{/number}","issue_comment_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/comments{/number}","contents_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/contents/{+path}","compare_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/merges","archive_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/downloads","issues_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues{/number}","pulls_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls{/number}","milestones_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/milestones{/number}","notifications_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/labels{/name}","releases_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/releases{/id}","deployments_url":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/deployments","created_at":"2016-04-09T22:48:57Z","updated_at":"2018-06-17T23:12:20Z","pushed_at":"2018-06-18T11:39:20Z","git_url":"git://github.com/TauCetiStation/TauCetiClassic.git","ssh_url":"git@github.com:TauCetiStation/TauCetiClassic.git","clone_url":"https://github.com/TauCetiStation/TauCetiClassic.git","svn_url":"https://github.com/TauCetiStation/TauCetiClassic","homepage":null,"size":565722,"stargazers_count":35,"watchers_count":35,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":420,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":420,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543"},"html":{"href":"https://github.com/TauCetiStation/TauCetiClassic/pull/2543"},"issue":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/2543"},"comments":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/issues/2543/comments"},"review_comments":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543/comments"},"review_comment":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/pulls/2543/commits"},"statuses":{"href":"https://api.github.com/repos/TauCetiStation/TauCetiClassic/statuses/812511854f7d20d9db297acb5c900b858d435326"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"LudwigVonChesterfield"}}