{"action":"created","comment":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/52911617","id":52911617,"diff_hunk":"@@ -0,0 +1,89 @@\n+//////////////////////////////////////////\n+//\t\t\t\tSCP 294\t\t\t\t\t//\n+//\t\t\t\t\t\t\t\t\t\t//\n+//\tThis is a child of a chemistry\t\t//\n+//\tdispenser. Info of how it works at\t//\n+//\thttp://www.scp-wiki.net/scp-294\t\t//\n+//\t\t\t\t\t\t\t\t\t\t//\n+//////////////////////////////////////////\n+\n+/obj/machinery/chem_dispenser/scp_294\n+\tname = \"\\improper SCP 294\"\n+\tdesc = \"It appears to be a standard coffee vending machine, the only noticeable difference being an entry touchpad with buttons corresponding to an English QWERTY keyboard.\"\n+\ticon = \t'icons/obj/vending.dmi'\n+\ticon_state = \"coffee\"\n+\tenergy = 10\n+\tmax_energy = 10\n+\tamount = 10\n+\tdispensable_reagents = null\n+\tvar/list/prohibited_reagents = list(\"adminodrazine\")\n+\n+\tmachine_flags = WRENCHMOVE | FIXED2WORK\n+\n+/obj/machinery/chem_dispenser/scp_294/ui_interact(mob/user, ui_key = \"main\", var/datum/nanoui/ui = null)\n+\tif(stat & (BROKEN|NOPOWER)) return\n+\tif((user.stat && !isobserver(user)) || user.restrained()) return\n+\tif(!chemical_reagents_list || !chemical_reagents_list.len) return\n+\t// this is the data which will be sent to the ui\n+\tvar/data[0]\n+\tdata[\"isBeakerLoaded\"] = beaker ? 1 : 0\n+\n+\tvar beakerContents[0]\n+\tvar beakerCurrentVolume = 0\n+\tif(beaker && beaker.reagents && beaker.reagents.reagent_list.len)\n+\t\tfor(var/datum/reagent/R in beaker.reagents.reagent_list)\n+\t\t\tbeakerContents.Add(list(list(\"name\" = R.name, \"volume\" = R.volume))) // list in a list because Byond merges the first list...\n+\t\t\tbeakerCurrentVolume += R.volume\n+\tdata[\"beakerContents\"] = beakerContents\n+\n+\tif (beaker)\n+\t\tdata[\"beakerCurrentVolume\"] = beakerCurrentVolume\n+\t\tdata[\"beakerMaxVolume\"] = beaker.volume\n+\telse\n+\t\tdata[\"beakerCurrentVolume\"] = null\n+\t\tdata[\"beakerMaxVolume\"] = null\n+\n+\t// update the ui if it exists, returns null if no ui is passed/found\n+\tui = nanomanager.try_update_ui(user, src, ui_key, ui, data)\n+\tif (!ui)\n+\t\t// the ui does not exist, so we'll create a new() one\n+        // for a list of parameters and their descriptions see the code docs in \\code\\\\modules\\nano\\nanoui.dm\n+\t\tui = new(user, src, ui_key, \"scp_294.tmpl\", \"[src.name]\", 390, 315)\n+\t\t// when the ui is first opened this is the data it will use\n+\t\tui.set_initial_data(data)\n+\t\t// open the new ui window\n+\t\tui.open()\n+\n+/obj/machinery/chem_dispenser/scp_294/Topic(href, href_list)\n+\tif(href_list[\"close\"])\n+\t\tif(usr.machine == src) usr.unset_machine()\n+\t\treturn 1\n+\tif(stat & (NOPOWER|BROKEN))","path":"code/game/machinery/scp_294.dm","position":61,"original_position":61,"commit_id":"1af4f0cede7ae48c18bb4a7aee39d07fe982d99d","original_commit_id":"1af4f0cede7ae48c18bb4a7aee39d07fe982d99d","user":{"login":"PJB3005","id":8107459,"avatar_url":"https://avatars.githubusercontent.com/u/8107459?v=3","gravatar_id":"","url":"https://api.github.com/users/PJB3005","html_url":"https://github.com/PJB3005","followers_url":"https://api.github.com/users/PJB3005/followers","following_url":"https://api.github.com/users/PJB3005/following{/other_user}","gists_url":"https://api.github.com/users/PJB3005/gists{/gist_id}","starred_url":"https://api.github.com/users/PJB3005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PJB3005/subscriptions","organizations_url":"https://api.github.com/users/PJB3005/orgs","repos_url":"https://api.github.com/users/PJB3005/repos","events_url":"https://api.github.com/users/PJB3005/events{/privacy}","received_events_url":"https://api.github.com/users/PJB3005/received_events","type":"User","site_admin":false},"body":"Sanity is more than this, specifically `..()`","created_at":"2016-02-15T15:31:12Z","updated_at":"2016-02-15T15:31:12Z","html_url":"https://github.com/d3athrow/vgstation13/pull/8291#discussion_r52911617","pull_request_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291","_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/52911617"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/8291#discussion_r52911617"},"pull_request":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291"}}},"pull_request":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291","id":59318434,"html_url":"https://github.com/d3athrow/vgstation13/pull/8291","diff_url":"https://github.com/d3athrow/vgstation13/pull/8291.diff","patch_url":"https://github.com/d3athrow/vgstation13/pull/8291.patch","issue_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/8291","number":8291,"state":"open","locked":false,"title":"SCP 294","user":{"login":"Zth--","id":11085293,"avatar_url":"https://avatars.githubusercontent.com/u/11085293?v=3","gravatar_id":"","url":"https://api.github.com/users/Zth--","html_url":"https://github.com/Zth--","followers_url":"https://api.github.com/users/Zth--/followers","following_url":"https://api.github.com/users/Zth--/following{/other_user}","gists_url":"https://api.github.com/users/Zth--/gists{/gist_id}","starred_url":"https://api.github.com/users/Zth--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zth--/subscriptions","organizations_url":"https://api.github.com/users/Zth--/orgs","repos_url":"https://api.github.com/users/Zth--/repos","events_url":"https://api.github.com/users/Zth--/events{/privacy}","received_events_url":"https://api.github.com/users/Zth--/received_events","type":"User","site_admin":false},"body":"I'll open this for discussion, this adds scp 294 (read the link for more info)\r\nhttp://www.scp-wiki.net/scp-294\r\nhttp://puu.sh/n8nJi/72aac20bb1.png\r\n\r\nthis machine is OP since it can dispense stuff like spirit breaker toxin, so the question is:\r\nshould this be an admin-only spawnable machine or should it be edited to be a large artifact?","created_at":"2016-02-15T03:46:57Z","updated_at":"2016-02-15T15:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edd669f78653c847b925612457de7fb758d4c306","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291/commits","review_comments_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291/comments","review_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/8291/comments","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/1af4f0cede7ae48c18bb4a7aee39d07fe982d99d","head":{"label":"Zth--:1","ref":"1","sha":"1af4f0cede7ae48c18bb4a7aee39d07fe982d99d","user":{"login":"Zth--","id":11085293,"avatar_url":"https://avatars.githubusercontent.com/u/11085293?v=3","gravatar_id":"","url":"https://api.github.com/users/Zth--","html_url":"https://github.com/Zth--","followers_url":"https://api.github.com/users/Zth--/followers","following_url":"https://api.github.com/users/Zth--/following{/other_user}","gists_url":"https://api.github.com/users/Zth--/gists{/gist_id}","starred_url":"https://api.github.com/users/Zth--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zth--/subscriptions","organizations_url":"https://api.github.com/users/Zth--/orgs","repos_url":"https://api.github.com/users/Zth--/repos","events_url":"https://api.github.com/users/Zth--/events{/privacy}","received_events_url":"https://api.github.com/users/Zth--/received_events","type":"User","site_admin":false},"repo":{"id":49606477,"name":"vgstation13","full_name":"Zth--/vgstation13","owner":{"login":"Zth--","id":11085293,"avatar_url":"https://avatars.githubusercontent.com/u/11085293?v=3","gravatar_id":"","url":"https://api.github.com/users/Zth--","html_url":"https://github.com/Zth--","followers_url":"https://api.github.com/users/Zth--/followers","following_url":"https://api.github.com/users/Zth--/following{/other_user}","gists_url":"https://api.github.com/users/Zth--/gists{/gist_id}","starred_url":"https://api.github.com/users/Zth--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zth--/subscriptions","organizations_url":"https://api.github.com/users/Zth--/orgs","repos_url":"https://api.github.com/users/Zth--/repos","events_url":"https://api.github.com/users/Zth--/events{/privacy}","received_events_url":"https://api.github.com/users/Zth--/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zth--/vgstation13","description":"Butts","fork":true,"url":"https://api.github.com/repos/Zth--/vgstation13","forks_url":"https://api.github.com/repos/Zth--/vgstation13/forks","keys_url":"https://api.github.com/repos/Zth--/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zth--/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zth--/vgstation13/teams","hooks_url":"https://api.github.com/repos/Zth--/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/Zth--/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/Zth--/vgstation13/events","assignees_url":"https://api.github.com/repos/Zth--/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/Zth--/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/Zth--/vgstation13/tags","blobs_url":"https://api.github.com/repos/Zth--/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zth--/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zth--/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zth--/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zth--/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/Zth--/vgstation13/languages","stargazers_url":"https://api.github.com/repos/Zth--/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/Zth--/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/Zth--/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/Zth--/vgstation13/subscription","commits_url":"https://api.github.com/repos/Zth--/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zth--/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zth--/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zth--/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zth--/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/Zth--/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zth--/vgstation13/merges","archive_url":"https://api.github.com/repos/Zth--/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zth--/vgstation13/downloads","issues_url":"https://api.github.com/repos/Zth--/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/Zth--/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/Zth--/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/Zth--/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zth--/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/Zth--/vgstation13/releases{/id}","deployments_url":"https://api.github.com/repos/Zth--/vgstation13/deployments","created_at":"2016-01-13T22:32:12Z","updated_at":"2016-01-13T22:32:30Z","pushed_at":"2016-02-15T06:31:50Z","git_url":"git://github.com/Zth--/vgstation13.git","ssh_url":"git@github.com:Zth--/vgstation13.git","clone_url":"https://github.com/Zth--/vgstation13.git","svn_url":"https://github.com/Zth--/vgstation13","homepage":"","size":843735,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"Bleeding-Edge"}},"base":{"label":"d3athrow:Bleeding-Edge","ref":"Bleeding-Edge","sha":"c09339a47c5c358b8527dc290dc1504be466391d","user":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"repo":{"id":10441188,"name":"vgstation13","full_name":"d3athrow/vgstation13","owner":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d3athrow/vgstation13","description":"Butts","fork":true,"url":"https://api.github.com/repos/d3athrow/vgstation13","forks_url":"https://api.github.com/repos/d3athrow/vgstation13/forks","keys_url":"https://api.github.com/repos/d3athrow/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3athrow/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3athrow/vgstation13/teams","hooks_url":"https://api.github.com/repos/d3athrow/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/d3athrow/vgstation13/events","assignees_url":"https://api.github.com/repos/d3athrow/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/d3athrow/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/d3athrow/vgstation13/tags","blobs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3athrow/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3athrow/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/d3athrow/vgstation13/languages","stargazers_url":"https://api.github.com/repos/d3athrow/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/d3athrow/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/d3athrow/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/d3athrow/vgstation13/subscription","commits_url":"https://api.github.com/repos/d3athrow/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3athrow/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3athrow/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/d3athrow/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3athrow/vgstation13/merges","archive_url":"https://api.github.com/repos/d3athrow/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3athrow/vgstation13/downloads","issues_url":"https://api.github.com/repos/d3athrow/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/d3athrow/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/d3athrow/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3athrow/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/d3athrow/vgstation13/releases{/id}","deployments_url":"https://api.github.com/repos/d3athrow/vgstation13/deployments","created_at":"2013-06-02T19:39:54Z","updated_at":"2016-02-14T12:14:12Z","pushed_at":"2016-02-15T06:31:51Z","git_url":"git://github.com/d3athrow/vgstation13.git","ssh_url":"git@github.com:d3athrow/vgstation13.git","clone_url":"https://github.com/d3athrow/vgstation13.git","svn_url":"https://github.com/d3athrow/vgstation13","homepage":"","size":1047053,"stargazers_count":76,"watchers_count":76,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":211,"mirror_url":null,"open_issues_count":1063,"forks":211,"open_issues":1063,"watchers":76,"default_branch":"Bleeding-Edge"}},"_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/8291"},"issue":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/8291"},"comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/8291/comments"},"review_comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291/comments"},"review_comment":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/8291/commits"},"statuses":{"href":"https://api.github.com/repos/d3athrow/vgstation13/statuses/1af4f0cede7ae48c18bb4a7aee39d07fe982d99d"}}}}