-
Notifications
You must be signed in to change notification settings - Fork 147
Workaround for missing speed in GAME_SPEED_FACTOR #102
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
Conversation
StoicLoofah
left a comment
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.
Thanks for looking at this! I have to admit that I'm not really familiar with real_length, but looking at the speed factors, which can be fractional, it seems like floats can certainly exist here
sc2reader/sc2reader/constants.py
Line 51 in c019743
| "LotV": {"Slower": 0.2, "Slow": 0.4, "Normal": 0.6, "Fast": 0.8, "Faster": 1.0}, |
|
So you want me to default to 0.6 instead of 1? |
|
Sorry for being unclear: I missed actual question in the context =P Why did you decide to use integer division instead of regular division? I'm not really sure how real/important the fractional parts are |
|
The current code wraps the calculation in int() and this PR uses // because |
|
OH! I missed that If you revert that, I will approve and merge. Thanks (and apologies) for bearing with me! |
|
#102 (review) So you want to default to faster, not normal? |
|
Yes, let's default to faster. It will at least be ocrrect for alphastar and is the de facto default these for LotV ladder, right? |
|
Thanks! |
Fixes #101