{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/27283972","id":27283972,"diff_hunk":"@@ -0,0 +1,153 @@\n+/obj/machinery/ApL\n+\n+\tname = \"Automatic Pipe Layer\"\n+\ticon = 'icons/obj/stationobjs.dmi'\n+\ticon_state = \"pipe_d\"\n+\tdensity = 1\n+\tvar/turf/old_turf\n+\tvar/old_dir\n+\tvar/on = 0\n+\tvar/a_dis = 0\n+\tvar/P_type = 0\n+\tvar/P_type_t = \"\"\n+\tvar/max_metal = 1000\n+\tvar/obj/item/stack/sheet/metal/metal\n+\n+\tNew()\n+\t\tmetal = new(src)\n+\t\tmetal.amount = 100\n+\t\t..()\n+\n+\tMove(new_turf,M_Dir)\n+\t\t..()\n+\n+\t\tif(a_dis)\n+\t\t\tdismantleFloor(new_turf)\n+\t\tlayPipe(old_turf,M_Dir,old_dir)\n+\n+\t\told_turf = new_turf\n+\t\told_dir = turn(M_Dir,180)\n+\n+\tattack_hand(mob/user as mob)\n+\t\ton=!on\n+\t\tfor(var/mob/O in hearers(src, null))\n+\t\t\tO.show_message(\"[src] [!on?\"dea\":\"a\"]ctivated.\")\n+\t\treturn\n+\n+\tattackby(var/obj/item/W as obj, var/mob/user as mob)\n+\t\t..()\n+\t\tif (istype(W, /obj/item/weapon/wrench))\n+\t\t\tswitch(P_type)\n+\t\t\t\tif(31)\n+\t\t\t\t\tP_type = 0\n+\t\t\t\t\tP_type_t = \"Regular pipes\"\n+\t\t\t\tif(29)\n+\t\t\t\t\tP_type = 31\n+\t\t\t\t\tP_type_t = \"Scrubbers pipes\"\n+\t\t\t\tif(2)\n+\t\t\t\t\tP_type = 29\n+\t\t\t\t\tP_type_t = \"Supply pipes\"\n+\t\t\t\tif(0)\n+\t\t\t\t\tP_type = 2\n+\t\t\t\t\tP_type_t = \"Heat exchange\"\n+\n+\t\t\tusr << \"You set [src] to [P_type_t]\"\n+\n+\t\tif(istype(W, /obj/item/weapon/crowbar))\n+\t\t\ta_dis=!a_dis\n+\t\t\tfor(var/mob/O in hearers(src, null))\n+\t\t\t\tO.show_message(\"[src] auto dismantle [!on?\"dea\":\"a\"]ctivated.\")\n+\t\t\treturn\n+\n+\t\tif(istype(W, /obj/item/stack/sheet/metal))\n+\n+\t\t\tvar/result = load_metal(W)\n+\t\t\tvar/message\n+\t\t\tif(isnull(result))\n+\t\t\t\tmessage = \"<font color='red'>Unable to load [W] - no metal found.</font>\"","path":"code/game/machinery/pipe/ApL.dm","position":67,"original_position":67,"commit_id":"f65a3f975fb7e1d53d73dd321db2bab4b18d6992","original_commit_id":"f65a3f975fb7e1d53d73dd321db2bab4b18d6992","user":{"login":"PsiOmegaDelta","id":496895,"avatar_url":"https://avatars.githubusercontent.com/u/496895?v=3","gravatar_id":"","url":"https://api.github.com/users/PsiOmegaDelta","html_url":"https://github.com/PsiOmegaDelta","followers_url":"https://api.github.com/users/PsiOmegaDelta/followers","following_url":"https://api.github.com/users/PsiOmegaDelta/following{/other_user}","gists_url":"https://api.github.com/users/PsiOmegaDelta/gists{/gist_id}","starred_url":"https://api.github.com/users/PsiOmegaDelta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsiOmegaDelta/subscriptions","organizations_url":"https://api.github.com/users/PsiOmegaDelta/orgs","repos_url":"https://api.github.com/users/PsiOmegaDelta/repos","events_url":"https://api.github.com/users/PsiOmegaDelta/events{/privacy}","received_events_url":"https://api.github.com/users/PsiOmegaDelta/received_events","type":"User","site_admin":false},"body":"Copy/Paste is no real excuse though. It's a simple change to this instead.\r\n````message = \"<span class='danger'>Unable to load [W] - no metal found.</span>\"````","created_at":"2015-03-27T09:42:56Z","updated_at":"2015-03-27T09:42:56Z","html_url":"https://github.com/Baystation12/Baystation12/pull/8629#discussion_r27283972","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/27283972"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/8629#discussion_r27283972"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629","id":32027440,"html_url":"https://github.com/Baystation12/Baystation12/pull/8629","diff_url":"https://github.com/Baystation12/Baystation12/pull/8629.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/8629.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/8629","number":8629,"state":"open","locked":false,"title":"Pipe Layer","user":{"login":"Dennok","id":7734424,"avatar_url":"https://avatars.githubusercontent.com/u/7734424?v=3","gravatar_id":"","url":"https://api.github.com/users/Dennok","html_url":"https://github.com/Dennok","followers_url":"https://api.github.com/users/Dennok/followers","following_url":"https://api.github.com/users/Dennok/following{/other_user}","gists_url":"https://api.github.com/users/Dennok/gists{/gist_id}","starred_url":"https://api.github.com/users/Dennok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dennok/subscriptions","organizations_url":"https://api.github.com/users/Dennok/orgs","repos_url":"https://api.github.com/users/Dennok/repos","events_url":"https://api.github.com/users/Dennok/events{/privacy}","received_events_url":"https://api.github.com/users/Dennok/received_events","type":"User","site_admin":false},"body":"Automatic Pipe Layer\r\nPull or pusch to work.\r\nUse 1 metal to create 1 pipe and wrench it to place.\r\nCan make \tRegular, Scrubber, Supply or Heat exchange pipes (switch wrench).\r\nDismantling the floor if necessary (switch crowbar).\r\nCan hold 1,000 sheets of metal (laying out a screwdriver).","created_at":"2015-03-26T15:18:52Z","updated_at":"2015-03-27T09:42:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"279af02642d0ac254049164c0ed09982c5bfe478","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/8629/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/f65a3f975fb7e1d53d73dd321db2bab4b18d6992","head":{"label":"Dennok:patch-8","ref":"patch-8","sha":"f65a3f975fb7e1d53d73dd321db2bab4b18d6992","user":{"login":"Dennok","id":7734424,"avatar_url":"https://avatars.githubusercontent.com/u/7734424?v=3","gravatar_id":"","url":"https://api.github.com/users/Dennok","html_url":"https://github.com/Dennok","followers_url":"https://api.github.com/users/Dennok/followers","following_url":"https://api.github.com/users/Dennok/following{/other_user}","gists_url":"https://api.github.com/users/Dennok/gists{/gist_id}","starred_url":"https://api.github.com/users/Dennok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dennok/subscriptions","organizations_url":"https://api.github.com/users/Dennok/orgs","repos_url":"https://api.github.com/users/Dennok/repos","events_url":"https://api.github.com/users/Dennok/events{/privacy}","received_events_url":"https://api.github.com/users/Dennok/received_events","type":"User","site_admin":false},"repo":{"id":21874384,"name":"Baystation12","full_name":"Dennok/Baystation12","owner":{"login":"Dennok","id":7734424,"avatar_url":"https://avatars.githubusercontent.com/u/7734424?v=3","gravatar_id":"","url":"https://api.github.com/users/Dennok","html_url":"https://github.com/Dennok","followers_url":"https://api.github.com/users/Dennok/followers","following_url":"https://api.github.com/users/Dennok/following{/other_user}","gists_url":"https://api.github.com/users/Dennok/gists{/gist_id}","starred_url":"https://api.github.com/users/Dennok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dennok/subscriptions","organizations_url":"https://api.github.com/users/Dennok/orgs","repos_url":"https://api.github.com/users/Dennok/repos","events_url":"https://api.github.com/users/Dennok/events{/privacy}","received_events_url":"https://api.github.com/users/Dennok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dennok/Baystation12","description":"The code for Baystation12's branch of SS13. Developers: please don't forget to update the changelog. Thanks!","fork":true,"url":"https://api.github.com/repos/Dennok/Baystation12","forks_url":"https://api.github.com/repos/Dennok/Baystation12/forks","keys_url":"https://api.github.com/repos/Dennok/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dennok/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dennok/Baystation12/teams","hooks_url":"https://api.github.com/repos/Dennok/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Dennok/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Dennok/Baystation12/events","assignees_url":"https://api.github.com/repos/Dennok/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Dennok/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Dennok/Baystation12/tags","blobs_url":"https://api.github.com/repos/Dennok/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dennok/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dennok/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dennok/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dennok/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Dennok/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Dennok/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Dennok/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Dennok/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Dennok/Baystation12/subscription","commits_url":"https://api.github.com/repos/Dennok/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dennok/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dennok/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dennok/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dennok/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Dennok/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dennok/Baystation12/merges","archive_url":"https://api.github.com/repos/Dennok/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dennok/Baystation12/downloads","issues_url":"https://api.github.com/repos/Dennok/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Dennok/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Dennok/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Dennok/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dennok/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Dennok/Baystation12/releases{/id}","created_at":"2014-07-15T20:17:59Z","updated_at":"2014-07-16T12:25:42Z","pushed_at":"2015-03-26T15:18:03Z","git_url":"git://github.com/Dennok/Baystation12.git","ssh_url":"git@github.com:Dennok/Baystation12.git","clone_url":"https://github.com/Dennok/Baystation12.git","svn_url":"https://github.com/Dennok/Baystation12","homepage":"http://baystation12.net/","size":581064,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"ab0ffe7767f6704649c0f7f6ea4b63309529448e","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"repo":{"id":2715933,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Baystation12/Baystation12","description":"The code for Baystation12's branch of SS13","fork":false,"url":"https://api.github.com/repos/Baystation12/Baystation12","forks_url":"https://api.github.com/repos/Baystation12/Baystation12/forks","keys_url":"https://api.github.com/repos/Baystation12/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Baystation12/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Baystation12/Baystation12/teams","hooks_url":"https://api.github.com/repos/Baystation12/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Baystation12/Baystation12/events","assignees_url":"https://api.github.com/repos/Baystation12/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Baystation12/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Baystation12/Baystation12/tags","blobs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Baystation12/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Baystation12/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Baystation12/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Baystation12/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Baystation12/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Baystation12/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Baystation12/Baystation12/subscription","commits_url":"https://api.github.com/repos/Baystation12/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Baystation12/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Baystation12/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Baystation12/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Baystation12/Baystation12/merges","archive_url":"https://api.github.com/repos/Baystation12/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Baystation12/Baystation12/downloads","issues_url":"https://api.github.com/repos/Baystation12/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Baystation12/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Baystation12/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Baystation12/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Baystation12/Baystation12/releases{/id}","created_at":"2011-11-05T16:12:41Z","updated_at":"2015-03-23T20:13:44Z","pushed_at":"2015-03-27T08:08:19Z","git_url":"git://github.com/Baystation12/Baystation12.git","ssh_url":"git@github.com:Baystation12/Baystation12.git","clone_url":"https://github.com/Baystation12/Baystation12.git","svn_url":"https://github.com/Baystation12/Baystation12","homepage":"http://baystation12.net/","size":1363206,"stargazers_count":183,"watchers_count":183,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":714,"mirror_url":null,"open_issues_count":201,"forks":714,"open_issues":201,"watchers":183,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/8629"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/8629"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/8629/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/8629/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/f65a3f975fb7e1d53d73dd321db2bab4b18d6992"}}}}