lanedirt / OGameX

Open-source OGame redesign clone built with Laravel 11.x.
https://main.ogamex.dev
MIT License
34 stars 15 forks source link

fix - max_build_amount return 0 when requirements_met is false #240

Closed Danielopes7 closed 3 months ago

Danielopes7 commented 3 months ago

Fixes #125

I had to reload the player data in UnitQueueTest.php because the getResearchLevel in PlayerService.php was returning 0. This occurred because $this->user_tech hadn't been loaded with the researches yet.

Please let me know if there are any issues 👍

lanedirt commented 3 months ago

Looking good, merged! Thanks for this PR, much appreciated!