Skip to content
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

Update moves, fix RDM quests, add .gitignore #7

Closed
wants to merge 3 commits into from

Conversation

SenorKarlos
Copy link

Tested and working per screenshots. Thanks to Andi#0129 for the RDM fixes. Someone will need to add the new data to the move translation files, I used PMSF & they have a different translation system, and Poracles aren't updated.
test1
test2
test3

.gitignore Outdated
cogs/__pycache__/
config/
data/raid_cache.json
util/__pycache__/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can replace lines 1,2, & 5 with:

**/__pycache__

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted and will show on next push. Working on something with Andi before pushing again, explanation on push comment. Thanks!

Copy link
Owner

@ccev ccev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things I've noticed

cogs/boards.py Outdated
@@ -123,10 +123,15 @@ async def board_loop(self):
if "mon_today" in board['type']:
mon_today = await queries.statboard_mon_today(self.bot.config, area[0])
if "mon_active" in board['type']:
text = f"{text}{self.bot.custom_emotes['pokeball']} **{mon_active[0][0]:,}** {self.bot.locale['active_pokemon']} | **{mon_today[0][0]:,}** {self.bot.locale['today']}\n\n"
scanned_ratio = int(round((mon_today[0][1] / mon_today[0][0] * 100), 0))
text = f"{text}{self.bot.custom_emotes['pokeball']} **{mon_active[0][0]:,}** {self.bot.locale['active_pokemon']} | **{mon_today[0][0]:,}** ({scanned_ratio}% mit IVs) {self.bot.locale['today']}\n\n"
Copy link
Owner

@ccev ccev May 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This needs translations for "mit" ("with" in English)
  • If you're implementing it for mon_today, then it should also show for mon_active and mon_today without mon_active enabled
  • Querying for mons with IVs takes ages in my big mon table. The Pokemon query itself already eats my CPU, this might be too much now. This should be an extra option

cogs/boards.py Outdated


if "hundos_today" in board['type']:
hundos_today = await queries.statboard_hundos_today(self.bot.config, area[0])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Hundos will also take ages for larger tables
  • You should implement this in the !board create command, so you can choose this option when using the command
  • Again, this needs better translations (=an extra string in the locale files)
  • Maybe also add hundo_active while you're at it?

@@ -1773,7 +1773,7 @@
"damage": 16,
"duration": 1200,
"energy": 8,
"dps": 13.33
"dps": 13.3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you update this move file, please also do the French and German one. Else, setups in those langs will break

@SenorKarlos
Copy link
Author

SenorKarlos commented May 2, 2020

Andi left me waiting for some more code :) as for the translations, I was hoping ppl who use those would do that LOL PMSF only had english and then a list of converted names in the locale files. I suppose while I'm waiting I could use those locale files and do them though.

Stat board got some love :)

@SenorKarlos
Copy link
Author

Using PMSF Develop as source

DE - translated to 320 "Charm" - no more moves were in the list, english in there
FR - none of the new moves were listed, so added EN to file
ES - had less available then FR (PMSF really needs some translators) but someone had already moved it to 325 Lock-On so just added the few extra EN ones

@SenorKarlos
Copy link
Author

Along with the above corrections, several options for the stats board have been added, debugged and tested. New options:

cmd json
scanned today "scanned_today" percentage of total mon's IV'd for day
scanned active "scanned_active" total IV'd mons up
hundos today "hundos_today" total hundos scanned for the day
hundos active "hundos_active" total hundos up

raid level [all,1,2,3,4 or 5] "raid_lvl*_active" total active raids of each level.
egg level [all, 1,2,3,4 or 5] "egg_lvl*_active" total active eggs of each level
Using all command creates all json entries at once

stat board
Don't mind the zeros, my IV's are off and actually proved useful for debugging none conditions

@kamieniarz
Copy link
Contributor

kamieniarz commented May 6, 2020

I'm testing this PR right now and I have some thoughts about translations:

  1. "scanned" should be adjusted in boards cause it was ment to work with specific mons and now it's confusing with boards - this could be changed to a new string "active_scanned" in boards or sth
  2. "hundos" should be changed in boards as above - to sth like "active_hundos"

These 2 could be just boards exclusive so that would make more sense with all translations ;)

Oh and great job btw :D I love this PR

@SenorKarlos SenorKarlos mentioned this pull request May 8, 2020
@SenorKarlos SenorKarlos closed this by deleting the head repository Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants