research bug

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • research bug

      Hola hay un bug en las investigaciones que mis usuarios explotan a cada rato y se dan recursos, este bug actúa de la siguiente forma... mandas una investigación y cuando la cancelas en vez de devolverte el % del recurso del costo, te devuelve mas... hay alguna forma de solucionar esto?
      VERY SAD :/ :/ :/ :/
    • ja das ist ein fehler der auf einem fehlerhaften fix von mir basiert^^
      änderer line 61 in includes/pages/game/ShowResearchPage.class.php

      PHP Source Code: includes/pages/game/ShowResearchPage.class.php

      1. $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]]);

      in

      PHP Source Code: includes/pages/game/ShowResearchPage.class.php

      1. $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]] + 1);
    • hm the code you have should give back the price of the level already researched
      the code i posted this time gives back the price of the actual research

      you could use
      $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, true, $USER[$resource[$elementId]] + 1);

      this would give back 50% of the price of the actual research

      all solutions should not give back more then the cost of the actual research