mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 22:01:00 +00:00
0065cb3970
+Added the possibility to send units to another villages (spy, reinforcement, normal attack and raid) +Added the possibility to set the spying type and the catapult targets +Some changes in the DB
17 lines
598 B
Smarty
17 lines
598 B
Smarty
{$groupNames = [$smarty.const.RESOURCES, $smarty.const.INFRASTRUCTURE, $smarty.const.MILITARY]}
|
|
|
|
<select name="{$targetName}" class="dropdown">
|
|
{if $randomTargetValue < 0}
|
|
<option value="{$randomTargetValue + 1}">-</option>
|
|
{/if}
|
|
<option value="{$randomTargetValue}">{$smarty.const.RANDOM}</option>
|
|
{foreach $groupNames as $type => $groupName}
|
|
{if !empty($catapultTargetBuildings[$type])}
|
|
<optgroup label="{$groupName}">
|
|
{foreach $catapultTargetBuildings[$type] as $building}
|
|
<option value="{$building.id}">{$building.name}</option>
|
|
{/foreach}
|
|
</optgroup>
|
|
{/if}
|
|
{/foreach}
|
|
</select> |