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

Tecnología de Hiperespacio 2% por nivel. #584

Open
jonamix-ar opened this issue Nov 13, 2023 · 0 comments
Open

Tecnología de Hiperespacio 2% por nivel. #584

jonamix-ar opened this issue Nov 13, 2023 · 0 comments

Comments

@jonamix-ar
Copy link

jonamix-ar commented Nov 13, 2023

Tecnologia de hyperspacio formula diferente, segun ogame es el 2% de aumento por cada nivel

image

Esta es la que tenemos nosotros
return intval($ship_storage + ($ship_storage * 0.05 * $hyperspace_tech_level));
Debería ser Asi

return intval($ship_storage + ($ship_storage * (($hyperspace_tech_level * 2) / 100)));

image

Dependiendo el universo cambia el porcentaje

https://s143-ar.ogame.gameforge.com/api/serverData.xml es x5

https://s801-en.ogame.gameforge.com/api/serverData.xml es x2

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

No branches or pull requests

1 participant