{"action":"opened","number":1459,"pull_request":{"url":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459","id":66913787,"html_url":"https://github.com/po-devs/pokemon-online/pull/1459","diff_url":"https://github.com/po-devs/pokemon-online/pull/1459.diff","patch_url":"https://github.com/po-devs/pokemon-online/pull/1459.patch","issue_url":"https://api.github.com/repos/po-devs/pokemon-online/issues/1459","number":1459,"state":"open","locked":false,"title":"Fix Protect chance in Gen 6","user":{"login":"turbedi","id":5059753,"avatar_url":"https://avatars.githubusercontent.com/u/5059753?v=3","gravatar_id":"","url":"https://api.github.com/users/turbedi","html_url":"https://github.com/turbedi","followers_url":"https://api.github.com/users/turbedi/followers","following_url":"https://api.github.com/users/turbedi/following{/other_user}","gists_url":"https://api.github.com/users/turbedi/gists{/gist_id}","starred_url":"https://api.github.com/users/turbedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbedi/subscriptions","organizations_url":"https://api.github.com/users/turbedi/orgs","repos_url":"https://api.github.com/users/turbedi/repos","events_url":"https://api.github.com/users/turbedi/events{/privacy}","received_events_url":"https://api.github.com/users/turbedi/received_events","type":"User","site_admin":false},"body":"I did some quick tests:\r\nprotectCount = 1 -> x = 33.33\r\nprotectCount = 2 -> x = 11.11\r\nprotectCount = 3 -> x = 3.07\r\n...\r\n\r\ncoinflip(x,100.0) -> probability (x/100)\r\n\r\n","created_at":"2016-04-18T20:10:34Z","updated_at":"2016-04-18T20:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459/commits","review_comments_url":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459/comments","review_comment_url":"https://api.github.com/repos/po-devs/pokemon-online/pulls/comments{/number}","comments_url":"https://api.github.com/repos/po-devs/pokemon-online/issues/1459/comments","statuses_url":"https://api.github.com/repos/po-devs/pokemon-online/statuses/ea0f6a810cda01406fd094569c03a8eaab0925b6","head":{"label":"turbedi:turbedi-patch-1","ref":"turbedi-patch-1","sha":"ea0f6a810cda01406fd094569c03a8eaab0925b6","user":{"login":"turbedi","id":5059753,"avatar_url":"https://avatars.githubusercontent.com/u/5059753?v=3","gravatar_id":"","url":"https://api.github.com/users/turbedi","html_url":"https://github.com/turbedi","followers_url":"https://api.github.com/users/turbedi/followers","following_url":"https://api.github.com/users/turbedi/following{/other_user}","gists_url":"https://api.github.com/users/turbedi/gists{/gist_id}","starred_url":"https://api.github.com/users/turbedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbedi/subscriptions","organizations_url":"https://api.github.com/users/turbedi/orgs","repos_url":"https://api.github.com/users/turbedi/repos","events_url":"https://api.github.com/users/turbedi/events{/privacy}","received_events_url":"https://api.github.com/users/turbedi/received_events","type":"User","site_admin":false},"repo":{"id":54826810,"name":"pokemon-online","full_name":"turbedi/pokemon-online","owner":{"login":"turbedi","id":5059753,"avatar_url":"https://avatars.githubusercontent.com/u/5059753?v=3","gravatar_id":"","url":"https://api.github.com/users/turbedi","html_url":"https://github.com/turbedi","followers_url":"https://api.github.com/users/turbedi/followers","following_url":"https://api.github.com/users/turbedi/following{/other_user}","gists_url":"https://api.github.com/users/turbedi/gists{/gist_id}","starred_url":"https://api.github.com/users/turbedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turbedi/subscriptions","organizations_url":"https://api.github.com/users/turbedi/orgs","repos_url":"https://api.github.com/users/turbedi/repos","events_url":"https://api.github.com/users/turbedi/events{/privacy}","received_events_url":"https://api.github.com/users/turbedi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/turbedi/pokemon-online","description":"Online Pokemon Battle Simulator","fork":true,"url":"https://api.github.com/repos/turbedi/pokemon-online","forks_url":"https://api.github.com/repos/turbedi/pokemon-online/forks","keys_url":"https://api.github.com/repos/turbedi/pokemon-online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turbedi/pokemon-online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turbedi/pokemon-online/teams","hooks_url":"https://api.github.com/repos/turbedi/pokemon-online/hooks","issue_events_url":"https://api.github.com/repos/turbedi/pokemon-online/issues/events{/number}","events_url":"https://api.github.com/repos/turbedi/pokemon-online/events","assignees_url":"https://api.github.com/repos/turbedi/pokemon-online/assignees{/user}","branches_url":"https://api.github.com/repos/turbedi/pokemon-online/branches{/branch}","tags_url":"https://api.github.com/repos/turbedi/pokemon-online/tags","blobs_url":"https://api.github.com/repos/turbedi/pokemon-online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turbedi/pokemon-online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turbedi/pokemon-online/git/refs{/sha}","trees_url":"https://api.github.com/repos/turbedi/pokemon-online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turbedi/pokemon-online/statuses/{sha}","languages_url":"https://api.github.com/repos/turbedi/pokemon-online/languages","stargazers_url":"https://api.github.com/repos/turbedi/pokemon-online/stargazers","contributors_url":"https://api.github.com/repos/turbedi/pokemon-online/contributors","subscribers_url":"https://api.github.com/repos/turbedi/pokemon-online/subscribers","subscription_url":"https://api.github.com/repos/turbedi/pokemon-online/subscription","commits_url":"https://api.github.com/repos/turbedi/pokemon-online/commits{/sha}","git_commits_url":"https://api.github.com/repos/turbedi/pokemon-online/git/commits{/sha}","comments_url":"https://api.github.com/repos/turbedi/pokemon-online/comments{/number}","issue_comment_url":"https://api.github.com/repos/turbedi/pokemon-online/issues/comments{/number}","contents_url":"https://api.github.com/repos/turbedi/pokemon-online/contents/{+path}","compare_url":"https://api.github.com/repos/turbedi/pokemon-online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turbedi/pokemon-online/merges","archive_url":"https://api.github.com/repos/turbedi/pokemon-online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turbedi/pokemon-online/downloads","issues_url":"https://api.github.com/repos/turbedi/pokemon-online/issues{/number}","pulls_url":"https://api.github.com/repos/turbedi/pokemon-online/pulls{/number}","milestones_url":"https://api.github.com/repos/turbedi/pokemon-online/milestones{/number}","notifications_url":"https://api.github.com/repos/turbedi/pokemon-online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turbedi/pokemon-online/labels{/name}","releases_url":"https://api.github.com/repos/turbedi/pokemon-online/releases{/id}","deployments_url":"https://api.github.com/repos/turbedi/pokemon-online/deployments","created_at":"2016-03-27T12:13:17Z","updated_at":"2016-03-27T12:13:28Z","pushed_at":"2016-04-18T20:04:11Z","git_url":"git://github.com/turbedi/pokemon-online.git","ssh_url":"git@github.com:turbedi/pokemon-online.git","clone_url":"https://github.com/turbedi/pokemon-online.git","svn_url":"https://github.com/turbedi/pokemon-online","homepage":"http://pokemon-online.eu","size":98561,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"po-devs:master","ref":"master","sha":"9014985e189c51c3f603d6aa28cdcfc23bcdd026","user":{"login":"po-devs","id":3062336,"avatar_url":"https://avatars.githubusercontent.com/u/3062336?v=3","gravatar_id":"","url":"https://api.github.com/users/po-devs","html_url":"https://github.com/po-devs","followers_url":"https://api.github.com/users/po-devs/followers","following_url":"https://api.github.com/users/po-devs/following{/other_user}","gists_url":"https://api.github.com/users/po-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/po-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/po-devs/subscriptions","organizations_url":"https://api.github.com/users/po-devs/orgs","repos_url":"https://api.github.com/users/po-devs/repos","events_url":"https://api.github.com/users/po-devs/events{/privacy}","received_events_url":"https://api.github.com/users/po-devs/received_events","type":"Organization","site_admin":false},"repo":{"id":2309028,"name":"pokemon-online","full_name":"po-devs/pokemon-online","owner":{"login":"po-devs","id":3062336,"avatar_url":"https://avatars.githubusercontent.com/u/3062336?v=3","gravatar_id":"","url":"https://api.github.com/users/po-devs","html_url":"https://github.com/po-devs","followers_url":"https://api.github.com/users/po-devs/followers","following_url":"https://api.github.com/users/po-devs/following{/other_user}","gists_url":"https://api.github.com/users/po-devs/gists{/gist_id}","starred_url":"https://api.github.com/users/po-devs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/po-devs/subscriptions","organizations_url":"https://api.github.com/users/po-devs/orgs","repos_url":"https://api.github.com/users/po-devs/repos","events_url":"https://api.github.com/users/po-devs/events{/privacy}","received_events_url":"https://api.github.com/users/po-devs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/po-devs/pokemon-online","description":"Online Pokemon Battle Simulator","fork":false,"url":"https://api.github.com/repos/po-devs/pokemon-online","forks_url":"https://api.github.com/repos/po-devs/pokemon-online/forks","keys_url":"https://api.github.com/repos/po-devs/pokemon-online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/po-devs/pokemon-online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/po-devs/pokemon-online/teams","hooks_url":"https://api.github.com/repos/po-devs/pokemon-online/hooks","issue_events_url":"https://api.github.com/repos/po-devs/pokemon-online/issues/events{/number}","events_url":"https://api.github.com/repos/po-devs/pokemon-online/events","assignees_url":"https://api.github.com/repos/po-devs/pokemon-online/assignees{/user}","branches_url":"https://api.github.com/repos/po-devs/pokemon-online/branches{/branch}","tags_url":"https://api.github.com/repos/po-devs/pokemon-online/tags","blobs_url":"https://api.github.com/repos/po-devs/pokemon-online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/po-devs/pokemon-online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/po-devs/pokemon-online/git/refs{/sha}","trees_url":"https://api.github.com/repos/po-devs/pokemon-online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/po-devs/pokemon-online/statuses/{sha}","languages_url":"https://api.github.com/repos/po-devs/pokemon-online/languages","stargazers_url":"https://api.github.com/repos/po-devs/pokemon-online/stargazers","contributors_url":"https://api.github.com/repos/po-devs/pokemon-online/contributors","subscribers_url":"https://api.github.com/repos/po-devs/pokemon-online/subscribers","subscription_url":"https://api.github.com/repos/po-devs/pokemon-online/subscription","commits_url":"https://api.github.com/repos/po-devs/pokemon-online/commits{/sha}","git_commits_url":"https://api.github.com/repos/po-devs/pokemon-online/git/commits{/sha}","comments_url":"https://api.github.com/repos/po-devs/pokemon-online/comments{/number}","issue_comment_url":"https://api.github.com/repos/po-devs/pokemon-online/issues/comments{/number}","contents_url":"https://api.github.com/repos/po-devs/pokemon-online/contents/{+path}","compare_url":"https://api.github.com/repos/po-devs/pokemon-online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/po-devs/pokemon-online/merges","archive_url":"https://api.github.com/repos/po-devs/pokemon-online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/po-devs/pokemon-online/downloads","issues_url":"https://api.github.com/repos/po-devs/pokemon-online/issues{/number}","pulls_url":"https://api.github.com/repos/po-devs/pokemon-online/pulls{/number}","milestones_url":"https://api.github.com/repos/po-devs/pokemon-online/milestones{/number}","notifications_url":"https://api.github.com/repos/po-devs/pokemon-online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/po-devs/pokemon-online/labels{/name}","releases_url":"https://api.github.com/repos/po-devs/pokemon-online/releases{/id}","deployments_url":"https://api.github.com/repos/po-devs/pokemon-online/deployments","created_at":"2011-09-01T17:10:47Z","updated_at":"2016-04-16T16:11:41Z","pushed_at":"2016-04-18T16:05:01Z","git_url":"git://github.com/po-devs/pokemon-online.git","ssh_url":"git@github.com:po-devs/pokemon-online.git","clone_url":"https://github.com/po-devs/pokemon-online.git","svn_url":"https://github.com/po-devs/pokemon-online","homepage":"http://pokemon-online.eu","size":213041,"stargazers_count":189,"watchers_count":189,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":19,"forks":133,"open_issues":19,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459"},"html":{"href":"https://github.com/po-devs/pokemon-online/pull/1459"},"issue":{"href":"https://api.github.com/repos/po-devs/pokemon-online/issues/1459"},"comments":{"href":"https://api.github.com/repos/po-devs/pokemon-online/issues/1459/comments"},"review_comments":{"href":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459/comments"},"review_comment":{"href":"https://api.github.com/repos/po-devs/pokemon-online/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/po-devs/pokemon-online/pulls/1459/commits"},"statuses":{"href":"https://api.github.com/repos/po-devs/pokemon-online/statuses/ea0f6a810cda01406fd094569c03a8eaab0925b6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}