Mod ajoute de plus d1 batiment dans la liste de construction.

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

    • Mod ajoute de plus d1 batiment dans la liste de construction.

      Bonjour j'aimerais savoir si il existe un mod ajoutant plus d'un batiment dans la liste de construction?

      merci d'avance :)
    • After using google translate I suppose you want this.

      On template [change for your needs]

      HTML Source Code

      1. {if $CanBuildElement && $Element.buyable}
      2. <form action="game.php?page=buildings" method="post" class="row col-8">
      3. <input type="hidden" value="insert" name="cmd"></input>
      4. <input type="hidden" value="{$ID}" name="building"></input>
      5. <button class="btn btn-sm btn-success col-8" type="submit">{$LNG.bd_build_next_level} {$Element.levelToBuild + 1}</button>
      6. <input data-tooltip-content="<table><tr><td>The resource required is updated according to the total cost of the levels you want to build</td></tr></table>" name="loop" id="input_{$ID}" onkeyup="costModifier{$ID}()" onchange="costModifier{$ID}()" class="tooltip col-4 btn btn-sm btn-success" type="number" value="1" min="1" max="{$MaxToBuild}" maxlength="3" size="3"></input>
      7. </form>
      8. {else}


      On buildings page file

      PHP Source Code

      1. $Looper = min(HTTP::_GP('loop', 0), Config::get()->max_elements_build);
      2. /* ... */
      3. switch($TheCommand)
      4. {
      5. /* ... */
      6. case 'insert':
      7. foreach(range($Looper, 1) as $Builder){
      8. $this->AddBuildingToQueue($Element, true);
      9. }
      10. break;
      11. /* ... */
      12. }
      Display All
      Clean and easy.

      The post was edited 1 time, last by Qwa ().