{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/61058709","id":61058709,"diff_hunk":"@@ -11,47 +11,79 @@\n \topacity = 0\n \tanchored = 1\n \n-\tvar/obj/structure/ladder/target\n-\n-\tinitialize()\n-\t\t// the upper will connect to the lower\n-\t\tif(icon_state == \"ladderup\")\n-\t\t\treturn\n+\tvar/allowed_directions = DOWN\n+\tvar/obj/structure/ladder/target_up\n+\tvar/obj/structure/ladder/target_down\n \n+/obj/structure/ladder/initialize()\n+\t// the upper will connect to the lower\n+\tif(allowed_directions && SOUTH) //we only want to do the top one, as it will initialize the ones before it.\n \t\tfor(var/obj/structure/ladder/L in GetBelow(src))\n-\t\t\tif(L.icon_state == \"ladderup\")\n-\t\t\t\ttarget = L\n-\t\t\t\tL.target = src\n+\t\t\tif(L.allowed_directions && UP)\n+\t\t\t\ttarget_down = L\n+\t\t\t\tL.target_up = src\n \t\t\t\treturn\n+\tupdate_icon()\n+\n+/obj/structure/ladder/Destroy()\n+\tif(target_down)\n+\t\ttarget_down.target_up = null\n+\t\tqdel(target_down)\n+\treturn ..()","path":"code/modules/multiz/structures.dm","position":31,"original_position":31,"commit_id":"d64bbccb6704b4ae14488c20fa2009986c607bbc","original_commit_id":"d64bbccb6704b4ae14488c20fa2009986c607bbc","user":{"login":"GinjaNinja32","id":3900853,"avatar_url":"https://avatars.githubusercontent.com/u/3900853?v=3","gravatar_id":"","url":"https://api.github.com/users/GinjaNinja32","html_url":"https://github.com/GinjaNinja32","followers_url":"https://api.github.com/users/GinjaNinja32/followers","following_url":"https://api.github.com/users/GinjaNinja32/following{/other_user}","gists_url":"https://api.github.com/users/GinjaNinja32/gists{/gist_id}","starred_url":"https://api.github.com/users/GinjaNinja32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GinjaNinja32/subscriptions","organizations_url":"https://api.github.com/users/GinjaNinja32/orgs","repos_url":"https://api.github.com/users/GinjaNinja32/repos","events_url":"https://api.github.com/users/GinjaNinja32/events{/privacy}","received_events_url":"https://api.github.com/users/GinjaNinja32/received_events","type":"User","site_admin":false},"body":"no;\r\n```dm\r\n/obj/structure/ladder/Destroy()\r\n\tif(target_down)\r\n\t\ttarget_down.target_up = null\r\n\t\ttarget_down = null\r\n\tif(target_up)\r\n\t\ttarget_up.target_down = null\r\n\t\ttarget_up = null\r\n\treturn ..()\r\n```\r\nthis way deleting/exploding/etc one of a chain of ladders doesn't delete all ladders in the chain, just the floor(s) that got kersploded.","created_at":"2016-04-26T09:54:54Z","updated_at":"2016-04-26T09:54:54Z","html_url":"https://github.com/Baystation12/Baystation12/pull/12774#discussion_r61058709","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/61058709"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12774#discussion_r61058709"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774","id":67808508,"html_url":"https://github.com/Baystation12/Baystation12/pull/12774","diff_url":"https://github.com/Baystation12/Baystation12/pull/12774.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/12774.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12774","number":12774,"state":"open","locked":false,"title":"Multiz ladders that can go up and down","user":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"body":"Title. Not as clunky as you'd believe, but a bit clunky.","created_at":"2016-04-26T00:09:41Z","updated_at":"2016-04-26T09:54:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c39d897d3e86c2c9cb22ee2c279b9528007a26a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12774/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d64bbccb6704b4ae14488c20fa2009986c607bbc","head":{"label":"Kearel:ladders","ref":"ladders","sha":"d64bbccb6704b4ae14488c20fa2009986c607bbc","user":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"repo":{"id":38450232,"name":"Baystation12","full_name":"Kearel/Baystation12","owner":{"login":"Kearel","id":6868489,"avatar_url":"https://avatars.githubusercontent.com/u/6868489?v=3","gravatar_id":"","url":"https://api.github.com/users/Kearel","html_url":"https://github.com/Kearel","followers_url":"https://api.github.com/users/Kearel/followers","following_url":"https://api.github.com/users/Kearel/following{/other_user}","gists_url":"https://api.github.com/users/Kearel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kearel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kearel/subscriptions","organizations_url":"https://api.github.com/users/Kearel/orgs","repos_url":"https://api.github.com/users/Kearel/repos","events_url":"https://api.github.com/users/Kearel/events{/privacy}","received_events_url":"https://api.github.com/users/Kearel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kearel/Baystation12","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/Kearel/Baystation12","forks_url":"https://api.github.com/repos/Kearel/Baystation12/forks","keys_url":"https://api.github.com/repos/Kearel/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kearel/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kearel/Baystation12/teams","hooks_url":"https://api.github.com/repos/Kearel/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Kearel/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Kearel/Baystation12/events","assignees_url":"https://api.github.com/repos/Kearel/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Kearel/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Kearel/Baystation12/tags","blobs_url":"https://api.github.com/repos/Kearel/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kearel/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kearel/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kearel/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kearel/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Kearel/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Kearel/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Kearel/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Kearel/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Kearel/Baystation12/subscription","commits_url":"https://api.github.com/repos/Kearel/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kearel/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kearel/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kearel/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kearel/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Kearel/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kearel/Baystation12/merges","archive_url":"https://api.github.com/repos/Kearel/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kearel/Baystation12/downloads","issues_url":"https://api.github.com/repos/Kearel/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Kearel/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Kearel/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Kearel/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kearel/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Kearel/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/Kearel/Baystation12/deployments","created_at":"2015-07-02T18:39:26Z","updated_at":"2016-04-08T01:36:26Z","pushed_at":"2016-04-26T06:42:46Z","git_url":"git://github.com/Kearel/Baystation12.git","ssh_url":"git@github.com:Kearel/Baystation12.git","clone_url":"https://github.com/Kearel/Baystation12.git","svn_url":"https://github.com/Kearel/Baystation12","homepage":"http://baystation12.net/","size":575271,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"467d472d42c9da5321985be72f719d983bcc3a35","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}","deployments_url":"https://api.github.com/repos/Baystation12/Baystation12/deployments","created_at":"2011-11-05T16:12:41Z","updated_at":"2016-04-25T11:48:16Z","pushed_at":"2016-04-26T09:48:02Z","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":1629477,"stargazers_count":218,"watchers_count":218,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":931,"mirror_url":null,"open_issues_count":358,"forks":931,"open_issues":358,"watchers":218,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12774"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12774"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12774/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12774/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d64bbccb6704b4ae14488c20fa2009986c607bbc"}}}}