{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/46087774","id":46087774,"diff_hunk":"@@ -11,29 +11,27 @@\n \taction_button_name = \"Toggle Helmet Light\"\r\n \tburn_state = -1 //Won't burn in fires\r\n \r\n-\tattack_self(mob/user)\r\n-\t\tif(!isturf(user.loc))\r\n-\t\t\tuser << \"<span class='warning'>You cannot turn the light on while in this [user.loc]!</span>\" //To prevent some lighting anomalities.\r\n-\t\t\treturn\r\n-\t\ton = !on\r\n-\t\ticon_state = \"hardhat[on]_[item_color]\"\r\n-\t\titem_state = \"hardhat[on]_[item_color]\"\r\n-\t\tuser.update_inv_head()\t//so our mob-overlays update\r\n+/obj/item/clothing/head/hardhat/attack_self(mob/user)\r\n+\tif(!isturf(user.loc))\r\n+\t\tuser << \"<span class='warning'>You cannot turn the light on while in this [user.loc]!</span>\" //To prevent some lighting anomalities.\r\n+\t\treturn\r\n+\ton = !on\r\n+\ticon_state = \"hardhat[on]_[item_color]\"\r\n+\titem_state = \"hardhat[on]_[item_color]\"\r\n+\tuser.update_inv_head()\t//so our mob-overlays update\r\n \r\n-\t\tif(on)\tuser.AddLuminosity(brightness_on)\r\n-\t\telse\tuser.AddLuminosity(-brightness_on)\r\n+\tif(on)\tuser.AddLuminosity(brightness_on)\r\n+\telse\tuser.AddLuminosity(-brightness_on)\r","path":"code/modules/clothing/head/hardhat.dm","position":24,"original_position":24,"commit_id":"5ef5a57f73bddab7166dff57f750620bb1ea764b","original_commit_id":"5ef5a57f73bddab7166dff57f750620bb1ea764b","user":{"login":"duncathan","id":2979303,"avatar_url":"https://avatars.githubusercontent.com/u/2979303?v=3","gravatar_id":"","url":"https://api.github.com/users/duncathan","html_url":"https://github.com/duncathan","followers_url":"https://api.github.com/users/duncathan/followers","following_url":"https://api.github.com/users/duncathan/following{/other_user}","gists_url":"https://api.github.com/users/duncathan/gists{/gist_id}","starred_url":"https://api.github.com/users/duncathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncathan/subscriptions","organizations_url":"https://api.github.com/users/duncathan/orgs","repos_url":"https://api.github.com/users/duncathan/repos","events_url":"https://api.github.com/users/duncathan/events{/privacy}","received_events_url":"https://api.github.com/users/duncathan/received_events","type":"User","site_admin":false},"body":"Change these while you're at it; put the code on s separate line","created_at":"2015-11-29T05:12:05Z","updated_at":"2015-11-29T05:12:05Z","html_url":"https://github.com/tgstation/-tg-station/pull/13305#discussion_r46087774","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/46087774"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/13305#discussion_r46087774"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305","id":52055135,"html_url":"https://github.com/tgstation/-tg-station/pull/13305","diff_url":"https://github.com/tgstation/-tg-station/pull/13305.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/13305.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/13305","number":13305,"state":"open","locked":false,"title":"Removes relative pathing in hardhat.dm","user":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"body":"I was investigating cakehat code and I saw this and it annoyed me","created_at":"2015-11-29T05:11:10Z","updated_at":"2015-11-29T05:12:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef67355b4d204d2414640101abf6582d65652cab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/13305/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/5ef5a57f73bddab7166dff57f750620bb1ea764b","head":{"label":"KorPhaeron:hardhat","ref":"hardhat","sha":"5ef5a57f73bddab7166dff57f750620bb1ea764b","user":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"repo":{"id":42754791,"name":"kortg","full_name":"KorPhaeron/kortg","owner":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KorPhaeron/kortg","description":"the /tg/station branch of SS13","fork":true,"url":"https://api.github.com/repos/KorPhaeron/kortg","forks_url":"https://api.github.com/repos/KorPhaeron/kortg/forks","keys_url":"https://api.github.com/repos/KorPhaeron/kortg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KorPhaeron/kortg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KorPhaeron/kortg/teams","hooks_url":"https://api.github.com/repos/KorPhaeron/kortg/hooks","issue_events_url":"https://api.github.com/repos/KorPhaeron/kortg/issues/events{/number}","events_url":"https://api.github.com/repos/KorPhaeron/kortg/events","assignees_url":"https://api.github.com/repos/KorPhaeron/kortg/assignees{/user}","branches_url":"https://api.github.com/repos/KorPhaeron/kortg/branches{/branch}","tags_url":"https://api.github.com/repos/KorPhaeron/kortg/tags","blobs_url":"https://api.github.com/repos/KorPhaeron/kortg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KorPhaeron/kortg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KorPhaeron/kortg/git/refs{/sha}","trees_url":"https://api.github.com/repos/KorPhaeron/kortg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KorPhaeron/kortg/statuses/{sha}","languages_url":"https://api.github.com/repos/KorPhaeron/kortg/languages","stargazers_url":"https://api.github.com/repos/KorPhaeron/kortg/stargazers","contributors_url":"https://api.github.com/repos/KorPhaeron/kortg/contributors","subscribers_url":"https://api.github.com/repos/KorPhaeron/kortg/subscribers","subscription_url":"https://api.github.com/repos/KorPhaeron/kortg/subscription","commits_url":"https://api.github.com/repos/KorPhaeron/kortg/commits{/sha}","git_commits_url":"https://api.github.com/repos/KorPhaeron/kortg/git/commits{/sha}","comments_url":"https://api.github.com/repos/KorPhaeron/kortg/comments{/number}","issue_comment_url":"https://api.github.com/repos/KorPhaeron/kortg/issues/comments{/number}","contents_url":"https://api.github.com/repos/KorPhaeron/kortg/contents/{+path}","compare_url":"https://api.github.com/repos/KorPhaeron/kortg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KorPhaeron/kortg/merges","archive_url":"https://api.github.com/repos/KorPhaeron/kortg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KorPhaeron/kortg/downloads","issues_url":"https://api.github.com/repos/KorPhaeron/kortg/issues{/number}","pulls_url":"https://api.github.com/repos/KorPhaeron/kortg/pulls{/number}","milestones_url":"https://api.github.com/repos/KorPhaeron/kortg/milestones{/number}","notifications_url":"https://api.github.com/repos/KorPhaeron/kortg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KorPhaeron/kortg/labels{/name}","releases_url":"https://api.github.com/repos/KorPhaeron/kortg/releases{/id}","created_at":"2015-09-19T01:35:06Z","updated_at":"2015-09-19T01:38:28Z","pushed_at":"2015-11-29T05:10:21Z","git_url":"git://github.com/KorPhaeron/kortg.git","ssh_url":"git@github.com:KorPhaeron/kortg.git","clone_url":"https://github.com/KorPhaeron/kortg.git","svn_url":"https://github.com/KorPhaeron/kortg","homepage":"http://www.tgstation13.org/","size":577391,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"tgstation:master","ref":"master","sha":"13135b646412d4b41d1de5d7b38c260af1d5ee1e","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","created_at":"2012-01-21T17:32:47Z","updated_at":"2015-11-27T21:00:04Z","pushed_at":"2015-11-29T05:11:10Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":720722,"stargazers_count":248,"watchers_count":248,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":884,"mirror_url":null,"open_issues_count":913,"forks":884,"open_issues":913,"watchers":248,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/13305"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/13305"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/13305/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13305/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/5ef5a57f73bddab7166dff57f750620bb1ea764b"}}}}