mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-15 17:16:08 +00:00
Add Natars into combat simulator
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
<table id="attacker" class="fill_in" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Attacker</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Natars</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u41" title="Pikeman" alt="Pikeman" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Pikeman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="7" title="Number Pikeman" />
|
||||
</td>
|
||||
<td class="research">
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
|
||||
<img src="img/x.gif" class="unit u42" title="Thorned Warrior" alt="Thorned Warrior" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Thorned Warrior
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="7" title="Number Thorned Warrior" />
|
||||
</td>
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Guardsman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="7" title="Number Guardsman" />
|
||||
</td>
|
||||
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u44" title="Birds Of Prey" alt="Birds Of Prey" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Birds Of Prey
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="7" title="Number Birds Of Prey" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u45" title="Axerider" alt="Axerider" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Axerider
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="7" title="Number Axerider" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u46" title="Natarian Knight" alt="Natarian Knight" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Knight
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_6" value="<?php echo $form->getValue('a1_6'); ?>" maxlength="7" title="Number Natarian Knight" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u47" title="War Elephant" alt="War Elephant" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
War Elephant
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="7" title="Number War Elephant" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u48" title="Ballista" alt="Ballista" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ballista
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="7" title="Number Ballista" />
|
||||
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u49" title="Natarian Emperor" alt="Natarian Emperor" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Emperor
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_9" value="<?php echo $form->getValue('a1_9'); ?>" maxlength="6" title="Number Natarian Emperor" />
|
||||
</td>
|
||||
<td class="research"></td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u50" title="Natarian Settler" alt="Natarian Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_10" value="<?php echo $form->getValue('a1_10'); ?>" maxlength="6" title="Number Natarian Settler" />
|
||||
</td>
|
||||
<td class="research"></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
@@ -0,0 +1,108 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<th>Natars</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u41" title="Pikeman" alt="Pikeman" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Pikeman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_41" value="<?php echo $form->getValue('a2_41'); ?>" maxlength="10" title="Number Pikeman" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u42" title="Thorned Warrior" alt="Thorned Warrior" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Thorned Warrior
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_42" value="<?php echo $form->getValue('a2_42'); ?>" maxlength="10" title="Number Thorned Warrior" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Guardsman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_43" value="<?php echo $form->getValue('a2_43'); ?>" maxlength="10" title="Number Guardsman" />
|
||||
</td>
|
||||
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u44" title="Birds Of Prey" alt="Birds Of Prey" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Birds Of Prey
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_44" value="<?php echo $form->getValue('a2_44'); ?>" maxlength="10" title="Number Birds Of Prey" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u45" title="Axerider" alt="Axerider" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Axerider
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_45" value="<?php echo $form->getValue('a2_45'); ?>" maxlength="10" title="Number Axerider" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u46" title="Natarian Knight" alt="Natarian Knight" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Knight
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_46" value="<?php echo $form->getValue('a2_46'); ?>" maxlength="10" title="Number Natarian Knight" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u47" title="War Elephant" alt="War Elephant" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
War Elephant
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_47" value="<?php echo $form->getValue('a2_47'); ?>" maxlength="10" title="Number War Elephant" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u48" title="Ballista" alt="Ballista" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ballista
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_48" value="<?php echo $form->getValue('a2_48'); ?>" maxlength="10" title="Number Ballista" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u49" title="Natarian Emperor" alt="Natarian Emperor" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Emperor
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_49" value="<?php echo $form->getValue('a2_49'); ?>" maxlength="6" title="Number Natarian Emperor" />
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u50" title="Natarian Settler" alt="Natarian Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Natarian Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_50" value="<?php echo $form->getValue('a2_50'); ?>" maxlength="6" title="Number Natarian Settler" />
|
||||
</td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -0,0 +1,64 @@
|
||||
<table class="results attacker" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Attacker
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u41" title="Pikeman" alt="Pikeman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u42" title="Thorned Warrior" alt="Thorned Warrior" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u44" title="Birds Of Prey" alt="Birds Of Prey"r" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u45" title="Axerider" alt="Axerider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u46" title="Natarian Knight" alt="Natarian Knight" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u47" title="War Elephant" alt="War Elephant" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u48" title="Ballista" alt="Ballista" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u49" title="Natarian Emperor" alt="Natarian Emperor" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u50" title="Natarian Settler" alt="Natarian Settler" />
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,64 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u41" title="Pikeman" alt="Pikeman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u42" title="Thorned Warrior" alt="Thorned Warrior" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u44" title="Birds Of Prey" alt="Birds Of Prey"r" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u45" title="Axerider" alt="Axerider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u46" title="Natarian Knight" alt="Natarian Knight" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u47" title="War Elephant" alt="War Elephant" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u48" title="Ballista" alt="Ballista" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u49" title="Natarian Emperor" alt="Natarian Emperor" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u50" title="Natarian Settler" alt="Natarian Settler" />
|
||||
</td>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a2_41')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_41');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_42')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_42');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_43')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_43');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_44')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_44');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_45')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_45');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_46')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_46');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_47')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_47');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_48')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_48');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_49')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_49');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_50')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_50');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a2_41')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_42')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_43')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_44')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_45')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_46')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_47')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_48')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_49')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_50')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user