lanedirt / OGameX

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

[BUG] Hyperspace technology and hyperspace drive technology requirements are incorrectly defined #376

Closed lanedirt closed 1 month ago

lanedirt commented 1 month ago

Describe the bug The hyperspace technology and hyperspace drive research technology requirements are not correct. With research lab set to level 0 both technologies are able to be upgraded to the next level.

To Reproduce Steps to reproduce the behavior:

  1. Via "Developer shortcuts" when logged in as admin, set all buildings to level 0 and all research to level 10.
  2. Go to "research" page.
  3. When you have enough resources (>10M metal, 20M crystal, 6M deuterium) the hyperspace technology and hyperspace drive show as possible to research while the "research lab" building is set to level 0.

Expected behavior I expect the research to show as "Requirements not met" because both should require research lab level 7.

Screenshots

Screenshot 2024-10-04 at 09 46 10

Additional context All technology/research game objects are defined in the following file:

app/GameObjects/ResearchObjects.php

The requirements of each research object can be adjusted via the requirements property. The correct research lab level should be added to the hyperspace technology and hyperspace drive objects.

jackbayliss commented 1 month ago

@lanedirt you can assign this to me :)