BurnySc2 / sc2-planner

MIT License
48 stars 13 forks source link

Fix larva spawn timing #41

Closed Dusoleil closed 2 years ago

Dusoleil commented 2 years ago

Natural larva spawns weren't lining up correctly with the actual game. The main issues were 1) Incorrect constant for how long it takes for a larva to spawn. 2) Rounding errors because the floating point number of frames out to wait is being recalculated off of the current integer frame each time. 3) The larva spawn timer was being reset instead of paused when larva capped. After these changes, larva spawns line up with the game.

netlify[bot] commented 2 years ago

Deploy Preview for sc2-planner ready!

Name Link
Latest commit ac20f7eb1a065fb9bb7a4f4da483492e125ac3dc
Latest deploy log https://app.netlify.com/sites/sc2-planner/deploys/6253467abd833d000849de94
Deploy Preview https://deploy-preview-41--sc2-planner.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.