{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/62455204","id":62455204,"diff_hunk":"@@ -12,6 +12,15 @@\n \tverbs -= /obj/structure/table/verb/do_flip\r\n \tverbs -= /obj/structure/table/proc/do_put\r\n \r\n+/obj/structure/table/rack/initialize()\r\n+\t..()\r\n+\t//arrange everything on our turf, similar to how closets store everything on theirs\r\n+\tvar/index = 1\r\n+\tfor(var/obj/item/I in src.loc)\r\n+\t\tif(I.anchored) //prevent arranging intercoms, among other possible things\r","path":"code/modules/tables/rack.dm","position":9,"original_position":9,"commit_id":"42e5b82d8e31bf4a065aa34225ecaabee2ee808c","original_commit_id":"42e5b82d8e31bf4a065aa34225ecaabee2ee808c","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"body":"I also hope it doesn't sound like an excuse but the copy paste isn't that bad.\r\n\r\nIf this wasn't DM I'd write a generator that returned a sequence of (index, item_instance) and reuse that between both but I'm limited by the language.","created_at":"2016-05-09T06:46:10Z","updated_at":"2016-05-09T06:46:11Z","html_url":"https://github.com/Baystation12/Baystation12/pull/12902#discussion_r62455204","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/62455204"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12902#discussion_r62455204"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902","id":69205916,"html_url":"https://github.com/Baystation12/Baystation12/pull/12902","diff_url":"https://github.com/Baystation12/Baystation12/pull/12902.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/12902.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12902","number":12902,"state":"open","locked":false,"title":"Replaces pixel_x/y randomization on New() with a var, randomizes pixel_x/y on sucessful item pickup","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"body":"Instead of some items randomizing their pixel_x/y vars from their override New(), a randpixel var is used to specify how much an item's pixel_x/y should be randomized, which is done in item/New(). Sets a default randpixel value of 6.\r\n\r\nIn addition to being randomized from item/New() the pixel_x/y vars are also randomized on a successful item pickup to reset extreme pixel_x/y values that may result from table item placement.\r\nAs well, this randomization incorporates a pixel_y skew that was originally used by ores and a few other items to create the appearance of being piled on the floor at the level of a human's feet.","created_at":"2016-05-06T20:30:05Z","updated_at":"2016-05-09T06:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd23ed8b61a54902d038063da76ffe7dd2b3d9f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/12902/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/42e5b82d8e31bf4a065aa34225ecaabee2ee808c","head":{"label":"mwerezak:pixel-click","ref":"pixel-click","sha":"42e5b82d8e31bf4a065aa34225ecaabee2ee808c","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"repo":{"id":18691192,"name":"Baystation12","full_name":"mwerezak/Baystation12","owner":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwerezak/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/mwerezak/Baystation12","forks_url":"https://api.github.com/repos/mwerezak/Baystation12/forks","keys_url":"https://api.github.com/repos/mwerezak/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwerezak/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwerezak/Baystation12/teams","hooks_url":"https://api.github.com/repos/mwerezak/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/mwerezak/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/mwerezak/Baystation12/events","assignees_url":"https://api.github.com/repos/mwerezak/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/mwerezak/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/mwerezak/Baystation12/tags","blobs_url":"https://api.github.com/repos/mwerezak/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwerezak/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwerezak/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwerezak/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwerezak/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/mwerezak/Baystation12/languages","stargazers_url":"https://api.github.com/repos/mwerezak/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/mwerezak/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/mwerezak/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/mwerezak/Baystation12/subscription","commits_url":"https://api.github.com/repos/mwerezak/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwerezak/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwerezak/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwerezak/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwerezak/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/mwerezak/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwerezak/Baystation12/merges","archive_url":"https://api.github.com/repos/mwerezak/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwerezak/Baystation12/downloads","issues_url":"https://api.github.com/repos/mwerezak/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/mwerezak/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/mwerezak/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/mwerezak/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwerezak/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/mwerezak/Baystation12/releases{/id}","deployments_url":"https://api.github.com/repos/mwerezak/Baystation12/deployments","created_at":"2014-04-11T23:01:36Z","updated_at":"2016-05-02T21:50:22Z","pushed_at":"2016-05-09T05:30:02Z","git_url":"git://github.com/mwerezak/Baystation12.git","ssh_url":"git@github.com:mwerezak/Baystation12.git","clone_url":"https://github.com/mwerezak/Baystation12.git","svn_url":"https://github.com/mwerezak/Baystation12","homepage":"http://baystation12.net/","size":756637,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"harpystation"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"60b8c2b80e727876787ddd6d7ce3e06670e30622","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-05-09T06:25:46Z","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":1632750,"stargazers_count":218,"watchers_count":218,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":926,"mirror_url":null,"open_issues_count":372,"forks":926,"open_issues":372,"watchers":218,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/12902"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12902"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/12902/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/12902/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/42e5b82d8e31bf4a065aa34225ecaabee2ee808c"}}}}