This repository was archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Research bug #355
Copy link
Copy link
Open
Description
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 )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels