How to update perhour production for planets?

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

    • How to update perhour production for planets?

      I've created a mod where players can get upgrades and I added sql items to prehour production to planetressupdate.php but when I buy my upgrade through upgrade page it doesn't update it. It only updates it when I build a new building or do something like that. What should I add in my page to make sure that all planets are updated after activating certain upgrade?
    • you have to reload the page.
      and the ecosystem must be triggert, so the calculations get refreshed.
      could look like that


      PHP Source Code

      1. if (!$this->disableEcoSystem) {
      2. $this->ecoObj = new ResourceUpdate();
      3. $this->ecoObj->CalcResource();
      4. }