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

Research bug #355

@xpowert

Description

@xpowert

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 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions