PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Edit Type codes for renaming Pokemon

Open abhinavagrawal1995 opened this issue 10 years ago • 5 comments

Short Description

Option to edit the type codes of Pokemon according to personal preference

Possible solution

Something like this in the NicknamePokemon Task: { "type": "NicknamePokemon", "config": { "enabled": true, "nickname_above_iv": 0.8, "nickname_above_cp": 1500, "nickname_template": "{iv_pct}-{attack_code}", "nickname_wait_min": 3, "nickname_wait_max": 5, "type_codes":[ Bug: 'Bu' Dark: 'Da' Dragon: 'Dr' Electric: 'Ele' Fairy: 'Fy' Fighting: 'Fg' Fire: 'Fi' Flying: 'Fl' Ghost: 'Gh' Grass: 'Gr' Ground: 'Go' Ice: 'I' Normal: 'No' Poison: 'Po' Psychic: 'Py' Rock: 'Ro' Steel: 'St' Water: 'Wa' ] } },

How it would help others

Easier to remember your own preferences, rather than keep checking the list specified in the documentation.

Additional request: Please let me know the file (and line number if possible) which I can edit to manually change the codes for now.

abhinavagrawal1995 avatar Sep 24 '16 11:09 abhinavagrawal1995

Ok, that's a config edit, but where does the code support this?

Gobberwart avatar Sep 26 '16 02:09 Gobberwart

You can edit the type codes yourself here.

I wouldn't recommend using more than one letter though, because that would break most of the attack_code templates.

ghost avatar Sep 26 '16 04:09 ghost

Don't the attack code templates use the same type_to_one_char_map array?

abhinavagrawal1995 avatar Sep 26 '16 15:09 abhinavagrawal1995

Yes, but all limited to one character.

ghost avatar Sep 27 '16 18:09 ghost

I'd be glad to have a go at modifying that to include multiple characters for nicknames and attacks myself. Any chance you could add the "Hacktoberfest" label to the issue please?

abhinavagrawal1995 avatar Sep 27 '16 19:09 abhinavagrawal1995