You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
The research system is very bad. First there is a bug that research cost shows right price but when you research it takes off only half. Secound bug is when you research something and then cancel it you get more resources than you spend! If manage to fix the bugs above but now i have bug with gravitation research, the cost for it are so high, at level 3 it costs 8kk energy.
Fix for cancelation bug: $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $levelToBuild + 1); (delete + 1 at the end )
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]] + 1); (delete + 1 at the end )
The text was updated successfully, but these errors were encountered:
fix for bug is when you research something and then cancel it you get more resources than you spend! $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, true, $USER[$resource[$elementId]] + 1);
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The research system is very bad. First there is a bug that research cost shows right price but when you research it takes off only half. Secound bug is when you research something and then cancel it you get more resources than you spend! If manage to fix the bugs above but now i have bug with gravitation research, the cost for it are so high, at level 3 it costs 8kk energy.
Fix for cancelation bug:
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $levelToBuild + 1);
(delete + 1 at the end )$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]] + 1);
(delete + 1 at the end )The text was updated successfully, but these errors were encountered: