-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better inventory: attacks & movesets, IV CP perfection, pokemon level, etc.. #3455
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4150a0c
Add "level to CP multiplier" data
amal 597d08f
Many improvements & additions for the inventory logic
amal eb0f83e
Add PyCharm/IDEA *.iml (project file) to ignored
amal dd3a976
Fixes, improvements & refactoring for inventory.py
amal ff1ae06
Fix data for pokemons & charged moves
amal f43d575
Inventory tests: pokemon data, LevelToCPm, attacks
amal 958b4c6
Fix travis build
amal df432c1
Fix info for Hitmonlee & Hitmonchan
amal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ share/ | |
|
||
# PyCharm IDE settings | ||
.idea/ | ||
*.iml | ||
|
||
# Personal load details | ||
src/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"1": 0.094, | ||
"1.5": 0.135137432, | ||
"2": 0.16639787, | ||
"2.5": 0.192650919, | ||
"3": 0.21573247, | ||
"3.5": 0.236572661, | ||
"4": 0.25572005, | ||
"4.5": 0.273530381, | ||
"5": 0.29024988, | ||
"5.5": 0.306057377, | ||
"6": 0.3210876, | ||
"6.5": 0.335445036, | ||
"7": 0.34921268, | ||
"7.5": 0.362457751, | ||
"8": 0.37523559, | ||
"8.5": 0.387592406, | ||
"9": 0.39956728, | ||
"9.5": 0.411193551, | ||
"10": 0.42250001, | ||
"10.5": 0.432926419, | ||
"11": 0.44310755, | ||
"11.5": 0.4530599578, | ||
"12": 0.46279839, | ||
"12.5": 0.472336083, | ||
"13": 0.48168495, | ||
"13.5": 0.4908558, | ||
"14": 0.49985844, | ||
"14.5": 0.508701765, | ||
"15": 0.51739395, | ||
"15.5": 0.525942511, | ||
"16": 0.53435433, | ||
"16.5": 0.542635767, | ||
"17": 0.55079269, | ||
"17.5": 0.558830576, | ||
"18": 0.56675452, | ||
"18.5": 0.574569153, | ||
"19": 0.58227891, | ||
"19.5": 0.589887917, | ||
"20": 0.59740001, | ||
"20.5": 0.604818814, | ||
"21": 0.61215729, | ||
"21.5": 0.619399365, | ||
"22": 0.62656713, | ||
"22.5": 0.633644533, | ||
"23": 0.64065295, | ||
"23.5": 0.647576426, | ||
"24": 0.65443563, | ||
"24.5": 0.661214806, | ||
"25": 0.667934, | ||
"25.5": 0.674577537, | ||
"26": 0.68116492, | ||
"26.5": 0.687680648, | ||
"27": 0.69414365, | ||
"27.5": 0.700538673, | ||
"28": 0.70688421, | ||
"28.5": 0.713164996, | ||
"29": 0.71939909, | ||
"29.5": 0.725571552, | ||
"30": 0.7317, | ||
"30.5": 0.734741009, | ||
"31": 0.73776948, | ||
"31.5": 0.740785574, | ||
"32": 0.74378943, | ||
"32.5": 0.746781211, | ||
"33": 0.74976104, | ||
"33.5": 0.752729087, | ||
"34": 0.75568551, | ||
"34.5": 0.758630378, | ||
"35": 0.76156384, | ||
"35.5": 0.764486065, | ||
"36": 0.76739717, | ||
"36.5": 0.770297266, | ||
"37": 0.7731865, | ||
"37.5": 0.776064962, | ||
"38": 0.77893275, | ||
"38.5": 0.781790055, | ||
"39": 0.78463697, | ||
"39.5": 0.787473578, | ||
"40": 0.79030001 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is CPM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm. CP Multiplier: http://pokemongo.gamepress.gg/cp-multiplier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use these CPM. Better use cp_multiplier and additional_cp_multiplier provided by APIs instead.
TotalCPM = cp_multiplier + additional_cp_multiplier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@earthchie cp_multiplier and additional_cp_multiplier are used when available (for pokemons).
this data is used to get CPM at specific level or get level of pokemon by it's CPM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we need to do some test whether these values still accurate or not.
Niantic (or pgoapi) added cp_multiplier on Jul 29 (0.31), and additional_cp_multiplier on Aug 9 (0.33).
If it really from Niantic. I believe they've nerf/buff some Pokemons and these static CPM gonna be useless.
Edit: Confirmed. These values are from Niantic.