{"action":"created","comment":{"url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/comments/39627558","id":39627558,"diff_hunk":"@@ -94,17 +94,19 @@ proc/do_surgery(mob/living/carbon/M, mob/living/user, obj/item/tool)\n \t\t\t\tif(step_is_valid == 2) // This is a failure that already has a message for failing.\n \t\t\t\t\treturn 1\n \t\t\t\tM.op_stage.in_progress += zone\n-\t\t\t\tS.begin_step(user, M, zone, tool)\n \t\t\t\tuser.operating = 1//start on it\n+\t\t\t\tuser.fail_next_op = 0\n+\t\t\t\tS.begin_step(user, M, zone, tool)\n \t\t\t\t//We had proper tools! (or RNG smiled.) and user did not move or change hands.\n-\t\t\t\tif(prob(S.tool_quality(tool)) &&  do_mob(user, M, rand(S.min_duration, S.max_duration)))\n+\t\t\t\tif(prob(S.tool_quality(tool)) &&  do_mob(user, M, rand(S.min_duration, S.max_duration)) && ((user.mind.isSurgeon) || (!user.mind.isSurgeon) && (prob(50))) && (!user.fail_next_op)) //if they aren't a surgeon, give them a 50% chance of succeeding","path":"code/modules/surgery/surgery.dm","position":19,"original_position":19,"commit_id":"89b11f7aa3bdd0b6d12e2e798a8444fb87d10139","original_commit_id":"89b11f7aa3bdd0b6d12e2e798a8444fb87d10139","user":{"login":"BlueNexus","id":12956760,"avatar_url":"https://avatars.githubusercontent.com/u/12956760?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueNexus","html_url":"https://github.com/BlueNexus","followers_url":"https://api.github.com/users/BlueNexus/followers","following_url":"https://api.github.com/users/BlueNexus/following{/other_user}","gists_url":"https://api.github.com/users/BlueNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueNexus/subscriptions","organizations_url":"https://api.github.com/users/BlueNexus/orgs","repos_url":"https://api.github.com/users/BlueNexus/repos","events_url":"https://api.github.com/users/BlueNexus/events{/privacy}","received_events_url":"https://api.github.com/users/BlueNexus/received_events","type":"User","site_admin":false},"body":"...Oh. I'll adjust that.","created_at":"2015-09-16T13:19:12Z","updated_at":"2015-09-16T13:19:12Z","html_url":"https://github.com/sshado/Aphelion-Code/pull/70#discussion_r39627558","pull_request_url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/comments/39627558"},"html":{"href":"https://github.com/sshado/Aphelion-Code/pull/70#discussion_r39627558"},"pull_request":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70","id":43405165,"html_url":"https://github.com/sshado/Aphelion-Code/pull/70","diff_url":"https://github.com/sshado/Aphelion-Code/pull/70.diff","patch_url":"https://github.com/sshado/Aphelion-Code/pull/70.patch","issue_url":"https://api.github.com/repos/sshado/Aphelion-Code/issues/70","number":70,"state":"open","locked":false,"title":"Metaless surgery, realistic fail conditions, and harsher consequences","user":{"login":"BlueNexus","id":12956760,"avatar_url":"https://avatars.githubusercontent.com/u/12956760?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueNexus","html_url":"https://github.com/BlueNexus","followers_url":"https://api.github.com/users/BlueNexus/followers","following_url":"https://api.github.com/users/BlueNexus/following{/other_user}","gists_url":"https://api.github.com/users/BlueNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueNexus/subscriptions","organizations_url":"https://api.github.com/users/BlueNexus/orgs","repos_url":"https://api.github.com/users/BlueNexus/repos","events_url":"https://api.github.com/users/BlueNexus/events{/privacy}","received_events_url":"https://api.github.com/users/BlueNexus/received_events","type":"User","site_admin":false},"body":"isSurgeon will be a new variable set in the mind of the player's mob, which decides whether or not they can flawlessly perform surgery. if they're a bartender, they're obviously not going to be as good at surgery as a Doctor, for example. If they fail the check, they have a 50/50 chance of failing every surgical step. \r\n\r\nAlso added a fail_next_op var, which will fire if the player moves, is attacked, or does any other physical action while performing surgery. No more walking away from the table, and walking back in time for the step to complete.","created_at":"2015-08-26T14:02:18Z","updated_at":"2015-09-16T13:19:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4aed1f49953a96179a104090d3b670b136d20e90","assignee":{"login":"BlueNexus","id":12956760,"avatar_url":"https://avatars.githubusercontent.com/u/12956760?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueNexus","html_url":"https://github.com/BlueNexus","followers_url":"https://api.github.com/users/BlueNexus/followers","following_url":"https://api.github.com/users/BlueNexus/following{/other_user}","gists_url":"https://api.github.com/users/BlueNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueNexus/subscriptions","organizations_url":"https://api.github.com/users/BlueNexus/orgs","repos_url":"https://api.github.com/users/BlueNexus/repos","events_url":"https://api.github.com/users/BlueNexus/events{/privacy}","received_events_url":"https://api.github.com/users/BlueNexus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70/commits","review_comments_url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70/comments","review_comment_url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sshado/Aphelion-Code/issues/70/comments","statuses_url":"https://api.github.com/repos/sshado/Aphelion-Code/statuses/89b11f7aa3bdd0b6d12e2e798a8444fb87d10139","head":{"label":"BlueNexus:isSurgeon","ref":"isSurgeon","sha":"89b11f7aa3bdd0b6d12e2e798a8444fb87d10139","user":{"login":"BlueNexus","id":12956760,"avatar_url":"https://avatars.githubusercontent.com/u/12956760?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueNexus","html_url":"https://github.com/BlueNexus","followers_url":"https://api.github.com/users/BlueNexus/followers","following_url":"https://api.github.com/users/BlueNexus/following{/other_user}","gists_url":"https://api.github.com/users/BlueNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueNexus/subscriptions","organizations_url":"https://api.github.com/users/BlueNexus/orgs","repos_url":"https://api.github.com/users/BlueNexus/repos","events_url":"https://api.github.com/users/BlueNexus/events{/privacy}","received_events_url":"https://api.github.com/users/BlueNexus/received_events","type":"User","site_admin":false},"repo":{"id":41363698,"name":"Aphelion-Code","full_name":"BlueNexus/Aphelion-Code","owner":{"login":"BlueNexus","id":12956760,"avatar_url":"https://avatars.githubusercontent.com/u/12956760?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueNexus","html_url":"https://github.com/BlueNexus","followers_url":"https://api.github.com/users/BlueNexus/followers","following_url":"https://api.github.com/users/BlueNexus/following{/other_user}","gists_url":"https://api.github.com/users/BlueNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueNexus/subscriptions","organizations_url":"https://api.github.com/users/BlueNexus/orgs","repos_url":"https://api.github.com/users/BlueNexus/repos","events_url":"https://api.github.com/users/BlueNexus/events{/privacy}","received_events_url":"https://api.github.com/users/BlueNexus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlueNexus/Aphelion-Code","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/BlueNexus/Aphelion-Code","forks_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/forks","keys_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/teams","hooks_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/hooks","issue_events_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/issues/events{/number}","events_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/events","assignees_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/assignees{/user}","branches_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/branches{/branch}","tags_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/tags","blobs_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/statuses/{sha}","languages_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/languages","stargazers_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/stargazers","contributors_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/contributors","subscribers_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/subscribers","subscription_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/subscription","commits_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/contents/{+path}","compare_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/merges","archive_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/downloads","issues_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/issues{/number}","pulls_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/pulls{/number}","milestones_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/milestones{/number}","notifications_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/labels{/name}","releases_url":"https://api.github.com/repos/BlueNexus/Aphelion-Code/releases{/id}","created_at":"2015-08-25T13:04:22Z","updated_at":"2015-09-03T14:01:43Z","pushed_at":"2015-09-15T11:52:33Z","git_url":"git://github.com/BlueNexus/Aphelion-Code.git","ssh_url":"git@github.com:BlueNexus/Aphelion-Code.git","clone_url":"https://github.com/BlueNexus/Aphelion-Code.git","svn_url":"https://github.com/BlueNexus/Aphelion-Code","homepage":"http://baystation12.net/","size":616870,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":true,"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":0,"default_branch":"master"}},"base":{"label":"sshado:master","ref":"master","sha":"03223b31657a6e46ecf6e69bdb46428a01562fa2","user":{"login":"sshado","id":8393112,"avatar_url":"https://avatars.githubusercontent.com/u/8393112?v=3","gravatar_id":"","url":"https://api.github.com/users/sshado","html_url":"https://github.com/sshado","followers_url":"https://api.github.com/users/sshado/followers","following_url":"https://api.github.com/users/sshado/following{/other_user}","gists_url":"https://api.github.com/users/sshado/gists{/gist_id}","starred_url":"https://api.github.com/users/sshado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshado/subscriptions","organizations_url":"https://api.github.com/users/sshado/orgs","repos_url":"https://api.github.com/users/sshado/repos","events_url":"https://api.github.com/users/sshado/events{/privacy}","received_events_url":"https://api.github.com/users/sshado/received_events","type":"User","site_admin":false},"repo":{"id":40769595,"name":"Aphelion-Code","full_name":"sshado/Aphelion-Code","owner":{"login":"sshado","id":8393112,"avatar_url":"https://avatars.githubusercontent.com/u/8393112?v=3","gravatar_id":"","url":"https://api.github.com/users/sshado","html_url":"https://github.com/sshado","followers_url":"https://api.github.com/users/sshado/followers","following_url":"https://api.github.com/users/sshado/following{/other_user}","gists_url":"https://api.github.com/users/sshado/gists{/gist_id}","starred_url":"https://api.github.com/users/sshado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshado/subscriptions","organizations_url":"https://api.github.com/users/sshado/orgs","repos_url":"https://api.github.com/users/sshado/repos","events_url":"https://api.github.com/users/sshado/events{/privacy}","received_events_url":"https://api.github.com/users/sshado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sshado/Aphelion-Code","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/sshado/Aphelion-Code","forks_url":"https://api.github.com/repos/sshado/Aphelion-Code/forks","keys_url":"https://api.github.com/repos/sshado/Aphelion-Code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sshado/Aphelion-Code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sshado/Aphelion-Code/teams","hooks_url":"https://api.github.com/repos/sshado/Aphelion-Code/hooks","issue_events_url":"https://api.github.com/repos/sshado/Aphelion-Code/issues/events{/number}","events_url":"https://api.github.com/repos/sshado/Aphelion-Code/events","assignees_url":"https://api.github.com/repos/sshado/Aphelion-Code/assignees{/user}","branches_url":"https://api.github.com/repos/sshado/Aphelion-Code/branches{/branch}","tags_url":"https://api.github.com/repos/sshado/Aphelion-Code/tags","blobs_url":"https://api.github.com/repos/sshado/Aphelion-Code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sshado/Aphelion-Code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sshado/Aphelion-Code/git/refs{/sha}","trees_url":"https://api.github.com/repos/sshado/Aphelion-Code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sshado/Aphelion-Code/statuses/{sha}","languages_url":"https://api.github.com/repos/sshado/Aphelion-Code/languages","stargazers_url":"https://api.github.com/repos/sshado/Aphelion-Code/stargazers","contributors_url":"https://api.github.com/repos/sshado/Aphelion-Code/contributors","subscribers_url":"https://api.github.com/repos/sshado/Aphelion-Code/subscribers","subscription_url":"https://api.github.com/repos/sshado/Aphelion-Code/subscription","commits_url":"https://api.github.com/repos/sshado/Aphelion-Code/commits{/sha}","git_commits_url":"https://api.github.com/repos/sshado/Aphelion-Code/git/commits{/sha}","comments_url":"https://api.github.com/repos/sshado/Aphelion-Code/comments{/number}","issue_comment_url":"https://api.github.com/repos/sshado/Aphelion-Code/issues/comments{/number}","contents_url":"https://api.github.com/repos/sshado/Aphelion-Code/contents/{+path}","compare_url":"https://api.github.com/repos/sshado/Aphelion-Code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sshado/Aphelion-Code/merges","archive_url":"https://api.github.com/repos/sshado/Aphelion-Code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sshado/Aphelion-Code/downloads","issues_url":"https://api.github.com/repos/sshado/Aphelion-Code/issues{/number}","pulls_url":"https://api.github.com/repos/sshado/Aphelion-Code/pulls{/number}","milestones_url":"https://api.github.com/repos/sshado/Aphelion-Code/milestones{/number}","notifications_url":"https://api.github.com/repos/sshado/Aphelion-Code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sshado/Aphelion-Code/labels{/name}","releases_url":"https://api.github.com/repos/sshado/Aphelion-Code/releases{/id}","created_at":"2015-08-15T16:04:30Z","updated_at":"2015-09-14T15:43:31Z","pushed_at":"2015-09-16T11:15:31Z","git_url":"git://github.com/sshado/Aphelion-Code.git","ssh_url":"git@github.com:sshado/Aphelion-Code.git","clone_url":"https://github.com/sshado/Aphelion-Code.git","svn_url":"https://github.com/sshado/Aphelion-Code","homepage":"http://baystation12.net/","size":619687,"stargazers_count":7,"watchers_count":7,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":42,"forks":17,"open_issues":42,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70"},"html":{"href":"https://github.com/sshado/Aphelion-Code/pull/70"},"issue":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/issues/70"},"comments":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/sshado/Aphelion-Code/statuses/89b11f7aa3bdd0b6d12e2e798a8444fb87d10139"}}}}