{"action":"created","issue":{"url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/231","repository_url":"https://api.github.com/repos/PocketMobsters/PokeMobBot","labels_url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/231/comments","events_url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/231/events","html_url":"https://github.com/PocketMobsters/PokeMobBot/pull/231","id":168647169,"number":231,"title":"Sort on other features when first comparison matches","user":{"login":"eslindsey","id":6516465,"avatar_url":"https://avatars.githubusercontent.com/u/6516465?v=3","gravatar_id":"","url":"https://api.github.com/users/eslindsey","html_url":"https://github.com/eslindsey","followers_url":"https://api.github.com/users/eslindsey/followers","following_url":"https://api.github.com/users/eslindsey/following{/other_user}","gists_url":"https://api.github.com/users/eslindsey/gists{/gist_id}","starred_url":"https://api.github.com/users/eslindsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslindsey/subscriptions","organizations_url":"https://api.github.com/users/eslindsey/orgs","repos_url":"https://api.github.com/users/eslindsey/repos","events_url":"https://api.github.com/users/eslindsey/events{/privacy}","received_events_url":"https://api.github.com/users/eslindsey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/labels/opinions%20needed","name":"opinions needed","color":"e99695"},{"url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/labels/testing%20needed","name":"testing needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-01T13:35:21Z","updated_at":"2016-08-02T06:00:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/pulls/231","html_url":"https://github.com/PocketMobsters/PokeMobBot/pull/231","diff_url":"https://github.com/PocketMobsters/PokeMobBot/pull/231.diff","patch_url":"https://github.com/PocketMobsters/PokeMobBot/pull/231.patch"},"body":"Should fix #214 ... bot was only sorting first thing asked for (IV or CP), and if they matched it did not look at anything else (I guess it picked the first one in the list).\r\n\r\nI modified the following behaviors:\r\n`GetHighestPokemonOfTypeByCp`\r\nOld behavior: Sort descending by CP\r\nNew behavior: Sort descending by CP, then descending by IV\r\n`GetHighestPokemonOfTypeByIv`\r\nOld behavior: Sort descending by IV\r\nNew behavior: Sort descending by IV, then descending by CP\r\n`GetHighestsCp`\r\nOld behavior: Sort descending by CP, then increasing by StaminaMax\r\nNew behavior: Sort descending by CP, then descending by IV\r\n `GetHighestsPerfect`\r\nOld behavior: Sort descending by IV\r\nNew behavior: Sort descending by IV, then descending by CP\r\n\r\nAs an example: If our subjects are 100 IV, 1250 CP vs. IV 100 IV, 900 CP, the lack of a second comparison would sometimes result in the bot discarding the 1250 CP Pokemon if it was added to the list after the 900 CP one."},"comment":{"url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/comments/236807615","html_url":"https://github.com/PocketMobsters/PokeMobBot/pull/231#issuecomment-236807615","issue_url":"https://api.github.com/repos/PocketMobsters/PokeMobBot/issues/231","id":236807615,"user":{"login":"kyfranky","id":20686257,"avatar_url":"https://avatars.githubusercontent.com/u/20686257?v=3","gravatar_id":"","url":"https://api.github.com/users/kyfranky","html_url":"https://github.com/kyfranky","followers_url":"https://api.github.com/users/kyfranky/followers","following_url":"https://api.github.com/users/kyfranky/following{/other_user}","gists_url":"https://api.github.com/users/kyfranky/gists{/gist_id}","starred_url":"https://api.github.com/users/kyfranky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyfranky/subscriptions","organizations_url":"https://api.github.com/users/kyfranky/orgs","repos_url":"https://api.github.com/users/kyfranky/repos","events_url":"https://api.github.com/users/kyfranky/events{/privacy}","received_events_url":"https://api.github.com/users/kyfranky/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T06:00:26Z","updated_at":"2016-08-02T06:00:26Z","body":"@marksterxxx sorry, but what is formula for PoweredCp ?  as reference from [https://thesilphroad.com/research](url) 100% snorlax will have 3112 CP ?"}}
{"actor":{"display_login":"kyfranky"}}