Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Research bug #355

Open
xpowert opened this issue Jan 17, 2019 · 2 comments
Open

Research bug #355

xpowert opened this issue Jan 17, 2019 · 2 comments

Comments

@xpowert
Copy link

xpowert commented Jan 17, 2019

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 )

@yamilrh
Copy link

yamilrh commented May 22, 2019

good, you know how I can fix the error of the investigation when you cancel that gives you more resources ...

@yamilrh
Copy link

yamilrh commented May 23, 2019

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants