{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/35754931","id":35754931,"diff_hunk":"@@ -8,6 +8,28 @@\n \thandle_casings = CYCLE_CASINGS\r\n \tmax_shells = 7\r\n \tammo_type = /obj/item/ammo_casing/a357\r\n+\tvar/chamber_offset = 0 //how many empty chambers in the cylinder until you hit a round\r\n+\r\n+/obj/item/weapon/gun/projectile/revolver/verb/spin_cylinder()\r\n+\tset name = \"Spin cylinder\"\r\n+\tset desc = \"Fun when you're bored out of your skull.\"\r\n+\tset category = \"Object\"\r\n+\r\n+\tchamber_offset = 0\r\n+\tvisible_message(\"<span class='warning'>\\The [usr] spins the cylinder of \\the [src]!</span>\", \\\r\n+\t\"<span class='notice'>You hear something metallic spin and click</span>\")\r\n+\tif(rand(1,max_shells) > loaded.len)\r\n+\t\tchamber_offset = rand(1,max_shells - loaded.len)\r","path":"code/modules/projectiles/guns/projectile/revolver.dm","position":null,"original_position":15,"commit_id":"e22c012ec42ad676864ccc0fc517dcdf2e69dbc0","original_commit_id":"5c4f53a0fd73c5f2940f49bc0231b0737f5b7434","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"body":"If the first casing is live followed by a spent casing, no amount of spinning will put the spent casing on top. Same thing if the loaded list has a bunch of spent casings with a live one in the middle. Spinning the cylinder should have a chance of putting the live casing on top but that will never happen. I can't say whether that is a worthy reason but it is a reason.\r\n\r\nAbout the probability, yeah it appears I was mistaken.","created_at":"2015-07-29T12:55:34Z","updated_at":"2015-07-29T12:55:34Z","html_url":"https://github.com/Baystation12/Baystation12/pull/10340#discussion_r35754931","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/35754931"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/10340#discussion_r35754931"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340","id":40982490,"html_url":"https://github.com/Baystation12/Baystation12/pull/10340","diff_url":"https://github.com/Baystation12/Baystation12/pull/10340.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/10340.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/10340","number":10340,"state":"open","locked":false,"title":"Russian roulette","user":{"login":"comma","id":1300258,"avatar_url":"https://avatars.githubusercontent.com/u/1300258?v=3","gravatar_id":"","url":"https://api.github.com/users/comma","html_url":"https://github.com/comma","followers_url":"https://api.github.com/users/comma/followers","following_url":"https://api.github.com/users/comma/following{/other_user}","gists_url":"https://api.github.com/users/comma/gists{/gist_id}","starred_url":"https://api.github.com/users/comma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comma/subscriptions","organizations_url":"https://api.github.com/users/comma/orgs","repos_url":"https://api.github.com/users/comma/repos","events_url":"https://api.github.com/users/comma/events{/privacy}","received_events_url":"https://api.github.com/users/comma/received_events","type":"User","site_admin":false},"body":"Fun for whole sec team!","created_at":"2015-07-28T07:28:31Z","updated_at":"2015-07-29T12:55:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee5391193632efda2ea62d12c2d4bb87aac66576","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/10340/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/e22c012ec42ad676864ccc0fc517dcdf2e69dbc0","head":{"label":"comma:russian_roulette","ref":"russian_roulette","sha":"e22c012ec42ad676864ccc0fc517dcdf2e69dbc0","user":{"login":"comma","id":1300258,"avatar_url":"https://avatars.githubusercontent.com/u/1300258?v=3","gravatar_id":"","url":"https://api.github.com/users/comma","html_url":"https://github.com/comma","followers_url":"https://api.github.com/users/comma/followers","following_url":"https://api.github.com/users/comma/following{/other_user}","gists_url":"https://api.github.com/users/comma/gists{/gist_id}","starred_url":"https://api.github.com/users/comma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comma/subscriptions","organizations_url":"https://api.github.com/users/comma/orgs","repos_url":"https://api.github.com/users/comma/repos","events_url":"https://api.github.com/users/comma/events{/privacy}","received_events_url":"https://api.github.com/users/comma/received_events","type":"User","site_admin":false},"repo":{"id":3584505,"name":"Baystation12","full_name":"comma/Baystation12","owner":{"login":"comma","id":1300258,"avatar_url":"https://avatars.githubusercontent.com/u/1300258?v=3","gravatar_id":"","url":"https://api.github.com/users/comma","html_url":"https://github.com/comma","followers_url":"https://api.github.com/users/comma/followers","following_url":"https://api.github.com/users/comma/following{/other_user}","gists_url":"https://api.github.com/users/comma/gists{/gist_id}","starred_url":"https://api.github.com/users/comma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comma/subscriptions","organizations_url":"https://api.github.com/users/comma/orgs","repos_url":"https://api.github.com/users/comma/repos","events_url":"https://api.github.com/users/comma/events{/privacy}","received_events_url":"https://api.github.com/users/comma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/comma/Baystation12","description":"The code for Baystation12's branch of SS13.","fork":true,"url":"https://api.github.com/repos/comma/Baystation12","forks_url":"https://api.github.com/repos/comma/Baystation12/forks","keys_url":"https://api.github.com/repos/comma/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/comma/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/comma/Baystation12/teams","hooks_url":"https://api.github.com/repos/comma/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/comma/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/comma/Baystation12/events","assignees_url":"https://api.github.com/repos/comma/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/comma/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/comma/Baystation12/tags","blobs_url":"https://api.github.com/repos/comma/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/comma/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/comma/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/comma/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/comma/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/comma/Baystation12/languages","stargazers_url":"https://api.github.com/repos/comma/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/comma/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/comma/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/comma/Baystation12/subscription","commits_url":"https://api.github.com/repos/comma/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/comma/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/comma/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/comma/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/comma/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/comma/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/comma/Baystation12/merges","archive_url":"https://api.github.com/repos/comma/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/comma/Baystation12/downloads","issues_url":"https://api.github.com/repos/comma/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/comma/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/comma/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/comma/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/comma/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/comma/Baystation12/releases{/id}","created_at":"2012-02-29T18:32:37Z","updated_at":"2015-04-15T13:13:23Z","pushed_at":"2015-07-29T11:35:46Z","git_url":"git://github.com/comma/Baystation12.git","ssh_url":"git@github.com:comma/Baystation12.git","clone_url":"https://github.com/comma/Baystation12.git","svn_url":"https://github.com/comma/Baystation12","homepage":"http://baystation12.net/","size":617244,"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":"e037ee3fca6f2f6e0d39078a4ac7eda49cd36142","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-07-26T00:15:07Z","pushed_at":"2015-07-29T12:39:26Z","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":1558783,"stargazers_count":201,"watchers_count":201,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":799,"mirror_url":null,"open_issues_count":253,"forks":799,"open_issues":253,"watchers":201,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/10340"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/10340"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/10340/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/10340/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/e22c012ec42ad676864ccc0fc517dcdf2e69dbc0"}}}}