{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/46404002","id":46404002,"diff_hunk":"@@ -0,0 +1,134 @@\n+/obj/structure/fireaxecabinet\n+\tname = \"fire axe cabinet\"\n+\tdesc = \"There is small label that reads \\\"For Emergency use only\\\" along with details for safe use of the axe. As if.\"\n+\ticon_state = \"fireaxe\"\n+\tanchored = 1\n+\tdensity = 0\n+\n+\tvar/damage_threshold = 15\n+\tvar/open\n+\tvar/unlocked\n+\tvar/shattered\n+\tvar/obj/item/weapon/material/twohanded/fireaxe/fireaxe\n+\n+/obj/structure/fireaxecabinet/attack_generic(var/mob/user, var/damage, var/attack_verb, var/wallbreaker)\n+\tuser.do_attack_animation(src)\n+\tplaysound(user, 'sound/effects/Glasshit.ogg', 50, 1)\n+\tvisible_message(\"<span class='danger'>[user] [attack_verb] \\the [src]!</span>\")\n+\tif(damage_threshold > damage)\n+\t\tuser << \"<span class='danger'>Your strike is deflected by the reinforced glass!</span>\"\n+\t\treturn\n+\tif(shattered)\n+\t\treturn\n+\tshattered = 1\n+\tunlocked = 1\n+\topen = 1\n+\tplaysound(user, 'sound/effects/Glassbr3.ogg', 100, 1)\n+\tupdate_icon()\n+\n+/obj/structure/fireaxecabinet/update_icon()\n+\toverlays.Cut()\n+\tif(fireaxe)\n+\t\toverlays += image(icon, \"fireaxe_item\")\n+\tif(shattered)\n+\t\toverlays += image(icon, \"fireaxe_window_broken\")\n+\telse if(!open)\n+\t\toverlays += image(icon, \"fireaxe_window\")\n+\n+/obj/structure/fireaxecabinet/New()\n+\t..()\n+\tfireaxe = new(src)\n+\tupdate_icon()\n+\n+/obj/structure/fireaxecabinet/attack_ai(var/mob/user)\n+\ttoggle_lock(user)\n+\n+/obj/structure/fireaxecabinet/attack_hand(var/mob/user)\n+\tif(!unlocked)\n+\t\tuser << \"<span class='warning'>\\The [src] is locked.</span>\"\n+\t\treturn\n+\ttoggle_open(user)\n+\n+/obj/structure/fireaxecabinet/MouseDrop(over_object, src_location, over_location)\n+\tif(over_object == usr)\n+\t\tvar/mob/user = over_object\n+\t\tif(!istype(user))\n+\t\t\treturn\n+\n+\t\tif(!open)\n+\t\t\tuser << \"<span class='warning'>\\The [src] is closed.</span>\"\n+\t\t\treturn\n+\n+\t\tif(!fireaxe)\n+\t\t\tuser << \"<span class='warning'>\\The [src] is empty.</span>\"\n+\t\t\treturn\n+\n+\t\tfireaxe.forceMove(get_turf(user))\n+\t\tuser.put_in_hands(fireaxe)\n+\t\tfireaxe = null\n+\t\tupdate_icon()\n+\n+\treturn\n+\n+/obj/structure/fireaxecabinet/Destroy()\n+\tif(fireaxe)\n+\t\tfireaxe.forceMove(get_turf(src))\n+\t\tfireaxe = null\n+\treturn ..()\n+\n+/obj/structure/fireaxecabinet/attackby(var/obj/item/O, var/mob/user)\n+\n+\tif(istype(O, /obj/item/device/multitool))\n+\t\ttoggle_lock(user)\n+\t\treturn\n+\n+\tif(istype(O, /obj/item/weapon/material/twohanded/fireaxe))\n+\t\tif(open)\n+\t\t\tif(fireaxe)\n+\t\t\t\tuser << \"<span class='warning'>There is already \\a [fireaxe] inside \\the [src].</span>\"\n+\t\t\telse if(user.unEquip(O))\n+\t\t\t\tO.forceMove(src)\n+\t\t\t\tfireaxe = O\n+\t\t\t\tuser << \"<span class='notice'>You place \\the [fireaxe] into \\the [src].</span>\"\n+\t\t\t\tupdate_icon()\n+\t\t\treturn\n+\n+\tif(O.force)\n+\t\tuser.setClickCooldown(10)\n+\t\tattack_generic(user, O.force, \"bashes\")\n+\t\treturn\n+\n+\treturn ..()\n+\n+/obj/structure/fireaxecabinet/proc/toggle_open(var/mob/user)\n+\tif(shattered)\n+\t\topen = 1\n+\t\tunlocked = 1\n+\telse\n+\t\tuser.setClickCooldown(10)\n+\t\topen = !open\n+\t\tuser << \"<span class='notice'>You [open ? \"open\" : \"close\"] \\the [src].</span>\"\n+\tupdate_icon()\n+\n+/obj/structure/fireaxecabinet/proc/toggle_lock(var/mob/user)\n+\n+\n+\tif(open)\n+\t\treturn\n+\n+\tif(shattered)\n+\t\topen = 1\n+\t\tunlocked = 1\n+\telse\n+\t\tuser.setClickCooldown(10)\n+\t\tuser << \"<span class='notice'>You begin [unlocked ? \"enabling\" : \"disabling\"] \\the [src]'s maglock.</span>\"\n+\t\tplaysound(user, 'sound/machines/lockreset.ogg', 50, 1)","path":"code/game/objects/structures/fireaxe_cabinet.dm","position":125,"original_position":125,"commit_id":"47b60f17b3245c0c449f3d513ffcb13f7dc8cbd0","original_commit_id":"47b60f17b3245c0c449f3d513ffcb13f7dc8cbd0","user":{"login":"PsiOmegaDelta","id":496895,"avatar_url":"https://avatars.githubusercontent.com/u/496895?v=3","gravatar_id":"","url":"https://api.github.com/users/PsiOmegaDelta","html_url":"https://github.com/PsiOmegaDelta","followers_url":"https://api.github.com/users/PsiOmegaDelta/followers","following_url":"https://api.github.com/users/PsiOmegaDelta/following{/other_user}","gists_url":"https://api.github.com/users/PsiOmegaDelta/gists{/gist_id}","starred_url":"https://api.github.com/users/PsiOmegaDelta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsiOmegaDelta/subscriptions","organizations_url":"https://api.github.com/users/PsiOmegaDelta/orgs","repos_url":"https://api.github.com/users/PsiOmegaDelta/repos","events_url":"https://api.github.com/users/PsiOmegaDelta/events{/privacy}","received_events_url":"https://api.github.com/users/PsiOmegaDelta/received_events","type":"User","site_admin":false},"body":"Perhaps play the sound after the do_after() to give users an audible notice that has finished doing its thing.","created_at":"2015-12-02T11:32:21Z","updated_at":"2015-12-02T11:32:21Z","html_url":"https://github.com/Baystation12/Baystation12/pull/11566#discussion_r46404002","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/46404002"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/11566#discussion_r46404002"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566","id":52382974,"html_url":"https://github.com/Baystation12/Baystation12/pull/11566","diff_url":"https://github.com/Baystation12/Baystation12/pull/11566.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/11566.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/11566","number":11566,"state":"open","locked":false,"title":"Total rewrite of awful fireaxe cabinets.","user":{"login":"Zuhayr","id":2468979,"avatar_url":"https://avatars.githubusercontent.com/u/2468979?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuhayr","html_url":"https://github.com/Zuhayr","followers_url":"https://api.github.com/users/Zuhayr/followers","following_url":"https://api.github.com/users/Zuhayr/following{/other_user}","gists_url":"https://api.github.com/users/Zuhayr/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuhayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuhayr/subscriptions","organizations_url":"https://api.github.com/users/Zuhayr/orgs","repos_url":"https://api.github.com/users/Zuhayr/repos","events_url":"https://api.github.com/users/Zuhayr/events{/privacy}","received_events_url":"https://api.github.com/users/Zuhayr/received_events","type":"User","site_admin":false},"body":"DNM while I test it.","created_at":"2015-12-02T11:20:22Z","updated_at":"2015-12-02T11:32:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af9b01f9a37b806d10107f7da2abcc3d8782571d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/11566/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/47b60f17b3245c0c449f3d513ffcb13f7dc8cbd0","head":{"label":"Zuhayr:fuckyoufuckingclosetswhywouldyoubasethemonclosetsandthenoverrideclosetswithlocalvarsgoddammit","ref":"fuckyoufuckingclosetswhywouldyoubasethemonclosetsandthenoverrideclosetswithlocalvarsgoddammit","sha":"47b60f17b3245c0c449f3d513ffcb13f7dc8cbd0","user":{"login":"Zuhayr","id":2468979,"avatar_url":"https://avatars.githubusercontent.com/u/2468979?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuhayr","html_url":"https://github.com/Zuhayr","followers_url":"https://api.github.com/users/Zuhayr/followers","following_url":"https://api.github.com/users/Zuhayr/following{/other_user}","gists_url":"https://api.github.com/users/Zuhayr/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuhayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuhayr/subscriptions","organizations_url":"https://api.github.com/users/Zuhayr/orgs","repos_url":"https://api.github.com/users/Zuhayr/repos","events_url":"https://api.github.com/users/Zuhayr/events{/privacy}","received_events_url":"https://api.github.com/users/Zuhayr/received_events","type":"User","site_admin":false},"repo":{"id":6039946,"name":"Baystation12","full_name":"Zuhayr/Baystation12","owner":{"login":"Zuhayr","id":2468979,"avatar_url":"https://avatars.githubusercontent.com/u/2468979?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuhayr","html_url":"https://github.com/Zuhayr","followers_url":"https://api.github.com/users/Zuhayr/followers","following_url":"https://api.github.com/users/Zuhayr/following{/other_user}","gists_url":"https://api.github.com/users/Zuhayr/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuhayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuhayr/subscriptions","organizations_url":"https://api.github.com/users/Zuhayr/orgs","repos_url":"https://api.github.com/users/Zuhayr/repos","events_url":"https://api.github.com/users/Zuhayr/events{/privacy}","received_events_url":"https://api.github.com/users/Zuhayr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zuhayr/Baystation12","description":"The code for Baystation12's branch of SS13. Developers: please don't forget to update the changelog. Thanks!","fork":true,"url":"https://api.github.com/repos/Zuhayr/Baystation12","forks_url":"https://api.github.com/repos/Zuhayr/Baystation12/forks","keys_url":"https://api.github.com/repos/Zuhayr/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zuhayr/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zuhayr/Baystation12/teams","hooks_url":"https://api.github.com/repos/Zuhayr/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Zuhayr/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Zuhayr/Baystation12/events","assignees_url":"https://api.github.com/repos/Zuhayr/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Zuhayr/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Zuhayr/Baystation12/tags","blobs_url":"https://api.github.com/repos/Zuhayr/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zuhayr/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zuhayr/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zuhayr/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zuhayr/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Zuhayr/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Zuhayr/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Zuhayr/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Zuhayr/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Zuhayr/Baystation12/subscription","commits_url":"https://api.github.com/repos/Zuhayr/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zuhayr/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zuhayr/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zuhayr/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zuhayr/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Zuhayr/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zuhayr/Baystation12/merges","archive_url":"https://api.github.com/repos/Zuhayr/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zuhayr/Baystation12/downloads","issues_url":"https://api.github.com/repos/Zuhayr/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Zuhayr/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Zuhayr/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Zuhayr/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zuhayr/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Zuhayr/Baystation12/releases{/id}","created_at":"2012-10-02T04:00:17Z","updated_at":"2015-05-16T02:14:40Z","pushed_at":"2015-12-02T11:29:28Z","git_url":"git://github.com/Zuhayr/Baystation12.git","ssh_url":"git@github.com:Zuhayr/Baystation12.git","clone_url":"https://github.com/Zuhayr/Baystation12.git","svn_url":"https://github.com/Zuhayr/Baystation12","homepage":"http://baystation12.net/","size":846349,"stargazers_count":3,"watchers_count":3,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"74116618463ee92c59b1ee7ef42c172644e0e241","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","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,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","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}","created_at":"2011-11-05T16:12:41Z","updated_at":"2015-11-16T20:41:20Z","pushed_at":"2015-12-02T11:29:29Z","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":1532232,"stargazers_count":204,"watchers_count":204,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":880,"mirror_url":null,"open_issues_count":358,"forks":880,"open_issues":358,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/11566"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/11566"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/11566/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11566/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/47b60f17b3245c0c449f3d513ffcb13f7dc8cbd0"}}}}