Two Buildings

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

    • Two Buildings

      sory my english dont good

      open to game.php and search

      Source Code

      1. $mode = HTTP::_GP('mode', 'show');



      after add

      Source Code

      1. $page = strtr(
      2. $page,
      3. array(
      4. 'resources' => 'buildings',
      5. 'resourceSettings' => 'resources',
      6. 'station' => 'buildings'
      7. )
      8. );
      Open to includes/pages/game ShowBuildingsPage.class.php

      search


      Source Code

      1. $Elements = $reslist['allow'][$PLANET['planet_type']];

      change to


      Source Code

      1. $page = HTTP::_GP( 'page', '' );
      2. if ($page != 'resources' && $page != 'station') {
      3. $page = 'resources';
      4. }
      5. // check the current page and the allowed elements
      6. // resources page
      7. if ($page == 'resources') {
      8. $allowed['1'] = array(1, 2, 3, 4, 4, 12, 22, 23, 24);
      9. $allowed['3'] = array(12, 22, 23, 24);
      10. }
      11. // station page
      12. if ($page == 'station') {
      13. $allowed['1'] = array(6, 14, 15, 21, 31, 33, 34, 44);
      14. $allowed['3'] = array(14, 21, 41, 42, 43);
      15. }
      16. $Elements = $allowed[$PLANET['planet_type']];
      Display All