-
Notifications
You must be signed in to change notification settings - Fork 137
[Suggestion] pokemon types data #878
base: master
Are you sure you want to change the base?
Conversation
…mon type names list for each pokemon type base20 numeral values.
…lue with pokeInfoCalculator#getTypeNames(), intead of pokemon types array number.
…onNameCorrector use this instead of its hard coded value.
…e names directly, instead of base20 value.
Hey, I currently dont have a clear understanding of what we can use type information for. I know we can use it for clipboard tokens and correcting the eevee evolutions. I cant review this properly without knowing where we''re planning on using it, but it looks to be implemented well. (except for the part where no pokemon currently has any type...) |
I like the idea of refactoring the Pokémon data model (and I mean all of it species, moves, types, scanresults...), I'd also like to move all the values (base stats, types, moves, ...) from android resources to static instances of the new data models (all except for names strings that need to be localized like species names and moves). For that reasons, I'd make something like this for types data model:
(We could also implement type weakness and strenght in that model)
And, to instantiate that:
The first type should be added first so that the list will preserve the types order (types(0) -> first type while types(1) -> second type). The above model would be initialized statically with all the species instances at startup. Anyway, @udnp your implementation is very well done. Thank you! |
Thanks for your comment and advice.
I've tried thinking about some cases where these data is needed.
I'm glad for getting your advice like this thanks, and I agree your thoughts. In this PR, actually I've thought that it is important for codes I changed to be not-large-scale and less bad-influence.
OK, I have a question. If this PR suggestion would be acceptable, |
It'd probably be best to make the alterations thearaks suggested before merging. |
@nahojjjen, OK. I created a new PR #883 for minor improvement picked up from this PR. Before the alterations @thearaks suggested made, I hope the minor improvement #883 would be merged.😃 Would you check PR #883? |
I would suggest using compiled protos. See https://github.com/celandro/pogoprotos-java Keeping your own enums is going to be painful and buggy. |
@celandro, Thanks for your advice. I've not know POGOProtos, pogoprotos-java and game master data.
Actually, I implemented types.xml including own enums based on the way of using integers.xml. So I have a question to GoIV pj team. |
Hi GoIV pj team.
I have a suggestion for adding pokemon types data to GoIV.
Currently this use is just improvement to remove hard coded pokemon types index number
in my previous merged PR #727 for eeveelution correction.
But I guess there might be other uses that need pokemon types data.
In this PR, a pokemon type value is indicated with 2 digits base 20 numerical value defined in the new resource file types.xml.
The 2nd digit means 1st type, and the 1st digit means 2nd type.
For example, "10" means NORMAL single type pokemon like Blissey,
or "BI" means PSYCHIC/FAIRY double type pokemon like Gardevoir.
What do you think about this suggestion?
P.S. Currently type data for all pokemons except "eeveelutions" are dummy values.
If this suggestion would be adopted these data should be filled with correct values.