{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/205982550","pull_request_review_id":141355743,"id":205982550,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk4MjU1MA==","diff_hunk":"@@ -0,0 +1,1176 @@\n+/obj/item/integrated_circuit/input\n+\tcategory_text = \"Input\"\n+\tpower_draw_per_use = 5\n+\n+/obj/item/integrated_circuit/input/external_examine(var/mob/user)\n+\tvar/initial_name = initial(name)\n+\tvar/message\n+\tif(initial_name == name)\n+\t\tmessage = \"There is \\a [src].\"\n+\telse\n+\t\tmessage = \"There is \\a [\"\\improper[initial_name]\"] labeled '[name]'.\"\n+\tto_chat(user, message)\n+\n+\n+/obj/item/integrated_circuit/input/button\n+\tname = \"button\"\n+\tdesc = \"This tiny button must do something, right?\"\n+\ticon_state = \"button\"\n+\tcomplexity = 1\n+\tinputs = list()\n+\toutputs = list()\n+\tactivators = list(\"on pressed\" = IC_PINTYPE_PULSE_OUT)\n+\tspawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH\n+\n+/obj/item/integrated_circuit/input/button/get_topic_data(mob/user)\n+\treturn list(\"Press\" = \"press=1\")\n+\n+/obj/item/integrated_circuit/input/button/OnICTopic(href_list, user)\n+\tif(href_list[\"press\"])\n+\t\tto_chat(user, \"<span class='notice'>You press the button labeled '[src.displayed_name]'.</span>\")\n+\t\tactivate_pin(1)\n+\t\treturn IC_TOPIC_REFRESH\n+\n+/obj/item/integrated_circuit/input/toggle_button\n+\tname = \"toggle button\"\n+\tdesc = \"It toggles on, off, on, off...\"\n+\ticon_state = \"toggle_button\"\n+\tcomplexity = 1\n+\tinputs = list()\n+\toutputs = list(\"on\" = IC_PINTYPE_BOOLEAN)\n+\tactivators = list(\"on toggle\" = IC_PINTYPE_PULSE_OUT)\n+\tspawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH\n+\n+/obj/item/integrated_circuit/input/toggle_button/emp_act()\n+\treturn // This is a mainly physical thing, not affected by electricity\n+\n+/obj/item/integrated_circuit/input/toggle_button/get_topic_data(mob/user)\n+\treturn list(\"Toggle [get_pin_data(IC_OUTPUT, 1) ? \"Off\" : \"On\"]\" = \"toggle=1\")\n+\n+/obj/item/integrated_circuit/input/toggle_button/OnICTopic(href_list, user)\n+\tif(href_list[\"toggle\"])\n+\t\tset_pin_data(IC_OUTPUT, 1, !get_pin_data(IC_OUTPUT, 1))\n+\t\tactivate_pin(1)","path":"code/modules/integrated_electronics/subtypes/input.dm","position":53,"original_position":53,"commit_id":"d38dc87d83f17492d53e2d079c9e64ec45f14d7d","original_commit_id":"d38dc87d83f17492d53e2d079c9e64ec45f14d7d","user":{"login":"CrimsonShrike","id":29737699,"node_id":"MDQ6VXNlcjI5NzM3Njk5","avatar_url":"https://avatars0.githubusercontent.com/u/29737699?v=4","gravatar_id":"","url":"https://api.github.com/users/CrimsonShrike","html_url":"https://github.com/CrimsonShrike","followers_url":"https://api.github.com/users/CrimsonShrike/followers","following_url":"https://api.github.com/users/CrimsonShrike/following{/other_user}","gists_url":"https://api.github.com/users/CrimsonShrike/gists{/gist_id}","starred_url":"https://api.github.com/users/CrimsonShrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrimsonShrike/subscriptions","organizations_url":"https://api.github.com/users/CrimsonShrike/orgs","repos_url":"https://api.github.com/users/CrimsonShrike/repos","events_url":"https://api.github.com/users/CrimsonShrike/events{/privacy}","received_events_url":"https://api.github.com/users/CrimsonShrike/received_events","type":"User","site_admin":false},"body":"also this is probably happening in multiple places, so I'd recommend going over all circuits","created_at":"2018-07-29T18:02:29Z","updated_at":"2018-07-29T18:02:29Z","html_url":"https://github.com/Baystation12/Baystation12/pull/22458#discussion_r205982550","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/205982550"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/22458#discussion_r205982550"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458"}},"in_reply_to_id":205978208},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458","id":204613635,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjEzNjM1","html_url":"https://github.com/Baystation12/Baystation12/pull/22458","diff_url":"https://github.com/Baystation12/Baystation12/pull/22458.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/22458.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/22458","number":22458,"state":"open","locked":false,"title":"Adds TG Circuits","user":{"login":"Kearel","id":6868489,"node_id":"MDQ6VXNlcjY4Njg0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/6868489?v=4","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":"This updates our circuits (really wipes and merges) with that of TGs.\r\n\r\nTG circuits have the following: They require batteries.\r\nTheir printer is much more robust than ours.\r\nThey have a very simple way of making prefabs via JSON strings, and even use it in game to print assemblies built during the game.\r\n\r\nThey also have a few QoL features and additional circuits that would make IC a little funner and easier to handle.","created_at":"2018-07-28T22:24:01Z","updated_at":"2018-07-29T18:02:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f97b954e1354eee5271d7d8b7565dcc3e0fe0b3f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":19402803,"node_id":"MDU6TGFiZWwxOTQwMjgwMw==","url":"https://api.github.com/repos/Baystation12/Baystation12/labels/Map","name":"Map","color":"76428A","default":false},{"id":748360030,"node_id":"MDU6TGFiZWw3NDgzNjAwMzA=","url":"https://api.github.com/repos/Baystation12/Baystation12/labels/Sprites","name":"Sprites","color":"ffddcc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/22458/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d38dc87d83f17492d53e2d079c9e64ec45f14d7d","head":{"label":"Kearel:importedCircuits","ref":"importedCircuits","sha":"d38dc87d83f17492d53e2d079c9e64ec45f14d7d","user":{"login":"Kearel","id":6868489,"node_id":"MDQ6VXNlcjY4Njg0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/6868489?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkzODQ1MDIzMg==","name":"Baystation12","full_name":"Kearel/Baystation12","owner":{"login":"Kearel","id":6868489,"node_id":"MDQ6VXNlcjY4Njg0ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/6868489?v=4","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":"2018-07-28T22:20:56Z","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":847505,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"701e046c0be27c549d83cdab0df49435f8be6841","user":{"login":"Baystation12","id":1174322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzQzMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1174322?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyNzE1OTMz","name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzQzMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1174322?v=4","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":"2018-07-29T04:56:02Z","pushed_at":"2018-07-29T17:59:17Z","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":843377,"stargazers_count":286,"watchers_count":286,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1013,"mirror_url":null,"archived":false,"open_issues_count":1196,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1013,"open_issues":1196,"watchers":286,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/22458"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/22458"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/22458/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/22458/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/d38dc87d83f17492d53e2d079c9e64ec45f14d7d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"CrimsonShrike"}}