GitHub PullRequestEvent at 2014-02-26 05:01:04
Repository: Pokemon-Showdown
Actor: Slayer95
Payload: {"action":"opened","number":690,"pull_request":{"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690","id":12938251,"html_url":"https://github.com/Zarel/Pokemon-Showdown/pull/690","diff_url":"https://github.com/Zarel/Pokemon-Showdown/pull/690.diff","patch_url":"https://github.com/Zarel/Pokemon-Showdown/pull/690.patch","issue_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/690","number":690,"state":"open","title":"Item usage refactor","user":{"login":"Slayer95","id":4925744,"avatar_url":"https://gravatar.com/avatar/3654b03e9a671e3e0667bbe985ea5a52?d=https%3A%2F%2Fidenticons.github.com%2F9d563376fe81fee31141925df8ba945d.png&r=x","gravatar_id":"3654b03e9a671e3e0667bbe985ea5a52","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"body":"Deprecate the method pokemon.eatItem, as well as the events 'Eat' and 'EatItem', due to being fundamentally the same as pokemon.useItem, 'Use' and 'UseItem'.\r\nImplement the method pokemon.tryUseItem to handle ordinary item usage, as well as the event 'TryUseItem' to deal with its failure (e.g. due to Unnerve).\r\nUse the method pokemon.useItem for the moves Pluck, Bug Bite and Fling instead of running directly an event.\r\nThis cleans the codebase a bit and fixes a couple of bugs with Cheek Pouch. Namely, its activating when the opponent has Unnerve, and its not activating when using Pluck, Bug Bite or Fling.","created_at":"2014-02-26T05:01:04Z","updated_at":"2014-02-26T05:01:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690/commits","review_comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690/comments","review_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/690/comments","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/36577033a553e55ca4ee4c12fd9e4680d57fedb9","head":{"label":"Slayer95:eat-item","ref":"eat-item","sha":"36577033a553e55ca4ee4c12fd9e4680d57fedb9","user":{"login":"Slayer95","id":4925744,"avatar_url":"https://gravatar.com/avatar/3654b03e9a671e3e0667bbe985ea5a52?d=https%3A%2F%2Fidenticons.github.com%2F9d563376fe81fee31141925df8ba945d.png&r=x","gravatar_id":"3654b03e9a671e3e0667bbe985ea5a52","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"repo":{"id":17195646,"name":"Pokemon-Showdown","full_name":"Slayer95/Pokemon-Showdown","owner":{"login":"Slayer95","id":4925744,"avatar_url":"https://gravatar.com/avatar/3654b03e9a671e3e0667bbe985ea5a52?d=https%3A%2F%2Fidenticons.github.com%2F9d563376fe81fee31141925df8ba945d.png&r=x","gravatar_id":"3654b03e9a671e3e0667bbe985ea5a52","url":"https://api.github.com/users/Slayer95","html_url":"https://github.com/Slayer95","followers_url":"https://api.github.com/users/Slayer95/followers","following_url":"https://api.github.com/users/Slayer95/following{/other_user}","gists_url":"https://api.github.com/users/Slayer95/gists{/gist_id}","starred_url":"https://api.github.com/users/Slayer95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slayer95/subscriptions","organizations_url":"https://api.github.com/users/Slayer95/orgs","repos_url":"https://api.github.com/users/Slayer95/repos","events_url":"https://api.github.com/users/Slayer95/events{/privacy}","received_events_url":"https://api.github.com/users/Slayer95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slayer95/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":true,"url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown","forks_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/Slayer95/Pokemon-Showdown/releases{/id}","created_at":"2014-02-26T02:06:53Z","updated_at":"2014-02-26T05:01:04Z","pushed_at":"2014-02-26T04:59:39Z","git_url":"git://github.com/Slayer95/Pokemon-Showdown.git","ssh_url":"git@github.com:Slayer95/Pokemon-Showdown.git","clone_url":"https://github.com/Slayer95/Pokemon-Showdown.git","svn_url":"https://github.com/Slayer95/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":26979,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"Zarel:master","ref":"master","sha":"63ecd693941a339b0b40303162b239bfe111c437","user":{"login":"Zarel","id":551184,"avatar_url":"https://gravatar.com/avatar/610b2aa37361a0934d2d848e3c155762?d=https%3A%2F%2Fidenticons.github.com%2F7198b32ee07386c787bfba8a5f4b53c3.png&r=x","gravatar_id":"610b2aa37361a0934d2d848e3c155762","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"repo":{"id":3038446,"name":"Pokemon-Showdown","full_name":"Zarel/Pokemon-Showdown","owner":{"login":"Zarel","id":551184,"avatar_url":"https://gravatar.com/avatar/610b2aa37361a0934d2d848e3c155762?d=https%3A%2F%2Fidenticons.github.com%2F7198b32ee07386c787bfba8a5f4b53c3.png&r=x","gravatar_id":"610b2aa37361a0934d2d848e3c155762","url":"https://api.github.com/users/Zarel","html_url":"https://github.com/Zarel","followers_url":"https://api.github.com/users/Zarel/followers","following_url":"https://api.github.com/users/Zarel/following{/other_user}","gists_url":"https://api.github.com/users/Zarel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zarel/subscriptions","organizations_url":"https://api.github.com/users/Zarel/orgs","repos_url":"https://api.github.com/users/Zarel/repos","events_url":"https://api.github.com/users/Zarel/events{/privacy}","received_events_url":"https://api.github.com/users/Zarel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zarel/Pokemon-Showdown","description":"Pokémon battle simulator.","fork":false,"url":"https://api.github.com/repos/Zarel/Pokemon-Showdown","forks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/forks","keys_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/teams","hooks_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/hooks","issue_events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/events{/number}","events_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/events","assignees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/assignees{/user}","branches_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/branches{/branch}","tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/tags","blobs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/{sha}","languages_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/languages","stargazers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/stargazers","contributors_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contributors","subscribers_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscribers","subscription_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/subscription","commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/comments/{number}","contents_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/contents/{+path}","compare_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/merges","archive_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/downloads","issues_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues{/number}","pulls_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls{/number}","milestones_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/milestones{/number}","notifications_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/labels{/name}","releases_url":"https://api.github.com/repos/Zarel/Pokemon-Showdown/releases{/id}","created_at":"2011-12-23T04:52:33Z","updated_at":"2014-02-25T22:35:53Z","pushed_at":"2014-02-25T22:35:53Z","git_url":"git://github.com/Zarel/Pokemon-Showdown.git","ssh_url":"git@github.com:Zarel/Pokemon-Showdown.git","clone_url":"https://github.com/Zarel/Pokemon-Showdown.git","svn_url":"https://github.com/Zarel/Pokemon-Showdown","homepage":"http://pokemonshowdown.com","size":26979,"stargazers_count":254,"watchers_count":254,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":326,"mirror_url":null,"open_issues_count":23,"forks":326,"open_issues":23,"watchers":254,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690"},"html":{"href":"https://github.com/Zarel/Pokemon-Showdown/pull/690"},"issue":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/690"},"comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/issues/690/comments"},"review_comments":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690/comments"},"review_comment":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/pulls/690/commits"},"statuses":{"href":"https://api.github.com/repos/Zarel/Pokemon-Showdown/statuses/36577033a553e55ca4ee4c12fd9e4680d57fedb9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":145,"deletions":160,"changed_files":4}}