increase attack power by fleet type?

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

    • increase attack power by fleet type?

      .Currently, +1 attack power increases the attack power of the entire fleet.

      What I want is to allow users to increase attack power by fleet type.
      How can I do it?
      --------------------------------------------------------------------------------------
    • para eso tendrias que empezar creando un campo en la tabla uni1_vars "typeGun" ahi entonces le pones a las naves el tipo de armas que seria 1,2,3
      Creo que el new-star tiene algo como lo que buscas.
      VERY SAD :/ :/ :/ :/
    • Puedes trabajar con algo como esto, en tu caso remplazarlo por la tecnología de ataque o lo que quieras hacer

      Source Code

      1. if($pricelist[$id]['type_gun'] == 1)
      2. $shield += ($shield / 100 * (0.75*$player['arsenal_slight_level']) + $shield / 100 * (0.75*(min(50,$player['defence_tech']))));
      3. elseif($pricelist[$id]['type_gun'] == 2)
      4. $shield += ($shield / 100 * (0.60*$player['arsenal_smedium_level']) + $shield / 100 * (0.60*min(50,$player['defence_tech'])));
      5. elseif($pricelist[$id]['type_gun'] == 3)
      6. $shield += ($shield / 100 * (0.40*$player['arsenal_sheavy_level']) + $shield / 100 * (0.40*min(50,$player['defence_tech'])));
      Los ficheros que deberías mirar en tu motor de ataque calculateAttack.php, VarsBuildCache.class.php
      'type_gun'=> $varsRow['type_gun'],
      Si quieres ir un poco mas allá, deberás modificar algunos ficheros mas, tal vez con esto puedas lograr algo. Saludos
      VERY SAD :/ :/ :/ :/