{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/175938236","pull_request_review_id":105554575,"id":175938236,"diff_hunk":"@@ -0,0 +1,230 @@\n+#define GUILLOTINE_BLADE_MAX_SHARP  10 // This is maxiumum sharpness and will decapitate without failure\n+#define GUILLOTINE_DECAP_MIN_SHARP  7  // Minimum amount of sharpness for decapitation. Any less and it will just do severe brute damage\n+#define GUILLOTINE_ANIMATION_LENGTH 9 // How many deciseconds the animation is \n+#define GUILLOTINE_BLADE_RAISED     1\n+#define GUILLOTINE_BLADE_MOVING     2\n+#define GUILLOTINE_BLADE_DROPPED    3\n+#define GUILLOTINE_BLADE_SHARPENING 4\n+#define GUILLOTINE_HEAD_OFFSET      16 // How much we need to move the player to center their head\n+#define GUILLOTINE_LAYER_DIFF       1.2 // How much to increase/decrease a head when it's buckled/unbuckled\n+#define GUILLOTINE_ACTIVATE_DELAY   30 // Delay for activating\n+\n+/obj/structure/guillotine\n+\tname = \"guillotine\"\n+\tdesc = \"A large structure used to remove the heads of traitors and treasonists.\"\n+\ticon = 'icons/obj/guillotine.dmi'\n+\ticon_state = \"guillotine_raised\"\n+\tvar/blade_status = GUILLOTINE_BLADE_RAISED\n+\tvar/blade_sharpness = GUILLOTINE_BLADE_MAX_SHARP // How sharp the blade is\n+\tvar/kill_count = 0\n+\tcan_buckle = TRUE\n+\tanchored = TRUE\n+\tdensity = TRUE\n+\tmax_buckled_mobs = 1\n+\tbuckle_lying = FALSE\n+\tbuckle_prevents_pull = TRUE\n+\tlayer = ABOVE_MOB_LAYER\n+\n+/obj/structure/guillotine/Initialize()\n+\tLAZYINITLIST(buckled_mobs)\n+\t. = ..()\n+\n+/obj/structure/guillotine/examine(mob/user)\n+\t..()\n+\n+\tvar/msg = \"\"\n+\n+\tmsg += \"It is [anchored ? \"wrenched to the floor.\" : \"unsecured. A wrench should fix that.\"]<br/>\"\n+\n+\tif (blade_status == GUILLOTINE_BLADE_RAISED)\n+\t\tmsg += \"The blade is raised, ready to fall, and\"\n+\n+\t\tif (blade_sharpness >= GUILLOTINE_DECAP_MIN_SHARP)\n+\t\t\tmsg += \" looks sharp enough to decapitate without any resistance.\"\n+\t\telse\n+\t\t\tmsg += \" doesn't look particularly sharp. Perhaps a whetstone can be used to sharpen it.\"\n+\telse\n+\t\tmsg += \"The blade is hidden inside the stocks.\"\n+\n+\tif (LAZYLEN(buckled_mobs))\n+\t\tmsg += \"<br/>\"\n+\t\tmsg += \"Someone appears to be strapped in. You can help them out, or you can harm them by activating the guillotine.\"\n+\n+\tto_chat(user, msg)\n+\n+\treturn msg\n+\n+/obj/structure/guillotine/attack_hand(mob/user)\n+\tif (blade_status == GUILLOTINE_BLADE_MOVING)","path":"code/game/objects/structures/guillotine.dm","position":58,"original_position":58,"commit_id":"53393b9c90f75b940aecb931da407fece19e72f0","original_commit_id":"53393b9c90f75b940aecb931da407fece19e72f0","user":{"login":"ShizCalev","id":6209658,"avatar_url":"https://avatars2.githubusercontent.com/u/6209658?v=4","gravatar_id":"","url":"https://api.github.com/users/ShizCalev","html_url":"https://github.com/ShizCalev","followers_url":"https://api.github.com/users/ShizCalev/followers","following_url":"https://api.github.com/users/ShizCalev/following{/other_user}","gists_url":"https://api.github.com/users/ShizCalev/gists{/gist_id}","starred_url":"https://api.github.com/users/ShizCalev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShizCalev/subscriptions","organizations_url":"https://api.github.com/users/ShizCalev/orgs","repos_url":"https://api.github.com/users/ShizCalev/repos","events_url":"https://api.github.com/users/ShizCalev/events{/privacy}","received_events_url":"https://api.github.com/users/ShizCalev/received_events","type":"User","site_admin":false},"body":"use a switch for blade_status ","created_at":"2018-03-20T22:07:30Z","updated_at":"2018-03-20T22:29:58Z","html_url":"https://github.com/tgstation/tgstation/pull/36540#discussion_r175938236","pull_request_url":"https://api.github.com/repos/tgstation/tgstation/pulls/36540","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/175938236"},"html":{"href":"https://github.com/tgstation/tgstation/pull/36540#discussion_r175938236"},"pull_request":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/36540"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/36540","id":176040882,"html_url":"https://github.com/tgstation/tgstation/pull/36540","diff_url":"https://github.com/tgstation/tgstation/pull/36540.diff","patch_url":"https://github.com/tgstation/tgstation/pull/36540.patch","issue_url":"https://api.github.com/repos/tgstation/tgstation/issues/36540","number":36540,"state":"open","locked":false,"title":"Adds guillotine","user":{"login":"JohnGinnane","id":3355198,"avatar_url":"https://avatars3.githubusercontent.com/u/3355198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnGinnane","html_url":"https://github.com/JohnGinnane","followers_url":"https://api.github.com/users/JohnGinnane/followers","following_url":"https://api.github.com/users/JohnGinnane/following{/other_user}","gists_url":"https://api.github.com/users/JohnGinnane/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnGinnane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnGinnane/subscriptions","organizations_url":"https://api.github.com/users/JohnGinnane/orgs","repos_url":"https://api.github.com/users/JohnGinnane/repos","events_url":"https://api.github.com/users/JohnGinnane/events{/privacy}","received_events_url":"https://api.github.com/users/JohnGinnane/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\n@Armhulen suggested I put this upstream so here it is!\r\n\r\nThis adds a functional guillotine to the game. You buckle someone to it and you can only see their little head. If you interact with it with the **harm** intent, you will drop the blade after 3 seconds. Any other intent will unbuckle them.\r\n\r\nI have put the guillotine in the courtroom on BoxStation (let me know where to put it on other maps as I'm not familiar with them) and you can unwrench it to move it around. If someone is executed, then anyone (alive) in the vicinity applauds. I've added some sound effects for clapping, it sounds like a single person clapping, but when it's played over a few times with varying pitch it actually sounds pretty good\r\n\r\nI also added some lights to the courtroom because that room was dark:\r\n\r\n![image](https://user-images.githubusercontent.com/3355198/37566587-1e30a8fa-2ab3-11e8-96d8-1e8a9f3f81a0.png)\r\n\r\nPics:\r\n![image](https://user-images.githubusercontent.com/3355198/36356085-a01ec66a-14e4-11e8-8348-51fd8a1e5d33.png)\r\n![image](https://user-images.githubusercontent.com/3355198/36356087-a4abe69a-14e4-11e8-81ca-53762d12dfd4.png)\r\n![image](https://user-images.githubusercontent.com/3355198/36356076-8d2bfbd6-14e4-11e8-96b9-e83851683cd5.png)\r\n\r\nVids:\r\nhttps://streamable.com/34nnl\r\nhttps://streamable.com/cduz6\r\n\r\nClapping:\r\nhttps://streamable.com/yz55a\r\nhttps://streamable.com/qakpo\r\n\r\n:cl: JohnGinnane\r\nadd: A guillotine has been added to the game. If the blade isn't dull, will cut through human necks like a hot knife through butter. Use a whetstone to sharpen it\r\n/:cl:\r\n\r\nOriginal PR: https://github.com/HippieStation/HippieStation/pull/6714 (I remade because I messed up with the git)\r\n\r\n**Credit to Gumner for the sprites**","created_at":"2018-03-19T22:17:53Z","updated_at":"2018-03-20T22:29:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b1e1273412dc8b0761d90b5c3e01fc4d3f7f4d2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"WJohn","id":5988156,"avatar_url":"https://avatars1.githubusercontent.com/u/5988156?v=4","gravatar_id":"","url":"https://api.github.com/users/WJohn","html_url":"https://github.com/WJohn","followers_url":"https://api.github.com/users/WJohn/followers","following_url":"https://api.github.com/users/WJohn/following{/other_user}","gists_url":"https://api.github.com/users/WJohn/gists{/gist_id}","starred_url":"https://api.github.com/users/WJohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WJohn/subscriptions","organizations_url":"https://api.github.com/users/WJohn/orgs","repos_url":"https://api.github.com/users/WJohn/repos","events_url":"https://api.github.com/users/WJohn/events{/privacy}","received_events_url":"https://api.github.com/users/WJohn/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":149581322,"url":"https://api.github.com/repos/tgstation/tgstation/labels/Feature","name":"Feature","color":"009800","default":false},{"id":136257509,"url":"https://api.github.com/repos/tgstation/tgstation/labels/Map%20Edit","name":"Map Edit","color":"eb6420","default":false},{"id":31458015,"url":"https://api.github.com/repos/tgstation/tgstation/labels/Sound","name":"Sound","color":"f9a4f9","default":false},{"id":31457996,"url":"https://api.github.com/repos/tgstation/tgstation/labels/Sprites","name":"Sprites","color":"5ECCD1","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/tgstation/pulls/36540/commits","review_comments_url":"https://api.github.com/repos/tgstation/tgstation/pulls/36540/comments","review_comment_url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/tgstation/issues/36540/comments","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/53393b9c90f75b940aecb931da407fece19e72f0","head":{"label":"JohnGinnane:AddGuillotineTG","ref":"AddGuillotineTG","sha":"53393b9c90f75b940aecb931da407fece19e72f0","user":{"login":"JohnGinnane","id":3355198,"avatar_url":"https://avatars3.githubusercontent.com/u/3355198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnGinnane","html_url":"https://github.com/JohnGinnane","followers_url":"https://api.github.com/users/JohnGinnane/followers","following_url":"https://api.github.com/users/JohnGinnane/following{/other_user}","gists_url":"https://api.github.com/users/JohnGinnane/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnGinnane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnGinnane/subscriptions","organizations_url":"https://api.github.com/users/JohnGinnane/orgs","repos_url":"https://api.github.com/users/JohnGinnane/repos","events_url":"https://api.github.com/users/JohnGinnane/events{/privacy}","received_events_url":"https://api.github.com/users/JohnGinnane/received_events","type":"User","site_admin":false},"repo":{"id":112768404,"name":"HippieStation","full_name":"JohnGinnane/HippieStation","owner":{"login":"JohnGinnane","id":3355198,"avatar_url":"https://avatars3.githubusercontent.com/u/3355198?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnGinnane","html_url":"https://github.com/JohnGinnane","followers_url":"https://api.github.com/users/JohnGinnane/followers","following_url":"https://api.github.com/users/JohnGinnane/following{/other_user}","gists_url":"https://api.github.com/users/JohnGinnane/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnGinnane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnGinnane/subscriptions","organizations_url":"https://api.github.com/users/JohnGinnane/orgs","repos_url":"https://api.github.com/users/JohnGinnane/repos","events_url":"https://api.github.com/users/JohnGinnane/events{/privacy}","received_events_url":"https://api.github.com/users/JohnGinnane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnGinnane/HippieStation","description":"The Hippie Station branch of SS13","fork":true,"url":"https://api.github.com/repos/JohnGinnane/HippieStation","forks_url":"https://api.github.com/repos/JohnGinnane/HippieStation/forks","keys_url":"https://api.github.com/repos/JohnGinnane/HippieStation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnGinnane/HippieStation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnGinnane/HippieStation/teams","hooks_url":"https://api.github.com/repos/JohnGinnane/HippieStation/hooks","issue_events_url":"https://api.github.com/repos/JohnGinnane/HippieStation/issues/events{/number}","events_url":"https://api.github.com/repos/JohnGinnane/HippieStation/events","assignees_url":"https://api.github.com/repos/JohnGinnane/HippieStation/assignees{/user}","branches_url":"https://api.github.com/repos/JohnGinnane/HippieStation/branches{/branch}","tags_url":"https://api.github.com/repos/JohnGinnane/HippieStation/tags","blobs_url":"https://api.github.com/repos/JohnGinnane/HippieStation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnGinnane/HippieStation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnGinnane/HippieStation/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnGinnane/HippieStation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnGinnane/HippieStation/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnGinnane/HippieStation/languages","stargazers_url":"https://api.github.com/repos/JohnGinnane/HippieStation/stargazers","contributors_url":"https://api.github.com/repos/JohnGinnane/HippieStation/contributors","subscribers_url":"https://api.github.com/repos/JohnGinnane/HippieStation/subscribers","subscription_url":"https://api.github.com/repos/JohnGinnane/HippieStation/subscription","commits_url":"https://api.github.com/repos/JohnGinnane/HippieStation/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnGinnane/HippieStation/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnGinnane/HippieStation/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnGinnane/HippieStation/issues/comments{/number}","contents_url":"https://api.github.com/repos/JohnGinnane/HippieStation/contents/{+path}","compare_url":"https://api.github.com/repos/JohnGinnane/HippieStation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnGinnane/HippieStation/merges","archive_url":"https://api.github.com/repos/JohnGinnane/HippieStation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnGinnane/HippieStation/downloads","issues_url":"https://api.github.com/repos/JohnGinnane/HippieStation/issues{/number}","pulls_url":"https://api.github.com/repos/JohnGinnane/HippieStation/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnGinnane/HippieStation/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnGinnane/HippieStation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnGinnane/HippieStation/labels{/name}","releases_url":"https://api.github.com/repos/JohnGinnane/HippieStation/releases{/id}","deployments_url":"https://api.github.com/repos/JohnGinnane/HippieStation/deployments","created_at":"2017-12-01T17:34:28Z","updated_at":"2018-03-19T18:27:22Z","pushed_at":"2018-03-19T22:13:02Z","git_url":"git://github.com/JohnGinnane/HippieStation.git","ssh_url":"git@github.com:JohnGinnane/HippieStation.git","clone_url":"https://github.com/JohnGinnane/HippieStation.git","svn_url":"https://github.com/JohnGinnane/HippieStation","homepage":"https://hippiestation.com/","size":1204050,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"b1c1f564d1b90bb903e7a72007edf84dda65a632","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars2.githubusercontent.com/u/1363778?v=4","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":"tgstation","full_name":"tgstation/tgstation","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars2.githubusercontent.com/u/1363778?v=4","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/tgstation","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/tgstation","forks_url":"https://api.github.com/repos/tgstation/tgstation/forks","keys_url":"https://api.github.com/repos/tgstation/tgstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/tgstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/tgstation/teams","hooks_url":"https://api.github.com/repos/tgstation/tgstation/hooks","issue_events_url":"https://api.github.com/repos/tgstation/tgstation/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/tgstation/events","assignees_url":"https://api.github.com/repos/tgstation/tgstation/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/tgstation/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/tgstation/tags","blobs_url":"https://api.github.com/repos/tgstation/tgstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/tgstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/tgstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/tgstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/tgstation/languages","stargazers_url":"https://api.github.com/repos/tgstation/tgstation/stargazers","contributors_url":"https://api.github.com/repos/tgstation/tgstation/contributors","subscribers_url":"https://api.github.com/repos/tgstation/tgstation/subscribers","subscription_url":"https://api.github.com/repos/tgstation/tgstation/subscription","commits_url":"https://api.github.com/repos/tgstation/tgstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/tgstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/tgstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/tgstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/tgstation/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/tgstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/tgstation/merges","archive_url":"https://api.github.com/repos/tgstation/tgstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/tgstation/downloads","issues_url":"https://api.github.com/repos/tgstation/tgstation/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/tgstation/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/tgstation/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/tgstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/tgstation/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/tgstation/releases{/id}","deployments_url":"https://api.github.com/repos/tgstation/tgstation/deployments","created_at":"2012-01-21T17:32:47Z","updated_at":"2018-03-20T22:02:45Z","pushed_at":"2018-03-20T22:26:25Z","git_url":"git://github.com/tgstation/tgstation.git","ssh_url":"git@github.com:tgstation/tgstation.git","clone_url":"https://github.com/tgstation/tgstation.git","svn_url":"https://github.com/tgstation/tgstation","homepage":"https://www.tgstation13.org/","size":1101265,"stargazers_count":483,"watchers_count":483,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1729,"mirror_url":null,"archived":false,"open_issues_count":1202,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":1729,"open_issues":1202,"watchers":483,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/36540"},"html":{"href":"https://github.com/tgstation/tgstation/pull/36540"},"issue":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/36540"},"comments":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/36540/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/36540/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/36540/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/tgstation/statuses/53393b9c90f75b940aecb931da407fece19e72f0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ShizCalev"}}