{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/23136924","id":23136924,"diff_hunk":"@@ -212,130 +190,110 @@ proc/tg_list2text(list/list, glue=\",\")\n \t\tfound = findtextEx(text, delimiter, last_found, 0)\r\n \t\t. += copytext(text, last_found, found)\r\n \t\tlast_found = found + delim_len\r\n-\twhile(found)\r\n+\twhile (found)\r\n \r\n-//Splits the text of a file at seperator and returns them in a list.\r\n+// Splits the text of a file at seperator and returns them in a list.\r\n /proc/file2list(filename, seperator=\"\\n\")\r\n \treturn text2list(return_file_text(filename),seperator)\r\n \r\n-\r\n-//Turns a direction into text\r\n-\r\n+// Turns a direction into text\r\n /proc/num2dir(direction)\r\n-\tswitch(direction)\r\n-\t\tif(1.0) return NORTH\r\n-\t\tif(2.0) return SOUTH\r\n-\t\tif(4.0) return EAST\r\n-\t\tif(8.0) return WEST\r\n+\tswitch (direction)\r\n+\t\tif (1.0) return NORTH\r\n+\t\tif (2.0) return SOUTH\r\n+\t\tif (4.0) return EAST\r\n+\t\tif (8.0) return WEST\r\n \t\telse\r\n \t\t\tworld.log << \"UNKNOWN DIRECTION: [direction]\"\r\n \r\n-\r\n-\r\n-//Turns a direction into text\r\n+// Turns a direction into text\r\n /proc/dir2text(direction)\r\n-\tswitch(direction)\r\n-\t\tif(1.0)\r\n-\t\t\treturn \"north\"\r\n-\t\tif(2.0)\r\n-\t\t\treturn \"south\"\r\n-\t\tif(4.0)\r\n-\t\t\treturn \"east\"\r\n-\t\tif(8.0)\r\n-\t\t\treturn \"west\"\r\n-\t\tif(5.0)\r\n-\t\t\treturn \"northeast\"\r\n-\t\tif(6.0)\r\n-\t\t\treturn \"southeast\"\r\n-\t\tif(9.0)\r\n-\t\t\treturn \"northwest\"\r\n-\t\tif(10.0)\r\n-\t\t\treturn \"southwest\"\r\n+\tswitch (direction)\r\n+\t\tif (1.0)  return \"north\"\r\n+\t\tif (2.0)  return \"south\"\r\n+\t\tif (4.0)  return \"east\"\r\n+\t\tif (8.0)  return \"west\"\r\n+\t\tif (5.0)  return \"northeast\"\r\n+\t\tif (6.0)  return \"southeast\"\r\n+\t\tif (9.0)  return \"northwest\"\r\n+\t\tif (10.0) return \"southwest\"\r\n \t\telse\r\n-\treturn\r\n+\t\t\treturn\r\n \r\n-//Turns text into proper directions\r\n+// Turns text into proper directions\r\n /proc/text2dir(direction)\r\n-\tswitch(uppertext(direction))\r\n-\t\tif(\"NORTH\")\r\n-\t\t\treturn 1\r\n-\t\tif(\"SOUTH\")\r\n-\t\t\treturn 2\r\n-\t\tif(\"EAST\")\r\n-\t\t\treturn 4\r\n-\t\tif(\"WEST\")\r\n-\t\t\treturn 8\r\n-\t\tif(\"NORTHEAST\")\r\n-\t\t\treturn 5\r\n-\t\tif(\"NORTHWEST\")\r\n-\t\t\treturn 9\r\n-\t\tif(\"SOUTHEAST\")\r\n-\t\t\treturn 6\r\n-\t\tif(\"SOUTHWEST\")\r\n-\t\t\treturn 10\r\n+\tswitch (uppertext(direction))\r\n+\t\tif (\"NORTH\")     return 1\r\n+\t\tif (\"SOUTH\")     return 2\r\n+\t\tif (\"EAST\")      return 4\r\n+\t\tif (\"WEST\")      return 8\r\n+\t\tif (\"NORTHEAST\") return 5\r\n+\t\tif (\"NORTHWEST\") return 9\r\n+\t\tif (\"SOUTHEAST\") return 6\r\n+\t\tif (\"SOUTHWEST\") return 10\r\n \t\telse\r\n-\treturn\r\n+\t\t\treturn\r","path":"code/__HELPERS/type2type.dm","position":392,"original_position":392,"commit_id":"490027405af023e8885f977007c19ba8a35fa938","original_commit_id":"490027405af023e8885f977007c19ba8a35fa938","user":{"login":"Ccomp5950","id":1395611,"avatar_url":"https://avatars.githubusercontent.com/u/1395611?v=3","gravatar_id":"","url":"https://api.github.com/users/Ccomp5950","html_url":"https://github.com/Ccomp5950","followers_url":"https://api.github.com/users/Ccomp5950/followers","following_url":"https://api.github.com/users/Ccomp5950/following{/other_user}","gists_url":"https://api.github.com/users/Ccomp5950/gists{/gist_id}","starred_url":"https://api.github.com/users/Ccomp5950/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ccomp5950/subscriptions","organizations_url":"https://api.github.com/users/Ccomp5950/orgs","repos_url":"https://api.github.com/users/Ccomp5950/repos","events_url":"https://api.github.com/users/Ccomp5950/events{/privacy}","received_events_url":"https://api.github.com/users/Ccomp5950/received_events","type":"User","site_admin":false},"body":"???","created_at":"2015-01-18T21:11:23Z","updated_at":"2015-01-18T21:11:23Z","html_url":"https://github.com/Baystation12/Baystation12/pull/7874#discussion_r23136924","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/23136924"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/7874#discussion_r23136924"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874","id":27576187,"html_url":"https://github.com/Baystation12/Baystation12/pull/7874","diff_url":"https://github.com/Baystation12/Baystation12/pull/7874.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/7874.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/7874","number":7874,"state":"open","locked":false,"title":"Large cleanup of code (reopened)","user":{"login":"nahiyan8","id":3752224,"avatar_url":"https://avatars.githubusercontent.com/u/3752224?v=3","gravatar_id":"","url":"https://api.github.com/users/nahiyan8","html_url":"https://github.com/nahiyan8","followers_url":"https://api.github.com/users/nahiyan8/followers","following_url":"https://api.github.com/users/nahiyan8/following{/other_user}","gists_url":"https://api.github.com/users/nahiyan8/gists{/gist_id}","starred_url":"https://api.github.com/users/nahiyan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahiyan8/subscriptions","organizations_url":"https://api.github.com/users/nahiyan8/orgs","repos_url":"https://api.github.com/users/nahiyan8/repos","events_url":"https://api.github.com/users/nahiyan8/events{/privacy}","received_events_url":"https://api.github.com/users/nahiyan8/received_events","type":"User","site_admin":false},"body":"Due to some slight problems reopening the last PR, I've made this new one. The commits are exactly the same. I believe someone should be fixing the `if(` spacing after the merge.\r\n\r\nPrevious: #7761: `Large cleanup of code, spacing and comments`","created_at":"2015-01-18T20:09:35Z","updated_at":"2015-01-18T21:11:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c10b57f992a9c544b61592702c4328572430cf8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/7874/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/490027405af023e8885f977007c19ba8a35fa938","head":{"label":"nahiyan8:dev","ref":"dev","sha":"490027405af023e8885f977007c19ba8a35fa938","user":{"login":"nahiyan8","id":3752224,"avatar_url":"https://avatars.githubusercontent.com/u/3752224?v=3","gravatar_id":"","url":"https://api.github.com/users/nahiyan8","html_url":"https://github.com/nahiyan8","followers_url":"https://api.github.com/users/nahiyan8/followers","following_url":"https://api.github.com/users/nahiyan8/following{/other_user}","gists_url":"https://api.github.com/users/nahiyan8/gists{/gist_id}","starred_url":"https://api.github.com/users/nahiyan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahiyan8/subscriptions","organizations_url":"https://api.github.com/users/nahiyan8/orgs","repos_url":"https://api.github.com/users/nahiyan8/repos","events_url":"https://api.github.com/users/nahiyan8/events{/privacy}","received_events_url":"https://api.github.com/users/nahiyan8/received_events","type":"User","site_admin":false},"repo":{"id":29438302,"name":"Baystation12","full_name":"nahiyan8/Baystation12","owner":{"login":"nahiyan8","id":3752224,"avatar_url":"https://avatars.githubusercontent.com/u/3752224?v=3","gravatar_id":"","url":"https://api.github.com/users/nahiyan8","html_url":"https://github.com/nahiyan8","followers_url":"https://api.github.com/users/nahiyan8/followers","following_url":"https://api.github.com/users/nahiyan8/following{/other_user}","gists_url":"https://api.github.com/users/nahiyan8/gists{/gist_id}","starred_url":"https://api.github.com/users/nahiyan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahiyan8/subscriptions","organizations_url":"https://api.github.com/users/nahiyan8/orgs","repos_url":"https://api.github.com/users/nahiyan8/repos","events_url":"https://api.github.com/users/nahiyan8/events{/privacy}","received_events_url":"https://api.github.com/users/nahiyan8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nahiyan8/Baystation12","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/nahiyan8/Baystation12","forks_url":"https://api.github.com/repos/nahiyan8/Baystation12/forks","keys_url":"https://api.github.com/repos/nahiyan8/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nahiyan8/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nahiyan8/Baystation12/teams","hooks_url":"https://api.github.com/repos/nahiyan8/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/nahiyan8/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/nahiyan8/Baystation12/events","assignees_url":"https://api.github.com/repos/nahiyan8/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/nahiyan8/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/nahiyan8/Baystation12/tags","blobs_url":"https://api.github.com/repos/nahiyan8/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nahiyan8/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nahiyan8/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/nahiyan8/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nahiyan8/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/nahiyan8/Baystation12/languages","stargazers_url":"https://api.github.com/repos/nahiyan8/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/nahiyan8/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/nahiyan8/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/nahiyan8/Baystation12/subscription","commits_url":"https://api.github.com/repos/nahiyan8/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/nahiyan8/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/nahiyan8/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/nahiyan8/Baystation12/issues/comments/{number}","contents_url":"https://api.github.com/repos/nahiyan8/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/nahiyan8/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nahiyan8/Baystation12/merges","archive_url":"https://api.github.com/repos/nahiyan8/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nahiyan8/Baystation12/downloads","issues_url":"https://api.github.com/repos/nahiyan8/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/nahiyan8/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/nahiyan8/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/nahiyan8/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nahiyan8/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/nahiyan8/Baystation12/releases{/id}","created_at":"2015-01-18T19:40:04Z","updated_at":"2015-01-18T19:40:13Z","pushed_at":"2015-01-18T21:01:16Z","git_url":"git://github.com/nahiyan8/Baystation12.git","ssh_url":"git@github.com:nahiyan8/Baystation12.git","clone_url":"https://github.com/nahiyan8/Baystation12.git","svn_url":"https://github.com/nahiyan8/Baystation12","homepage":"http://baystation12.net/","size":536676,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"9890bdc86dd108f5a605f45918e739e4d4355988","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-01-16T12:43:54Z","pushed_at":"2015-01-17T17:32: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":995540,"stargazers_count":175,"watchers_count":175,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":654,"mirror_url":null,"open_issues_count":123,"forks":654,"open_issues":123,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/7874"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/7874"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/7874/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7874/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/490027405af023e8885f977007c19ba8a35fa938"}}}}