{"action":"created","comment":{"url":"https://api.github.com/repos/yogstation13/yogstation/pulls/comments/57997027","id":57997027,"diff_hunk":"@@ -181,17 +191,163 @@ for reference:\n \t\t\tvisible_message(\"<span class='danger'>[user] repairs \\the [src]!</span>\")\r\n \t\t\treturn\r\n \t\treturn\r\n+\r\n+\telse if (istype(W, /obj/item/weapon/screwdriver))\r\n+\r\n+\t\tif (src.locked == 1.0)\r\n+\t\t\tuser << \"<span class='danger'>You can't eject anything from the barrier while it's locked!</span>\"\r\n+\t\t\treturn\r\n+\r\n+\t\tif (attachedsignaler)\r\n+\t\t\tnew /obj/item/device/assembly/signaler(src.loc)\r\n+\t\t\tattachedsignaler = null\r\n+\t\t\tdesc = \"A deployable barrier. Swipe your ID card to lock/unlock it.\"\r\n+\t\t\tinitialdesc = desc\r\n+\t\t\tdesc_report() //puts the cherry ontop of our... codey sundae\r\n+\t\t\tuser.visible_message( \\\r\n+\t\t\t\t\t\t\"[user] deattaches the signaler from the barrier.\", \\\r\n+\t\t\t\t\t\t\"<span class='notice'>You unscrew the signaler from the barrier.</span>\")\r\n+\t\t\treturn\r\n+\r\n+\t\tif (installedkey)\r\n+\t\t\tvar/turf/T = get_turf(src.loc)\r\n+\t\t\tif(T)\r\n+\t\t\t\tinstalledkey.loc = T\r\n+\t\t\t\tinstalledkey = null\r\n+\t\t\tattachedradio.frequency = 0\r\n+\t\t\tuser.visible_message(\"[user] unscrews the encryption key from the barrier.\")\r\n+\t\t\treturn\r\n+\r\n+\r\n+\t\tif (!installedkey && !attachedsignaler)\r\n+\t\t\tuser << \"<span class='danger'>[src] doesn't have anything to eject.</span>\"\r\n+\t\t\treturn\r\n+\r\n+\telse if (istype(W, /obj/item/device/encryptionkey))\r\n+\r\n+\t\tif (src.locked == 1.0)\r\n+\t\t\tuser << \"<span class='danger'>You can't install anything while the barrier is locked!</span>\"\r\n+\t\t\treturn\r\n+\r\n+\t\tvar/initialkey = installedkey\r\n+\r\n+\t\tif(installedkey)\r\n+\t\t\tuser << \"[src] already has an encryption key installed!\"\r\n+\t\t\treturn\r\n+\r\n+\t\tinstalledkey = W\r\n+\r\n+\t\tif(installedkey.channels.Find(\"Security\"))\r\n+\t\t\tvisible_message(\"[src] swallows the encryption key and vibrates happily!\")\r\n+\t\t\tattachedradio.set_frequency(SEC_FREQ)\r\n+\t\t\tradio_freq = SEC_FREQ\r\n+\t\t\tif(istype(W, /obj/item/device/encryptionkey/headset_sec))\r\n+\t\t\t\tinstalledkey = new /obj/item/device/encryptionkey/headset_sec\r\n+\t\t\tif (istype(W, /obj/item/device/encryptionkey/heads/captain))\r\n+\t\t\t\tinstalledkey = new /obj/item/device/encryptionkey/heads/captain\r\n+\t\t\tif (istype(W, /obj/item/device/encryptionkey/heads/hos))\r\n+\t\t\t\tinstalledkey = new /obj/item/device/encryptionkey/heads/hos\r\n+\t\t\treturn qdel(W)\r\n+\r\n+/*\t\tIs this even needed? Only the future can tell.\r\n+\t\telse if(installedkey.channels.Find(\"Syndicate\"))\r\n+\t\t\tif(src.emagged < 1)\r\n+\t\t\t\tvisible_message(\"[src] rejects the encryption key and vibrates aggressively!\")\r\n+\t\t\t\tinstalledkey = initialkey\r\n+\t\t\t\treturn\r\n+\t\t\telse\r\n+\t\t\t\tvisible_message(\"[src] swallows the encryption key and vibrates happily!\")\r\n+\t\t\t\tattachedradio.set_frequency(SYND_FREQ)\r\n+\t\t\t\tradio_freq = SYND_FREQ\r\n+\t\t\t\tif (istype(W, /obj/item/device/encryptionkey/syndicate))\r\n+\t\t\t\t\tinstalledkey = new /obj/item/device/encryptionkey/syndicate\r\n+\t\t\t\tif (istype(W, /obj/item/device/encryptionkey))\r\n+\t\t\t\t\tinstalledkey = new /obj/item/device/encryptionkey/binary\r\n+\t\t\t\treturn qdel(W) */\r\n+\r\n+\t\telse\r\n+\t\t\tvisible_message(\"[src] rejects the encryption key and vibrates angrily!\")\r\n+\t\t\tinstalledkey = initialkey\r\n+\t\t\treturn\r\n+\r\n+\telse if(issignaler(W))\r\n+\r\n+\t\tif(attachedsignaler)\r\n+\t\t\tuser << \"<span class='notice'>There's a signaler attatched to the barrier!</span>\"\r\n+\t\t\treturn\r\n+\r\n+\t\tattachedsignaler = W\r\n+\r\n+\t\tif(attachedsignaler.secured)\r\n+\t\t\tuser <<\"<span class='danger'>The device is secured.</span>\"\r\n+\t\t\treturn\r\n+\r\n+\t\tif(!radio_freq)\r\n+\t\t\tuser << \"<span class='danger'>There isn't an encryption key associated with the barrier to signal to!</span>\"\r\n+\t\t\treturn\r\n+\r\n+\t\telse\r\n+\t\t\tuser.visible_message( \\\r\n+\t\t\t\t\t\t\"[user] attaches the signaler to the barrier.\", \\\r\n+\t\t\t\t\t\t\"<span class='notice'>You attach the signaler to the barrier.</span>\")\r\n+\t\t\tattachedsignaler = 1\r\n+\t\t\tdesc = \"[src.desc] It also appears to have a remote signaling device attatched to it.\"\r\n+\t\t\tinitialdesc = desc\r\n+\t\t\tqdel(W)\r\n+\t\treturn\r\n+\r\n \telse\r\n+\t\tuser.changeNext_move(CLICK_CD_MELEE)\r\n \t\tswitch(W.damtype)\r\n \t\t\tif(\"fire\")\r\n \t\t\t\tsrc.health -= W.force * 0.75\r\n \t\t\tif(\"brute\")\r\n \t\t\t\tsrc.health -= W.force * 0.5\r\n \t\t\telse\r\n+\r\n+\t\t// announcing damage taking place\r\n+\r\n+\t\tif (attachedradio.frequency == SEC_FREQ && !src.emagged || attachedradio.frequency == SYND_FREQ) // security / syndicate\r\n+\t\t\tvar/thebarrier = \"A deployable barrier\"\r\n+\t\t\tmessage_admins(\"IT FLEW.\")\r","path":"code/game/machinery/deployable.dm","position":145,"original_position":145,"commit_id":"af7a914d44620f1524c0d683c47493d02b3152a0","original_commit_id":"af7a914d44620f1524c0d683c47493d02b3152a0","user":{"login":"Cruix","id":16478175,"avatar_url":"https://avatars.githubusercontent.com/u/16478175?v=3","gravatar_id":"","url":"https://api.github.com/users/Cruix","html_url":"https://github.com/Cruix","followers_url":"https://api.github.com/users/Cruix/followers","following_url":"https://api.github.com/users/Cruix/following{/other_user}","gists_url":"https://api.github.com/users/Cruix/gists{/gist_id}","starred_url":"https://api.github.com/users/Cruix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cruix/subscriptions","organizations_url":"https://api.github.com/users/Cruix/orgs","repos_url":"https://api.github.com/users/Cruix/repos","events_url":"https://api.github.com/users/Cruix/events{/privacy}","received_events_url":"https://api.github.com/users/Cruix/received_events","type":"User","site_admin":false},"body":"Please make this more descriptive, and maybe even add a jump href.","created_at":"2016-03-31T03:29:33Z","updated_at":"2016-03-31T03:29:33Z","html_url":"https://github.com/yogstation13/yogstation/pull/749#discussion_r57997027","pull_request_url":"https://api.github.com/repos/yogstation13/yogstation/pulls/749","_links":{"self":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/comments/57997027"},"html":{"href":"https://github.com/yogstation13/yogstation/pull/749#discussion_r57997027"},"pull_request":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/749"}}},"pull_request":{"url":"https://api.github.com/repos/yogstation13/yogstation/pulls/749","id":64729593,"html_url":"https://github.com/yogstation13/yogstation/pull/749","diff_url":"https://github.com/yogstation13/yogstation/pull/749.diff","patch_url":"https://github.com/yogstation13/yogstation/pull/749.patch","issue_url":"https://api.github.com/repos/yogstation13/yogstation/issues/749","number":749,"state":"open","locked":false,"title":"Deployable Barrier Buff v2","user":{"login":"Super3222","id":16735500,"avatar_url":"https://avatars.githubusercontent.com/u/16735500?v=3","gravatar_id":"","url":"https://api.github.com/users/Super3222","html_url":"https://github.com/Super3222","followers_url":"https://api.github.com/users/Super3222/followers","following_url":"https://api.github.com/users/Super3222/following{/other_user}","gists_url":"https://api.github.com/users/Super3222/gists{/gist_id}","starred_url":"https://api.github.com/users/Super3222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Super3222/subscriptions","organizations_url":"https://api.github.com/users/Super3222/orgs","repos_url":"https://api.github.com/users/Super3222/repos","events_url":"https://api.github.com/users/Super3222/events{/privacy}","received_events_url":"https://api.github.com/users/Super3222/received_events","type":"User","site_admin":false},"body":"### Intent of your Pull Request\r\n\r\nBuffs the deployable barrier.\r\nVersion 1: #634 \r\n\r\n*Deployable barrier now accepts encryption keys that associate with the security channel (ex: cap, hos, etc.)\r\n*Deployable barriers when taking damage (and when they have an encryption key installed) will report their state to the security channel\r\n*You can attach signalers to the deployable barrier, so they report their locations with their state\r\n*You can now tell how much damage a barrier has taken by examining it.\r\n*Added a signaler to the map, spawns in the security office.\r\n*There's now a click delay when you are spam-clicking the barrier. So they don't blow up so easily now\r\n*Upon detonating, a deployable barrier will report that it's exploding.","created_at":"2016-03-31T03:20:44Z","updated_at":"2016-03-31T03:29:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b109c568ed5ac7e77743f84687ff500172c97ba1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yogstation13/yogstation/pulls/749/commits","review_comments_url":"https://api.github.com/repos/yogstation13/yogstation/pulls/749/comments","review_comment_url":"https://api.github.com/repos/yogstation13/yogstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yogstation13/yogstation/issues/749/comments","statuses_url":"https://api.github.com/repos/yogstation13/yogstation/statuses/af7a914d44620f1524c0d683c47493d02b3152a0","head":{"label":"Super3222:SecurityBarrierBuffVersion2","ref":"SecurityBarrierBuffVersion2","sha":"af7a914d44620f1524c0d683c47493d02b3152a0","user":{"login":"Super3222","id":16735500,"avatar_url":"https://avatars.githubusercontent.com/u/16735500?v=3","gravatar_id":"","url":"https://api.github.com/users/Super3222","html_url":"https://github.com/Super3222","followers_url":"https://api.github.com/users/Super3222/followers","following_url":"https://api.github.com/users/Super3222/following{/other_user}","gists_url":"https://api.github.com/users/Super3222/gists{/gist_id}","starred_url":"https://api.github.com/users/Super3222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Super3222/subscriptions","organizations_url":"https://api.github.com/users/Super3222/orgs","repos_url":"https://api.github.com/users/Super3222/repos","events_url":"https://api.github.com/users/Super3222/events{/privacy}","received_events_url":"https://api.github.com/users/Super3222/received_events","type":"User","site_admin":false},"repo":{"id":50214081,"name":"yogstation","full_name":"Super3222/yogstation","owner":{"login":"Super3222","id":16735500,"avatar_url":"https://avatars.githubusercontent.com/u/16735500?v=3","gravatar_id":"","url":"https://api.github.com/users/Super3222","html_url":"https://github.com/Super3222","followers_url":"https://api.github.com/users/Super3222/followers","following_url":"https://api.github.com/users/Super3222/following{/other_user}","gists_url":"https://api.github.com/users/Super3222/gists{/gist_id}","starred_url":"https://api.github.com/users/Super3222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Super3222/subscriptions","organizations_url":"https://api.github.com/users/Super3222/orgs","repos_url":"https://api.github.com/users/Super3222/repos","events_url":"https://api.github.com/users/Super3222/events{/privacy}","received_events_url":"https://api.github.com/users/Super3222/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Super3222/yogstation","description":"Yogstation13's master code source","fork":true,"url":"https://api.github.com/repos/Super3222/yogstation","forks_url":"https://api.github.com/repos/Super3222/yogstation/forks","keys_url":"https://api.github.com/repos/Super3222/yogstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Super3222/yogstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Super3222/yogstation/teams","hooks_url":"https://api.github.com/repos/Super3222/yogstation/hooks","issue_events_url":"https://api.github.com/repos/Super3222/yogstation/issues/events{/number}","events_url":"https://api.github.com/repos/Super3222/yogstation/events","assignees_url":"https://api.github.com/repos/Super3222/yogstation/assignees{/user}","branches_url":"https://api.github.com/repos/Super3222/yogstation/branches{/branch}","tags_url":"https://api.github.com/repos/Super3222/yogstation/tags","blobs_url":"https://api.github.com/repos/Super3222/yogstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Super3222/yogstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Super3222/yogstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Super3222/yogstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Super3222/yogstation/statuses/{sha}","languages_url":"https://api.github.com/repos/Super3222/yogstation/languages","stargazers_url":"https://api.github.com/repos/Super3222/yogstation/stargazers","contributors_url":"https://api.github.com/repos/Super3222/yogstation/contributors","subscribers_url":"https://api.github.com/repos/Super3222/yogstation/subscribers","subscription_url":"https://api.github.com/repos/Super3222/yogstation/subscription","commits_url":"https://api.github.com/repos/Super3222/yogstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Super3222/yogstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Super3222/yogstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Super3222/yogstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Super3222/yogstation/contents/{+path}","compare_url":"https://api.github.com/repos/Super3222/yogstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Super3222/yogstation/merges","archive_url":"https://api.github.com/repos/Super3222/yogstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Super3222/yogstation/downloads","issues_url":"https://api.github.com/repos/Super3222/yogstation/issues{/number}","pulls_url":"https://api.github.com/repos/Super3222/yogstation/pulls{/number}","milestones_url":"https://api.github.com/repos/Super3222/yogstation/milestones{/number}","notifications_url":"https://api.github.com/repos/Super3222/yogstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Super3222/yogstation/labels{/name}","releases_url":"https://api.github.com/repos/Super3222/yogstation/releases{/id}","deployments_url":"https://api.github.com/repos/Super3222/yogstation/deployments","created_at":"2016-01-22T23:30:22Z","updated_at":"2016-01-22T23:30:30Z","pushed_at":"2016-03-31T03:15:50Z","git_url":"git://github.com/Super3222/yogstation.git","ssh_url":"git@github.com:Super3222/yogstation.git","clone_url":"https://github.com/Super3222/yogstation.git","svn_url":"https://github.com/Super3222/yogstation","homepage":"http://www.yogstation.net","size":511652,"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":"yogstation13:dev","ref":"dev","sha":"1fc8a198ea35c2808956f50ba0053513ef739483","user":{"login":"yogstation13","id":16735403,"avatar_url":"https://avatars.githubusercontent.com/u/16735403?v=3","gravatar_id":"","url":"https://api.github.com/users/yogstation13","html_url":"https://github.com/yogstation13","followers_url":"https://api.github.com/users/yogstation13/followers","following_url":"https://api.github.com/users/yogstation13/following{/other_user}","gists_url":"https://api.github.com/users/yogstation13/gists{/gist_id}","starred_url":"https://api.github.com/users/yogstation13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogstation13/subscriptions","organizations_url":"https://api.github.com/users/yogstation13/orgs","repos_url":"https://api.github.com/users/yogstation13/repos","events_url":"https://api.github.com/users/yogstation13/events{/privacy}","received_events_url":"https://api.github.com/users/yogstation13/received_events","type":"Organization","site_admin":false},"repo":{"id":49732192,"name":"yogstation","full_name":"yogstation13/yogstation","owner":{"login":"yogstation13","id":16735403,"avatar_url":"https://avatars.githubusercontent.com/u/16735403?v=3","gravatar_id":"","url":"https://api.github.com/users/yogstation13","html_url":"https://github.com/yogstation13","followers_url":"https://api.github.com/users/yogstation13/followers","following_url":"https://api.github.com/users/yogstation13/following{/other_user}","gists_url":"https://api.github.com/users/yogstation13/gists{/gist_id}","starred_url":"https://api.github.com/users/yogstation13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogstation13/subscriptions","organizations_url":"https://api.github.com/users/yogstation13/orgs","repos_url":"https://api.github.com/users/yogstation13/repos","events_url":"https://api.github.com/users/yogstation13/events{/privacy}","received_events_url":"https://api.github.com/users/yogstation13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yogstation13/yogstation","description":"Yogstation13's master code source","fork":false,"url":"https://api.github.com/repos/yogstation13/yogstation","forks_url":"https://api.github.com/repos/yogstation13/yogstation/forks","keys_url":"https://api.github.com/repos/yogstation13/yogstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yogstation13/yogstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yogstation13/yogstation/teams","hooks_url":"https://api.github.com/repos/yogstation13/yogstation/hooks","issue_events_url":"https://api.github.com/repos/yogstation13/yogstation/issues/events{/number}","events_url":"https://api.github.com/repos/yogstation13/yogstation/events","assignees_url":"https://api.github.com/repos/yogstation13/yogstation/assignees{/user}","branches_url":"https://api.github.com/repos/yogstation13/yogstation/branches{/branch}","tags_url":"https://api.github.com/repos/yogstation13/yogstation/tags","blobs_url":"https://api.github.com/repos/yogstation13/yogstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yogstation13/yogstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yogstation13/yogstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/yogstation13/yogstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yogstation13/yogstation/statuses/{sha}","languages_url":"https://api.github.com/repos/yogstation13/yogstation/languages","stargazers_url":"https://api.github.com/repos/yogstation13/yogstation/stargazers","contributors_url":"https://api.github.com/repos/yogstation13/yogstation/contributors","subscribers_url":"https://api.github.com/repos/yogstation13/yogstation/subscribers","subscription_url":"https://api.github.com/repos/yogstation13/yogstation/subscription","commits_url":"https://api.github.com/repos/yogstation13/yogstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/yogstation13/yogstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/yogstation13/yogstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/yogstation13/yogstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/yogstation13/yogstation/contents/{+path}","compare_url":"https://api.github.com/repos/yogstation13/yogstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yogstation13/yogstation/merges","archive_url":"https://api.github.com/repos/yogstation13/yogstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yogstation13/yogstation/downloads","issues_url":"https://api.github.com/repos/yogstation13/yogstation/issues{/number}","pulls_url":"https://api.github.com/repos/yogstation13/yogstation/pulls{/number}","milestones_url":"https://api.github.com/repos/yogstation13/yogstation/milestones{/number}","notifications_url":"https://api.github.com/repos/yogstation13/yogstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yogstation13/yogstation/labels{/name}","releases_url":"https://api.github.com/repos/yogstation13/yogstation/releases{/id}","deployments_url":"https://api.github.com/repos/yogstation13/yogstation/deployments","created_at":"2016-01-15T16:53:22Z","updated_at":"2016-02-28T01:36:32Z","pushed_at":"2016-03-31T03:20:45Z","git_url":"git://github.com/yogstation13/yogstation.git","ssh_url":"git@github.com:yogstation13/yogstation.git","clone_url":"https://github.com/yogstation13/yogstation.git","svn_url":"https://github.com/yogstation13/yogstation","homepage":"http://www.yogstation.net","size":523739,"stargazers_count":15,"watchers_count":15,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":178,"forks":41,"open_issues":178,"watchers":15,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/749"},"html":{"href":"https://github.com/yogstation13/yogstation/pull/749"},"issue":{"href":"https://api.github.com/repos/yogstation13/yogstation/issues/749"},"comments":{"href":"https://api.github.com/repos/yogstation13/yogstation/issues/749/comments"},"review_comments":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/749/comments"},"review_comment":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yogstation13/yogstation/pulls/749/commits"},"statuses":{"href":"https://api.github.com/repos/yogstation13/yogstation/statuses/af7a914d44620f1524c0d683c47493d02b3152a0"}}}}