{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/34955755","id":34955755,"diff_hunk":"@@ -978,6 +988,32 @@\n \tset category = \"Robot Commands\"\r\n \tset_autosay()\r\n \r\n+/mob/living/silicon/robot/proc/control_headlamp()\r\n+\tif(stat)\r\n+\t\tsrc << \"<span class='danger'>This function is currently offline.</span>\"\r\n+\t\treturn\r\n+\r\n+//Some sort of magical \"modulo\" thing which somehow increments lamp power by 2, until it hits the max and resets to 0.\r\n+\tlamp_intensity = (lamp_intensity+2) % (lamp_max+2)\r","path":"code/modules/mob/living/silicon/robot/robot.dm","position":74,"original_position":74,"commit_id":"da804d3a286e7aebcfbf1cf6298e1839ee1050b4","original_commit_id":"da804d3a286e7aebcfbf1cf6298e1839ee1050b4","user":{"login":"RemieRichards","id":4043781,"avatar_url":"https://avatars.githubusercontent.com/u/4043781?v=3","gravatar_id":"","url":"https://api.github.com/users/RemieRichards","html_url":"https://github.com/RemieRichards","followers_url":"https://api.github.com/users/RemieRichards/followers","following_url":"https://api.github.com/users/RemieRichards/following{/other_user}","gists_url":"https://api.github.com/users/RemieRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/RemieRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemieRichards/subscriptions","organizations_url":"https://api.github.com/users/RemieRichards/orgs","repos_url":"https://api.github.com/users/RemieRichards/repos","events_url":"https://api.github.com/users/RemieRichards/events{/privacy}","received_events_url":"https://api.github.com/users/RemieRichards/received_events","type":"User","site_admin":false},"body":"and if you didn't know, for learning purposes:\r\n\r\n```\r\n0+2 % 12 = 2\r\n2+2 % 12 = 4\r\n4+2 % 12 = 6\r\n6+2 % 12 = 8\r\n8+2 % 12 = 10\r\n10+2 % 12 = 0\r\n```\r\nis how your current code runs, which is what you wanted.\r\nx mod y is x so long as x is not y, or \r\n```\r\nvar/result = 0\r\nif(x != y) \r\n    result = x\r\nelse\r\n    result = 0\r\n```","created_at":"2015-07-19T07:23:40Z","updated_at":"2015-07-19T07:23:40Z","html_url":"https://github.com/tgstation/-tg-station/pull/10343#discussion_r34955755","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/34955755"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/10343#discussion_r34955755"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343","id":39149912,"html_url":"https://github.com/tgstation/-tg-station/pull/10343","diff_url":"https://github.com/tgstation/-tg-station/pull/10343.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/10343.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/10343","number":10343,"state":"open","locked":false,"title":"[Review] Cyborg headlamps!","user":{"login":"GunHog","id":4955510,"avatar_url":"https://avatars.githubusercontent.com/u/4955510?v=3","gravatar_id":"","url":"https://api.github.com/users/GunHog","html_url":"https://github.com/GunHog","followers_url":"https://api.github.com/users/GunHog/followers","following_url":"https://api.github.com/users/GunHog/following{/other_user}","gists_url":"https://api.github.com/users/GunHog/gists{/gist_id}","starred_url":"https://api.github.com/users/GunHog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunHog/subscriptions","organizations_url":"https://api.github.com/users/GunHog/orgs","repos_url":"https://api.github.com/users/GunHog/repos","events_url":"https://api.github.com/users/GunHog/events{/privacy}","received_events_url":"https://api.github.com/users/GunHog/received_events","type":"User","site_admin":false},"body":"Cyborgs now have built in headlamps, controlled by a screen button. \r\n~~Lighting intensity for cyborgs are the same values as they were previously, including borgs that had different flashlight types.~~\r\n\r\nSprites by @xxalpha!\r\n\r\nThe headlamp has five power levels, most having a power cost:\r\n- Level 1, half a standard flashlight, costing zero power and showing no light sprite.\r\n- Level 2, standard flashlights, 4W per tick power cost. Sprite shows lights.\r\n- Level 3, mining lantern level, 8W per tick.\r\n- Level 4, high power level, 12W per tick.\r\n- Level 5, floodlights, 16W per tick. Use sparingly!\r\n\r\nBeing put into a stat (stuns) will disable the lamp, including being hit with EMP and having no cell.\r\n\r\nCyborgs no longer have a flashlight module, as they are no longer needed!\r\n- Partially addresses https://github.com/tgstation/-tg-station/issues/10288.\r\n\r\nBorgies!! (Ignore the chat, that is debug text only!)\r\n![screenshot 2015-07-14 10 04 49](https://cloud.githubusercontent.com/assets/4955510/8685574/1709b5c4-2a45-11e5-803d-6f919daddb90.png)\r\n\r\nService Borgies!\r\n![screenshot 2015-07-14 16 06 14](https://cloud.githubusercontent.com/assets/4955510/8685580/2709cf9a-2a45-11e5-89c5-71221f33b22b.png)\r\n\r\n","created_at":"2015-07-03T06:48:50Z","updated_at":"2015-07-19T07:23:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c14144a1655c7e5312770c0088f07ef48fb22049","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343/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/10343/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/da804d3a286e7aebcfbf1cf6298e1839ee1050b4","head":{"label":"GunHog:Borgie_Lights","ref":"Borgie_Lights","sha":"da804d3a286e7aebcfbf1cf6298e1839ee1050b4","user":{"login":"GunHog","id":4955510,"avatar_url":"https://avatars.githubusercontent.com/u/4955510?v=3","gravatar_id":"","url":"https://api.github.com/users/GunHog","html_url":"https://github.com/GunHog","followers_url":"https://api.github.com/users/GunHog/followers","following_url":"https://api.github.com/users/GunHog/following{/other_user}","gists_url":"https://api.github.com/users/GunHog/gists{/gist_id}","starred_url":"https://api.github.com/users/GunHog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunHog/subscriptions","organizations_url":"https://api.github.com/users/GunHog/orgs","repos_url":"https://api.github.com/users/GunHog/repos","events_url":"https://api.github.com/users/GunHog/events{/privacy}","received_events_url":"https://api.github.com/users/GunHog/received_events","type":"User","site_admin":false},"repo":{"id":18711511,"name":"-tg-station","full_name":"GunHog/-tg-station","owner":{"login":"GunHog","id":4955510,"avatar_url":"https://avatars.githubusercontent.com/u/4955510?v=3","gravatar_id":"","url":"https://api.github.com/users/GunHog","html_url":"https://github.com/GunHog","followers_url":"https://api.github.com/users/GunHog/followers","following_url":"https://api.github.com/users/GunHog/following{/other_user}","gists_url":"https://api.github.com/users/GunHog/gists{/gist_id}","starred_url":"https://api.github.com/users/GunHog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GunHog/subscriptions","organizations_url":"https://api.github.com/users/GunHog/orgs","repos_url":"https://api.github.com/users/GunHog/repos","events_url":"https://api.github.com/users/GunHog/events{/privacy}","received_events_url":"https://api.github.com/users/GunHog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GunHog/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/GunHog/-tg-station","forks_url":"https://api.github.com/repos/GunHog/-tg-station/forks","keys_url":"https://api.github.com/repos/GunHog/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GunHog/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GunHog/-tg-station/teams","hooks_url":"https://api.github.com/repos/GunHog/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/GunHog/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/GunHog/-tg-station/events","assignees_url":"https://api.github.com/repos/GunHog/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/GunHog/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/GunHog/-tg-station/tags","blobs_url":"https://api.github.com/repos/GunHog/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GunHog/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GunHog/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/GunHog/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GunHog/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/GunHog/-tg-station/languages","stargazers_url":"https://api.github.com/repos/GunHog/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/GunHog/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/GunHog/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/GunHog/-tg-station/subscription","commits_url":"https://api.github.com/repos/GunHog/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/GunHog/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/GunHog/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/GunHog/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/GunHog/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/GunHog/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GunHog/-tg-station/merges","archive_url":"https://api.github.com/repos/GunHog/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GunHog/-tg-station/downloads","issues_url":"https://api.github.com/repos/GunHog/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/GunHog/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/GunHog/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/GunHog/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GunHog/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/GunHog/-tg-station/releases{/id}","created_at":"2014-04-12T18:34:59Z","updated_at":"2015-05-08T14:21:47Z","pushed_at":"2015-07-19T07:05:03Z","git_url":"git://github.com/GunHog/-tg-station.git","ssh_url":"git@github.com:GunHog/-tg-station.git","clone_url":"https://github.com/GunHog/-tg-station.git","svn_url":"https://github.com/GunHog/-tg-station","homepage":"","size":517690,"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":"4aede30c5ea5a76f49380ca2d5274faac3131bf2","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-07-18T01:56:53Z","pushed_at":"2015-07-19T07:18:08Z","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":723476,"stargazers_count":233,"watchers_count":233,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":788,"mirror_url":null,"open_issues_count":893,"forks":788,"open_issues":893,"watchers":233,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/10343"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/10343"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/10343/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/10343/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/10343/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/da804d3a286e7aebcfbf1cf6298e1839ee1050b4"}}}}