NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327
NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327 Please be advised, is not fully tested so if you activate on install maybe is not fully working
@@ -27,7 +27,7 @@ if(isset($id)){
|
||||
$units = $database->getUnit($village['wref']);
|
||||
$coor = $database->getCoor($village['wref']);
|
||||
$tribe = $user['tribe'];
|
||||
if($tribe ==1){ $img = 0;} if($tribe ==2){ $img = 10;} if($tribe ==3){ $img = 20;} if($tribe ==4){ $img = 30;} if($tribe ==5){ $img = 40;} if($tribe ==6){ $img = 50;}
|
||||
$img = ($tribe >= 1 && $tribe <= 9) ? ($tribe - 1) * 10 : 0;
|
||||
include("search2.tpl");
|
||||
?>
|
||||
<style>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
## Copyright : TravianZ (c) 2010-2025. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
$unarray = [1=>U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33,U34,U35,U36,U37,U38,U39,U40,U41,U42,U43,U44,U45,U46,U47,U48,U49,U50,U99,U0];
|
||||
$unarray = [1=>U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33,U34,U35,U36,U37,U38,U39,U40,U41,U42,U43,U44,U45,U46,U47,U48,U49,U50,U51,U52,U53,U54,U55,U56,U57,U58,U59,U60,U61,U62,U63,U64,U65,U66,U67,U68,U69,U70,U71,U72,U73,U74,U75,U76,U77,U78,U79,U80,U81,U82,U83,U84,U85,U86,U87,U88,U89,U90,U99,U0];
|
||||
if (empty($_SESSION['access']) || $_SESSION['access'] < 9) {
|
||||
die(defined('ACCESS_DENIED_ADMIN') ? ACCESS_DENIED_ADMIN : 'Access Denied: You are not Admin!');
|
||||
}
|
||||
|
||||
@@ -105,6 +105,10 @@ $editIcon = '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke=
|
||||
<tr><td>New Alliance & Embassy Mechanics <em class="tooltip">?<span class="classic">https://github.com/Shadowss/TravianZ/wiki/New-Alliance-&-Embassy-Mechanics</span></em></td><td><?php echo NEW_FUNCTIONS_EMBASSY_MECHANICS ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>New forum post message <em class="tooltip">?<span class="classic">Enable (Disable) forum subscription messages</span></em></td><td><?php echo NEW_FUNCTIONS_FORUM_POST_MESSAGE ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>Tribes images in profile <em class="tooltip">?<span class="classic">Enable (Disable) displaying images of tribes</span></em></td><td><?php echo NEW_FUNCTIONS_TRIBE_IMAGES ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>New Tribe: Huns <em class="tooltip">?<span class="classic">Enable (Disable) the Huns tribe</span></em></td><td><?php echo (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS) ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>New Tribe: Egyptians <em class="tooltip">?<span class="classic">Enable (Disable) the Egyptians tribe</span></em></td><td><?php echo (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS) ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>New Tribe: Spartans <em class="tooltip">?<span class="classic">Enable (Disable) the Spartans tribe</span></em></td><td><?php echo (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS) ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>New Tribe: Vikings <em class="tooltip">?<span class="classic">Enable (Disable) the Vikings tribe</span></em></td><td><?php echo (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS) ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>MHs images in profile <em class="tooltip">?<span class="classic">Enable (Disable) displaying images of Multihunters</span></em></td><td><?php echo NEW_FUNCTIONS_MHS_IMAGES ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>Display artifact in profile <em class="tooltip">?<span class="classic">Enable (Disable) the display of the artifact</span></em></td><td><?php echo NEW_FUNCTIONS_DISPLAY_ARTIFACT ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
<tr><td>Display WoW in profile <em class="tooltip">?<span class="classic">Enable (Disable) the display of the wonder</span></em></td><td><?php echo NEW_FUNCTIONS_DISPLAY_WONDER ? "<span class='badge green'>Enabled</span>" : "<span class='badge red'>Disabled</span>"; ?></td></tr>
|
||||
|
||||
@@ -28,7 +28,7 @@ if(isset($_GET['uid'])){
|
||||
if ($hdata['heroid'] == $hid) { $hero = $hdata; break; }
|
||||
}
|
||||
|
||||
$unarray = array(1=>U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33,U34,U35,U36,U37,U38,U39,U40,U41,U42,U43,U44,U45,U46,U47,U48,U49,U50,U99,U0);
|
||||
$unarray = array(1=>U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33,U34,U35,U36,U37,U38,U39,U40,U41,U42,U43,U44,U45,U46,U47,U48,U49,U50,U51,U52,U53,U54,U55,U56,U57,U58,U59,U60,U61,U62,U63,U64,U65,U66,U67,U68,U69,U70,U71,U72,U73,U74,U75,U76,U77,U78,U79,U80,U81,U82,U83,U84,U85,U86,U87,U88,U89,U90,U99,U0);
|
||||
$utribe = ($user['tribe']-1)*10;
|
||||
|
||||
$expPct = 0;
|
||||
@@ -144,8 +144,14 @@ function go_url(url){ location=url; return false; }
|
||||
<div class="form-row"><label>Hero Name</label><div class="field"><input name="hname" type="text" value="<?php echo htmlspecialchars($hero['name']);?>"></div></div>
|
||||
<div class="form-row"><label>Hero Unit</label><div class="field">
|
||||
<div class="unit-preview"><span id="unt"><img class="unit u<?php echo $hero['unit'];?>" src="img/x.gif"></span>
|
||||
<select name="hunit" onchange="check_unit(this)" style="flex:1;border:none;background:transparent;">
|
||||
<?php for($i=1;$i<7;$i++){ if(($i==3&&$user['tribe']==4)||($i==4&&$user['tribe']!=3))continue; $v=$utribe+$i; echo "<option value='$v'".($hero['unit']==$v?' selected':'').">".$unarray[$v]."</option>"; }?>
|
||||
<select name="hunit" onchange="check_unit(this)" style="flex:1;padding:6px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f172a;font-size:13px;">
|
||||
<?php
|
||||
// sloturile care au erou definit in hero_full.php (generic pentru toate triburile)
|
||||
for($i=1;$i<7;$i++){
|
||||
$v=$utribe+$i;
|
||||
if(!isset(${'h'.$v})) continue;
|
||||
echo "<option value='$v'".($hero['unit']==$v?' selected':'').">".$unarray[$v]."</option>";
|
||||
}?>
|
||||
</select></div>
|
||||
</div></div>
|
||||
<div class="form-row"><label>❤ Health</label><div class="field"><input name="hhealth" type="text" value="<?php echo round($hero['health']);?>" style="width:80px;"> %</div></div>
|
||||
|
||||
@@ -244,6 +244,50 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
New Tribe: Huns
|
||||
</td>
|
||||
<td>
|
||||
<select name="new_function_tribe_huns">
|
||||
<option value="True" <?php if(defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS == true) echo "selected";?>>True</option>
|
||||
<option value="False" <?php if(!defined('NEW_FUNCTION_TRIBE_HUNS') || NEW_FUNCTION_TRIBE_HUNS == false) echo "selected";?>>False</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
New Tribe: Egyptians
|
||||
</td>
|
||||
<td>
|
||||
<select name="new_function_tribe_egipteans">
|
||||
<option value="True" <?php if(defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS == true) echo "selected";?>>True</option>
|
||||
<option value="False" <?php if(!defined('NEW_FUNCTION_TRIBE_EGIPTEANS') || NEW_FUNCTION_TRIBE_EGIPTEANS == false) echo "selected";?>>False</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
New Tribe: Spartans
|
||||
</td>
|
||||
<td>
|
||||
<select name="new_function_tribe_spartans">
|
||||
<option value="True" <?php if(defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS == true) echo "selected";?>>True</option>
|
||||
<option value="False" <?php if(!defined('NEW_FUNCTION_TRIBE_SPARTANS') || NEW_FUNCTION_TRIBE_SPARTANS == false) echo "selected";?>>False</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
New Tribe: Vikings
|
||||
</td>
|
||||
<td>
|
||||
<select name="new_function_tribe_vikings">
|
||||
<option value="True" <?php if(defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS == true) echo "selected";?>>True</option>
|
||||
<option value="False" <?php if(!defined('NEW_FUNCTION_TRIBE_VIKINGS') || NEW_FUNCTION_TRIBE_VIKINGS == false) echo "selected";?>>False</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -110,6 +110,10 @@ select.dropdown { width:100%; }
|
||||
<option value="3" <?php if($user['tribe']==3)echo"selected"; ?>>3. Gaul</option>
|
||||
<option value="4" <?php if($user['tribe']==4)echo"selected"; ?>>4. Nature</option>
|
||||
<option value="5" <?php if($user['tribe']==5)echo"selected"; ?>>5. Natars</option>
|
||||
<option value="6" <?php if($user['tribe']==6)echo"selected"; ?>>6. Hun</option>
|
||||
<option value="7" <?php if($user['tribe']==7)echo"selected"; ?>>7. Egyptian</option>
|
||||
<option value="8" <?php if($user['tribe']==8)echo"selected"; ?>>8. Spartan</option>
|
||||
<option value="9" <?php if($user['tribe']==9)echo"selected"; ?>>9. Viking</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
||||
@@ -80,7 +80,7 @@ if(isset($id)) { include("search2.tpl"); ?>
|
||||
<div style="margin-top:10px;max-height:180px;overflow:auto;border:1px solid #e5e7eb;border-radius:6px">
|
||||
<table class="vtable" style="font-size:11.5px">
|
||||
<thead><tr><th style="width:50px">GID</th><th>Name</th></tr></thead>
|
||||
<tbody><?php for($i=1;$i<=42;$i++){ echo '<tr><td>'.$i.'</td><td>'.$funct->procResType($i).'</td></tr>'; } ?></tbody>
|
||||
<tbody><?php for($i=1;$i<=50;$i++){ echo '<tr><td>'.$i.'</td><td>'.$funct->procResType($i).'</td></tr>'; } ?></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,7 +131,7 @@ if(isset($id)) { include("search2.tpl"); ?>
|
||||
<!-- 2. Village Center -->
|
||||
<div style="text-align:center">
|
||||
<div style="font-size:12px;font-weight:600;color:#475569;margin-bottom:8px">Village Center</div>
|
||||
<?php $WW=$fdata['f99t']; $wall=$fdata['f40t']; $wallType=$wall==0?'d2_0':($user['tribe']==2?'d2_12':($user['tribe']==3?'d2_1':'d2_11')); ?>
|
||||
<?php $WW=$fdata['f99t']; $wall=$fdata['f40t']; $wallGfx=[1=>'d2_11',2=>'d2_12',3=>'d2_1',6=>'d2_16',7=>'d2_17',8=>'d2_18',9=>'d2_19']; /* 6-9: bg16-bg19.jpg */ $wallType=$wall==0?'d2_0':($wallGfx[$user['tribe']] ?? 'd2_11'); ?>
|
||||
<div id="content" class="village2" style="padding:0">
|
||||
<div id="village_map" class="<?php echo $wallType; ?>" style="margin:0 auto;transform:scale(.9);transform-origin:top">
|
||||
<?php for($b=1;$b<21;$b++){ $gid=$fdata['f'.($b+18).'t']; echo $gid>0?'<img src="../img/x.gif" class="building d'.$b.' g'.$gid.'">':'<img src="../img/x.gif" class="building d'.$b.' iso">'; }
|
||||
|
||||
@@ -173,7 +173,7 @@ body{margin:0;background:#f1f5f9;font-family:system-ui,-apple-system,Segoe UI,Ro
|
||||
<?php
|
||||
if ($criteria!= "") {
|
||||
$artifactsEffect = ['-', VILLAGE_EFFECT, ACCOUNT_EFFECT, UNIQUE_EFFECT];
|
||||
$array_tribe = ['-', TRIBE1, TRIBE2, TRIBE3, TRIBE4, TRIBE5];
|
||||
$array_tribe = ['-', TRIBE1, TRIBE2, TRIBE3, TRIBE4, TRIBE5, TRIBE6, TRIBE7, TRIBE8, TRIBE9];
|
||||
$q = "SELECT v.wref, v.owner, v.name, v.capital, v.pop, u.username, u.tribe, u.access, w.x, w.y"
|
||||
. ($includeSize? ", a.size" : "")
|
||||
. " FROM ".TB_PREFIX."vdata AS v"
|
||||
@@ -236,6 +236,10 @@ body{margin:0;background:#f1f5f9;font-family:system-ui,-apple-system,Segoe UI,Ro
|
||||
<tr><td><img src="../img/admin/map_2.gif"></td><td><?php echo TRIBE2;?></td></tr>
|
||||
<tr><td><img src="../img/admin/map_3.gif"></td><td><?php echo TRIBE3;?></td></tr>
|
||||
<tr><td><img src="../img/admin/map_5.gif"></td><td><?php echo TRIBE5;?></td></tr>
|
||||
<?php if(defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS){ ?><tr><td><img src="../img/admin/map_6.gif"></td><td><?php echo TRIBE6;?></td></tr><?php } ?>
|
||||
<?php if(defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS){ ?><tr><td><img src="../img/admin/map_7.gif"></td><td><?php echo TRIBE7;?></td></tr><?php } ?>
|
||||
<?php if(defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS){ ?><tr><td><img src="../img/admin/map_8.gif"></td><td><?php echo TRIBE8;?></td></tr><?php } ?>
|
||||
<?php if(defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS){ ?><tr><td><img src="../img/admin/map_9.gif"></td><td><?php echo TRIBE9;?></td></tr><?php } ?>
|
||||
<tr><td><img src="../img/admin/map_0.gif"></td><td>Multihunters</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -21,9 +21,9 @@ if($_SESSION['access'] < MULTIHUNTER) die("Access Denied!");
|
||||
$active = $admin->getUserActive();
|
||||
$count = count($active);
|
||||
|
||||
$tribeName = [1=>'Roman',2=>'Teuton',3=>'Gaul'];
|
||||
$tribeColor = [1=>'#c0392b',2=>'#2980b9',3=>'#27ae60'];
|
||||
$tribeImg = [1=>'',2=>'1',3=>'2'];
|
||||
$tribeName = [1=>'Roman',2=>'Teuton',3=>'Gaul',6=>'Hun',7=>'Egyptian',8=>'Spartan',9=>'Viking'];
|
||||
$tribeColor = [1=>'#c0392b',2=>'#2980b9',3=>'#27ae60',6=>'#8e44ad',7=>'#d4a017',8=>'#b03a2e',9=>'#16a085'];
|
||||
$tribeImg = [1=>'',2=>'1',3=>'2',6=>'5',7=>'6',8=>'7',9=>'8'];
|
||||
|
||||
// MAPARE ACCES -> TEXT
|
||||
$accessLabels = [
|
||||
|
||||
@@ -73,15 +73,12 @@ if ($hero !== false) {
|
||||
None <span style="color:#2563eb;font-weight:600">Add Hero</span>
|
||||
<?php
|
||||
$utribe=($user['tribe']-1)*10;
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+1)."'><img class=\"unit u".($utribe+1)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+1)."\" title=\"".$technology->getUnitName($utribe+1)."\" /></a>";
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+2)."'><img class=\"unit u".($utribe+2)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+2)."\" title=\"".$technology->getUnitName($utribe+2)."\" /></a>";
|
||||
if ($utribe!=20) {
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+3)."'><img class=\"unit u".($utribe+3)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+3)."\" title=\"".$technology->getUnitName($utribe+3)."\" /></a>";
|
||||
}else{
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+4)."'><img class=\"unit u".($utribe+4)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+4)."\" title=\"".$technology->getUnitName($utribe+4)."\" /></a>";
|
||||
// Sloturile 1-6 care au erou definit in hero_full.php (generic pentru toate triburile)
|
||||
for ($hs = 1; $hs <= 6; $hs++) {
|
||||
$huid = $utribe + $hs;
|
||||
if (!isset(${'h'.$huid})) continue;
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".$huid."'><img class=\"unit u".$huid."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($huid)."\" title=\"".$technology->getUnitName($huid)."\" /></a>";
|
||||
}
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+5)."'><img class=\"unit u".($utribe+5)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+5)."\" title=\"".$technology->getUnitName($utribe+5)."\" /></a>";
|
||||
echo " <a href='?action=addHero&uid=".$id."&u=".($utribe+6)."'><img class=\"unit u".($utribe+6)."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($utribe+6)."\" title=\"".$technology->getUnitName($utribe+6)."\" /></a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -75,6 +75,10 @@
|
||||
else if($user['tribe'] == 3) { echo '<span class="badge-tribe">Gauls</span>'; }
|
||||
else if($user['tribe'] == 4) { echo '<span class="badge-tribe">Nature</span>'; }
|
||||
else if($user['tribe'] == 5) { echo '<span class="badge-tribe">Natars</span>'; }
|
||||
else if($user['tribe'] == 6) { echo '<span class="badge-tribe">Huns</span>'; }
|
||||
else if($user['tribe'] == 7) { echo '<span class="badge-tribe">Egyptians</span>'; }
|
||||
else if($user['tribe'] == 8) { echo '<span class="badge-tribe">Spartans</span>'; }
|
||||
else if($user['tribe'] == 9) { echo '<span class="badge-tribe">Vikings</span>'; }
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -31,21 +31,21 @@ function formatNum($n) {
|
||||
function q1($sql){ global $database; $r=$database->query($sql); return $r ? $r->fetch_assoc() : []; }
|
||||
|
||||
// ---- DATE ----
|
||||
$users = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE tribe BETWEEN 1 AND 3")['c'] ?? 0);
|
||||
$users = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE tribe IN (1,2,3,6,7,8,9)")['c'] ?? 0);
|
||||
$active = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."active")['c'] ?? 0);
|
||||
$online = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE timestamp > ".(time()-300)." AND tribe>0")['c'] ?? 0);
|
||||
$banned = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE access=0")['c'] ?? 0);
|
||||
$villages = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."vdata")['c'] ?? 0);
|
||||
$pop = (int)(q1("SELECT SUM(pop) s FROM ".TB_PREFIX."vdata")['s'] ?? 0);
|
||||
|
||||
$tribes = [1=>0,2=>0,3=>0];
|
||||
for($t=1;$t<=3;$t++){ $tribes[$t] = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE tribe=$t")['c'] ?? 0); }
|
||||
$tribes = [1=>0,2=>0,3=>0,6=>0,7=>0,8=>0,9=>0];
|
||||
foreach([1,2,3,6,7,8,9] as $t){ $tribes[$t] = (int)(q1("SELECT COUNT(*) c FROM ".TB_PREFIX."users WHERE tribe=$t")['c'] ?? 0); }
|
||||
|
||||
$gold = (int)(q1("SELECT SUM(gold) s FROM ".TB_PREFIX."users")['s'] ?? 0);
|
||||
|
||||
// ---- TRUPE ----
|
||||
$cells = ['SUM(hero) as hero'];
|
||||
for($i=1;$i<=50;$i++) $cells[] = "SUM(u$i) AS u$i";
|
||||
for($i=1;$i<=90;$i++) $cells[] = "SUM(u$i) AS u$i";
|
||||
$uv = q1("SELECT ".implode(',',$cells)." FROM ".TB_PREFIX."units");
|
||||
$ue = q1("SELECT ".implode(',',$cells)." FROM ".TB_PREFIX."enforcement");
|
||||
?>
|
||||
@@ -59,7 +59,7 @@ $ue = q1("SELECT ".implode(',',$cells)." FROM ".TB_PREFIX."enforcement");
|
||||
.scard .val{font-weight:bold;color:#000}
|
||||
.tribe-bar{height:8px;background:#eee;border-radius:4px;overflow:hidden;margin:4px 0}
|
||||
.tribe-bar span{display:block;height:100%}
|
||||
.romans{background:#c0392b}.teutons{background:#2980b9}.gauls{background:#27ae60}
|
||||
.romans{background:#c0392b}.teutons{background:#2980b9}.gauls{background:#27ae60}.huns{background:#8e44ad}.egyptians{background:#d4a017}.spartans{background:#b03a2e}.vikings{background:#16a085}
|
||||
.troops-wrap{background:#fff;border:1px solid #ddd;border-radius:8px;padding:14px;color:#222}
|
||||
.troops-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
|
||||
.tribe-box{border:1px solid #eee;border-radius:6px;padding:8px;background:#fff}
|
||||
@@ -86,7 +86,7 @@ $ue = q1("SELECT ".implode(',',$cells)." FROM ".TB_PREFIX."enforcement");
|
||||
|
||||
<div class="scard">
|
||||
<h3>👥 Player Distribution</h3>
|
||||
<?php $names=[1=>'Romans',2=>'Teutons',3=>'Gauls']; $colors=[1=>'romans',2=>'teutons',3=>'gauls'];
|
||||
<?php $names=[1=>'Romans',2=>'Teutons',3=>'Gauls',6=>'Huns',7=>'Egyptians',8=>'Spartans',9=>'Vikings']; $colors=[1=>'romans',2=>'teutons',3=>'gauls',6=>'huns',7=>'egyptians',8=>'spartans',9=>'vikings'];
|
||||
foreach($names as $id=>$name){
|
||||
$pct = $users ? round($tribes[$id]/$users*100,1) : 0;
|
||||
echo "<div class='row'><span>$name</span><span class='val'>{$tribes[$id]} ($pct%)</span></div>";
|
||||
@@ -112,7 +112,11 @@ $ue = q1("SELECT ".implode(',',$cells)." FROM ".TB_PREFIX."enforcement");
|
||||
'Teutons' => range(11,20),
|
||||
'Gauls' => range(21,30),
|
||||
'Nature' => range(31,40),
|
||||
'Natars' => range(41,50)
|
||||
'Natars' => range(41,50),
|
||||
'Huns' => range(51,60),
|
||||
'Egyptians' => range(61,70),
|
||||
'Spartans' => range(71,80),
|
||||
'Vikings' => range(81,90)
|
||||
];
|
||||
foreach($tribesUnits as $tribe=>$ids){
|
||||
echo "<div class='tribe-box'><h4>$tribe</h4>";
|
||||
|
||||
@@ -42,9 +42,9 @@ $heroCount = $hero ? 1 : 0;
|
||||
<div class="troops-modern">
|
||||
<div class="troops-grid">
|
||||
<?php
|
||||
if($tribe==1){$s=1;$e=10;} elseif($tribe==2){$s=11;$e=20;} elseif($tribe==3){$s=21;$e=30;} elseif($tribe==4){$s=31;$e=40;} else{$s=41;$e=50;}
|
||||
if($tribe>=1 && $tribe<=9){$s=($tribe-1)*10+1;$e=$tribe*10;} else {$s=41;$e=50;}
|
||||
for($i=$s;$i<=$e;$i++){ $cnt=(int)$units['u'.$i]; $cls=$cnt==0?'zero':'has'; echo '<div class="troop-item"><img src="../img/un/u/'.$i.'.gif"><div class="troop-num '.$cls.'">'.$cnt.'</div></div>'; }
|
||||
if($tribe<=3){
|
||||
if($tribe<=3 || $tribe>=6){
|
||||
$hcls=$heroCount==0?'zero':'has';
|
||||
echo '<div class="troop-item troop-hero"><svg viewBox="0 0 24 24" fill="#facc15" stroke="#eab308" stroke-width="1.5"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg><div class="troop-num '.$hcls.'">'.$heroCount.'</div></div>';
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ if(isset($id)){
|
||||
</br>
|
||||
<div class="map-card">
|
||||
<h3>Village Center - <?php echo htmlspecialchars($village['name']); ?></h3>
|
||||
<?php $WWLevel = $fdata['f99t']; $wallLevel = $fdata['f40t']; if($wallLevel == 0) $wallType = "d2_0"; else { switch($user['tribe']){ case 1: case 5: default: $wallType = "d2_11"; break; case 2: $wallType = "d2_12"; break; case 3: $wallType = "d2_1"; break; } } ?>
|
||||
<?php $WWLevel = $fdata['f99t']; $wallLevel = $fdata['f40t']; if($wallLevel == 0) $wallType = "d2_0"; else { switch($user['tribe']){ case 1: case 5: default: $wallType = "d2_11"; break; case 2: $wallType = "d2_12"; break; case 3: $wallType = "d2_1"; break; case 6: $wallType = "d2_16"; break; case 7: $wallType = "d2_17"; break; case 8: $wallType = "d2_18"; break; case 9: $wallType = "d2_19"; break; } } /* 6-9: bg16-bg19.jpg */ ?>
|
||||
<div id="content" class="village2">
|
||||
<div id="village_map" class="<?php echo $wallType; ?>">
|
||||
<?php for($b = 1; $b < 21; $b++){ $gid = $fdata['f'.($b + 18).'t']; if($gid > 0) echo "<img src=\"../img/x.gif\" class=\"building d".$b." g".$gid."\">"; elseif($gid == 0) echo "<img src=\"../img/x.gif\" class=\"building d".$b." iso\">"; }
|
||||
|
||||
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 10 KiB |
@@ -122,7 +122,12 @@ class Account {
|
||||
}
|
||||
|
||||
// Tribe
|
||||
if (!isset($_POST['vid']) || !in_array((int)$_POST['vid'], [1, 2, 3], true)) {
|
||||
$allowedTribes = [1, 2, 3];
|
||||
if (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS) $allowedTribes[] = 6;
|
||||
if (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS) $allowedTribes[] = 7;
|
||||
if (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS) $allowedTribes[] = 8;
|
||||
if (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS) $allowedTribes[] = 9;
|
||||
if (!isset($_POST['vid']) || !in_array((int)$_POST['vid'], $allowedTribes, true)) {
|
||||
$form->addError("tribe", TRIBE_EMPTY);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,11 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MEDAL_10YEAR = (NEW_FUNCTIONS_MEDAL_10YEAR == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_SPECIAL_MEDALS_SYSTEM = (NEW_FUNCTIONS_SPECIAL_MEDALS_SYSTEM == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (defined('NEW_FUNCTIONS_HERO_T4') && NEW_FUNCTIONS_HERO_T4 ? 'true' : 'false'); // fix: lipsea (bug preexistent)
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
|
||||
$text = admin_config_template_contents();
|
||||
@@ -166,6 +171,11 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_10YEAR%'", $NEW_FUNCTIONS_MEDAL_10YEAR, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_SPECIAL_MEDALS_SYSTEM%'", $NEW_FUNCTIONS_SPECIAL_MEDALS_SYSTEM, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text); // fix: lipsea
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
|
||||
@@ -59,7 +59,7 @@ for ($i = 1; $i <= 40; $i++) {
|
||||
$gid = (int)($_POST["id{$i}gid"] ?? 0);
|
||||
// limităm la valori rezonabile Travian
|
||||
$level = max(0, min(20, $level));
|
||||
$gid = max(0, min(44, $gid)); // 44 = ziduri speciale
|
||||
$gid = max(0, min(50, $gid)); // 50 = Barricade (ultima cladire)
|
||||
$sets[] = "f{$i} = $level";
|
||||
$sets[] = "f{$i}t = $gid";
|
||||
}
|
||||
@@ -74,7 +74,7 @@ if ($gid99 == 40) {
|
||||
} else {
|
||||
$level99 = max(0, min(20, $level99)); // capcană, etc.
|
||||
}
|
||||
$gid99 = max(0, min(44, $gid99));
|
||||
$gid99 = max(0, min(50, $gid99));
|
||||
|
||||
$sets[] = "f99 = " . $level99;
|
||||
$sets[] = "f99t = " . $gid99;
|
||||
|
||||
@@ -74,6 +74,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (NEW_FUNCTIONS_HERO_T4 == false ? 'false' : 'true');
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
|
||||
$text = admin_config_template_contents();
|
||||
$text = preg_replace("'%ERRORREPORT%'", ERROR_REPORT, $text);
|
||||
@@ -166,6 +170,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
$text = preg_replace("'%PLUS_TIME%'", PLUS_TIME, $text);
|
||||
|
||||
@@ -70,6 +70,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (NEW_FUNCTIONS_HERO_T4 == false ? 'false' : 'true');
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
|
||||
$text = admin_config_template_contents();
|
||||
$text = preg_replace("'%ERRORREPORT%'", $ERRORREPORT, $text);
|
||||
@@ -166,6 +170,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
$text = preg_replace("'%PLUS_TIME%'", PLUS_TIME, $text);
|
||||
|
||||
@@ -132,6 +132,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $_POST['new_functions_milestones'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $_POST['new_functions_medal_reset'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $_POST['new_functions_hero_t4'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $_POST['new_function_tribe_huns'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $_POST['new_function_tribe_egipteans'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $_POST['new_function_tribe_spartans'], $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $_POST['new_function_tribe_vikings'], $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
$text = preg_replace("'%PLUS_TIME%'", PLUS_TIME, $text);
|
||||
|
||||
@@ -76,6 +76,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (NEW_FUNCTIONS_HERO_T4 == false ? 'false' : 'true');
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
|
||||
$text = admin_config_template_contents();
|
||||
$text = preg_replace("'%ERRORREPORT%'", $ERRORREPORT, $text);
|
||||
@@ -172,6 +176,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
$text = preg_replace("'%PLUS_TIME%'", PLUS_TIME, $text);
|
||||
|
||||
@@ -58,6 +58,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (NEW_FUNCTIONS_HERO_T4 == false ? 'false' : 'true');
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
|
||||
// SERVER SETTINGS - we need to keep these intact
|
||||
$text = preg_replace("'%ERRORREPORT%'", ERROR_REPORT, $text);
|
||||
@@ -150,6 +154,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
|
||||
// PLUS SETTINGS
|
||||
$text = preg_replace("'%PLUS_TIME%'", $_POST['plus_time'], $text);
|
||||
|
||||
@@ -69,6 +69,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$NEW_FUNCTIONS_MILESTONES = (NEW_FUNCTIONS_MILESTONES == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_MEDAL_RESET = (NEW_FUNCTIONS_MEDAL_RESET == false ? 'false' : 'true');
|
||||
$NEW_FUNCTIONS_HERO_T4 = (NEW_FUNCTIONS_HERO_T4 == false ? 'false' : 'true');
|
||||
$NEW_FUNCTION_TRIBE_HUNS = (defined('NEW_FUNCTION_TRIBE_HUNS') && NEW_FUNCTION_TRIBE_HUNS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_EGIPTEANS = (defined('NEW_FUNCTION_TRIBE_EGIPTEANS') && NEW_FUNCTION_TRIBE_EGIPTEANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_SPARTANS = (defined('NEW_FUNCTION_TRIBE_SPARTANS') && NEW_FUNCTION_TRIBE_SPARTANS ? 'true' : 'false');
|
||||
$NEW_FUNCTION_TRIBE_VIKINGS = (defined('NEW_FUNCTION_TRIBE_VIKINGS') && NEW_FUNCTION_TRIBE_VIKINGS ? 'true' : 'false');
|
||||
|
||||
$text = admin_config_template_contents();
|
||||
$text = preg_replace("'%ERRORREPORT%'", $_POST['error'], $text);
|
||||
@@ -161,6 +165,10 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MILESTONES%'", $NEW_FUNCTIONS_MILESTONES, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_MEDAL_RESET%'", $NEW_FUNCTIONS_MEDAL_RESET, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTIONS_HERO_T4%'", $NEW_FUNCTIONS_HERO_T4, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_HUNS%'", $NEW_FUNCTION_TRIBE_HUNS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_EGIPTEANS%'", $NEW_FUNCTION_TRIBE_EGIPTEANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_SPARTANS%'", $NEW_FUNCTION_TRIBE_SPARTANS, $text);
|
||||
$text = preg_replace("'%NEW_FUNCTION_TRIBE_VIKINGS%'", $NEW_FUNCTION_TRIBE_VIKINGS, $text);
|
||||
|
||||
// PLUS settings need to be kept intact
|
||||
$text = preg_replace("'%PLUS_TIME%'", PLUS_TIME, $text);
|
||||
|
||||
@@ -250,7 +250,7 @@ class adm_DB {
|
||||
$logPunishment = "<b>troops removal</b>";
|
||||
$tribe = (int)$user['tribe'];
|
||||
// 1=Romani (1-10), 2=Teutoni (11-20), 3=Gali (21-30), 4=Natura (31-40), 5=Natari (41-50)
|
||||
$unitStart = ($tribe >= 1 && $tribe <= 5) ? (($tribe - 1) * 10 + 1) : 1;
|
||||
$unitStart = ($tribe >= 1 && $tribe <= 9) ? (($tribe - 1) * 10 + 1) : 1;
|
||||
$this->DelUnits($vid, $unitStart);
|
||||
}
|
||||
|
||||
@@ -978,7 +978,7 @@ class adm_DB {
|
||||
$enforcementarray = $database->getEnforceVillage($base, 0);
|
||||
if (count($enforcementarray) > 0) {
|
||||
foreach ($enforcementarray as $enforce) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$ownunit['u'. $i] += $enforce['u'. $i];
|
||||
}
|
||||
$ownunit['hero'] += $enforce['hero'];
|
||||
@@ -988,7 +988,7 @@ class adm_DB {
|
||||
$enforceoasis = $database->getOasisEnforce($base, 0);
|
||||
if (count($enforceoasis) > 0) {
|
||||
foreach ($enforceoasis as $enforce) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$ownunit['u'. $i] += $enforce['u'. $i];
|
||||
}
|
||||
$ownunit['hero'] += $enforce['hero'];
|
||||
@@ -997,7 +997,7 @@ class adm_DB {
|
||||
$enforceoasis1 = $database->getOasisEnforce($base, 1);
|
||||
if (count($enforceoasis1) > 0) {
|
||||
foreach ($enforceoasis1 as $enforce) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$ownunit['u'. $i] += $enforce['u'. $i];
|
||||
}
|
||||
$ownunit['hero'] += $enforce['hero'];
|
||||
@@ -1023,7 +1023,7 @@ class adm_DB {
|
||||
if (!$InVillageOnly) {
|
||||
$movement = $database->getVillageMovement($base);
|
||||
if (!empty($movement)) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
if (isset($movement['u'. $i])) {
|
||||
$ownunit['u'. $i] += $movement['u'. $i];
|
||||
}
|
||||
|
||||
@@ -414,8 +414,32 @@ class funct
|
||||
$build = "Horse Drinking Trough";
|
||||
break;
|
||||
case 42:
|
||||
$build = "Stone Wall";
|
||||
break;
|
||||
case 43:
|
||||
$build = "Makeshift Wall";
|
||||
break;
|
||||
case 44:
|
||||
$build = "Command Center";
|
||||
break;
|
||||
case 45:
|
||||
$build = "Waterworks";
|
||||
break;
|
||||
case 46:
|
||||
$build = "Hospital";
|
||||
break;
|
||||
case 47:
|
||||
$build = "Defensive Wall";
|
||||
break;
|
||||
case 48:
|
||||
$build = "Big Hospital";
|
||||
break;
|
||||
case 49:
|
||||
$build = "Great Workshop";
|
||||
break;
|
||||
case 50:
|
||||
$build = "Barricade";
|
||||
break;
|
||||
default:
|
||||
$build = "Error";
|
||||
break;
|
||||
|
||||
@@ -92,7 +92,7 @@ class Automation {
|
||||
|
||||
$methodsArrays = ["culturePoints", "updateHero", "clearDeleting", "buildComplete",
|
||||
"demolitionComplete", "marketComplete", "researchComplete",
|
||||
"trainingComplete", "starvation", "celebrationComplete", "festivalComplete",
|
||||
"trainingComplete", "healingComplete", "starvation", "celebrationComplete", "festivalComplete",
|
||||
"sendUnitsComplete", "loyaltyRegeneration", "sendreinfunitsComplete",
|
||||
"returnunitsComplete", "sendSettlersComplete", "spawnNatars",
|
||||
"spawnWWVillages", "spawnWWBuildingPlans", "activateArtifacts",
|
||||
@@ -758,7 +758,8 @@ class Automation {
|
||||
$merchant2 = ($this->getTypeLevel(17, $from) > 0)? $this->getTypeLevel(17, $from) : 0;
|
||||
$used2 = $database->totalMerchantUsed($from, false);
|
||||
$merchantAvail2 = $merchant2 - $used2;
|
||||
$maxcarry2 = ($tribe == 1)? 500 : (($tribe == 2)? 1000 : 750);
|
||||
$carrymap = array(1 => 500, 2 => 1000, 3 => 750, 6 => 500, 7 => 750, 8 => 500, 9 => 750);
|
||||
$maxcarry2 = isset($carrymap[$tribe]) ? $carrymap[$tribe] : 750;
|
||||
$maxcarry2 *= TRADER_CAPACITY;
|
||||
|
||||
if($this->getTypeLevel(28, $from) != 0) {
|
||||
@@ -1350,7 +1351,9 @@ class Automation {
|
||||
$database->query("DELETE FROM " . TB_PREFIX . "route where wid = " . (int)$data['to'] . " OR `from` = " . (int)$data['to']);
|
||||
|
||||
$units2reset = [];
|
||||
for ($u = 1; $u <= 50; $u++) $units2reset[] = 'u' . $u . ' = 0';
|
||||
for ($u = 1; $u <= 90; $u++) $units2reset[] = 'u' . $u . ' = 0';
|
||||
// cucerirea goleste spitalul si coada de vindecare
|
||||
$database->clearHospital($data['to']);
|
||||
$units2reset[] = 'u99 = 0';
|
||||
$units2reset[] = 'u99o = 0';
|
||||
$units2reset[] = 'hero = 0';
|
||||
@@ -1487,13 +1490,15 @@ class Automation {
|
||||
";
|
||||
}else if($data['spy'] == 2){
|
||||
if ($isoasis == 0){
|
||||
$walllevel = $database->getFieldLevelInVillage($data['to'], '31, 32, 33');
|
||||
$walllevel = $database->getFieldLevelInVillage($data['to'], '31, 32, 33, 42, 43, 47, 50');
|
||||
$residencelevel = $database->getFieldLevelInVillage($data['to'], 25);
|
||||
$palacelevel = $database->getFieldLevelInVillage($data['to'], 26);
|
||||
$residenceimg = "<img src=\"".GP_LOCATE."img/g/g25.gif\" height=\"20\" width=\"15\" alt=\"".RESIDENCE."\" title=\"".RESIDENCE."\" />";
|
||||
$palaceimg = "<img src=\"".GP_LOCATE."img/g/g26.gif\" height=\"20\" width=\"15\" alt=\"".PALACE."\" title=\"".PALACE."\" />";
|
||||
$crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\" alt=\"".CRANNY."\" title=\"".CRANNY."\" />";
|
||||
$wallimg = "<img src=\"".GP_LOCATE."img/g/g3".$targettribe."Icon.gif\" height=\"20\" width=\"15\" alt=\"".rc_tok('RC_WALL')."\" title=\"".rc_tok('RC_WALL')."\" />";
|
||||
$wallgids = array(1 => 31, 2 => 32, 3 => 33, 6 => 43, 7 => 42, 8 => 47, 9 => 50);
|
||||
$wallgid = isset($wallgids[$targettribe]) ? $wallgids[$targettribe] : 31;
|
||||
$wallimg = "<img src=\"".GP_LOCATE."img/g/g".$wallgid."Icon.gif\" height=\"20\" width=\"15\" alt=\"".rc_tok('RC_WALL')."\" title=\"".rc_tok('RC_WALL')."\" />";
|
||||
$info_spy = "".$spy_pic.",";
|
||||
if($residencelevel > 0) $info_spy .= $residenceimg." ".rc_tok('RC_RESIDENCE_LEVEL')."<b>".$residencelevel."</b><br />";
|
||||
elseif($palacelevel > 0) $info_spy .= $palaceimg." ".rc_tok('RC_PALACE_LEVEL')." <b>".$palacelevel."</b><br />";
|
||||
@@ -1676,6 +1681,7 @@ class Automation {
|
||||
$unitssend_att, $unitsdead_att, $steal, $battlepart,
|
||||
$unitssend_def, $unitsdead_def, $unitssend_deff, $unitsdead_deff,
|
||||
$rom, $ger, $gal, $nat, $natar,
|
||||
$hun, $egy, $spa, $vik,
|
||||
$DefenderHeroesTot, $DefenderHeroesDead,
|
||||
$info_ram, $info_cat, $info_chief, $info_spy,
|
||||
$info_trap, $info_hero, $info_troop,
|
||||
@@ -1692,6 +1698,10 @@ class Automation {
|
||||
.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat
|
||||
.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar
|
||||
.','.$unitssend_def[5].','.$unitsdead_def[5]
|
||||
.','.$hun.','.$unitssend_def[6].','.$unitsdead_def[6]
|
||||
.','.$egy.','.$unitssend_def[7].','.$unitsdead_def[7]
|
||||
.','.$spa.','.$unitssend_def[8].','.$unitsdead_def[8]
|
||||
.','.$vik.','.$unitssend_def[9].','.$unitsdead_def[9]
|
||||
.','.$DefenderHeroesTot.','.$DefenderHeroesDead
|
||||
.','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy
|
||||
.','.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero
|
||||
@@ -1714,6 +1724,10 @@ class Automation {
|
||||
.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat
|
||||
.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar
|
||||
.','.$unitssend_def[5].','.$unitsdead_def[5]
|
||||
.','.$hun.','.$unitssend_def[6].','.$unitsdead_def[6]
|
||||
.','.$egy.','.$unitssend_def[7].','.$unitsdead_def[7]
|
||||
.','.$spa.','.$unitssend_def[8].','.$unitsdead_def[8]
|
||||
.','.$vik.','.$unitssend_def[9].','.$unitsdead_def[9]
|
||||
.','.$DefenderHeroesTot.','.$DefenderHeroesDead
|
||||
.','.$info_ram.','.$info_cat.','.$info_chief.','.(isset($info_spy) ? $info_spy : '')
|
||||
.',,'.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero
|
||||
@@ -1732,6 +1746,10 @@ class Automation {
|
||||
.','.$unitssend_deff[3].','.$unitsdead_deff[3].','.$nat
|
||||
.','.$unitssend_deff[4].','.$unitsdead_deff[4].','.$natar
|
||||
.','.$unitssend_deff[5].','.$unitsdead_deff[5]
|
||||
.','.$hun.','.$unitssend_deff[6].','.$unitsdead_deff[6]
|
||||
.','.$egy.','.$unitssend_deff[7].','.$unitsdead_deff[7]
|
||||
.','.$spa.','.$unitssend_deff[8].','.$unitsdead_deff[8]
|
||||
.','.$vik.','.$unitssend_deff[9].','.$unitsdead_deff[9]
|
||||
.','.$DefenderHeroesTot.','.$DefenderHeroesDead
|
||||
.',,,'.$data['t11'].','.$dead11.','.$unitstraped_att
|
||||
.',,'.$info_ram.','.$info_cat.','.$info_chief.','.$info_troop.','.$info_hero;
|
||||
@@ -1840,6 +1858,13 @@ class Automation {
|
||||
// modify units in DB
|
||||
$database->modifyUnit($data['to'], $unitModifications_units, $unitModifications_amounts, $unitModifications_modes);
|
||||
|
||||
// Spital: o parte din mortii proprii (aparare) devin raniti - doar unitatile de lupta X1-X8
|
||||
$woundedMap = [];
|
||||
for($wi = $start; $wi <= $start + 7; $wi++) {
|
||||
if(!empty($owndead[$wi])) $woundedMap[$wi] = $owndead[$wi];
|
||||
}
|
||||
$this->applyHospitalWounded($data['to'], $woundedMap);
|
||||
|
||||
return $owndead;
|
||||
}
|
||||
|
||||
@@ -1867,7 +1892,7 @@ class Automation {
|
||||
private function applyReinforcementCasualties($data, $battlepart, $from, $to, $ownally, $AttackArrivalTime, $scout, array &$alldead, array &$DefenderHeroesDeadArray) {
|
||||
global $database;
|
||||
|
||||
$rom = $ger = $gal = $nat = $natar = 0;
|
||||
$rom = $ger = $gal = $nat = $natar = $hun = $egy = $spa = $vik = 0;
|
||||
|
||||
//kill other defence in village
|
||||
// ... once again, units could have changed, so we need to reselect
|
||||
@@ -1889,6 +1914,10 @@ class Automation {
|
||||
case 2: $ger = 1; break;
|
||||
case 3: $gal = 1; break;
|
||||
case 4: $nat = 1; break;
|
||||
case 6: $hun = 1; break;
|
||||
case 7: $egy = 1; break;
|
||||
case 8: $spa = 1; break;
|
||||
case 9: $vik = 1; break;
|
||||
case 5:
|
||||
default: $natar = 1; break;
|
||||
}
|
||||
@@ -1961,7 +1990,7 @@ class Automation {
|
||||
}
|
||||
}
|
||||
|
||||
return ['rom' => $rom, 'ger' => $ger, 'gal' => $gal, 'nat' => $nat, 'natar' => $natar];
|
||||
return ['rom' => $rom, 'ger' => $ger, 'gal' => $gal, 'nat' => $nat, 'natar' => $natar, 'hun' => $hun, 'egy' => $egy, 'spa' => $spa, 'vik' => $vik];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1992,9 +2021,9 @@ class Automation {
|
||||
$unitssend_deff = [];
|
||||
|
||||
//Resetting the enforcement arrays
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$DefenderEnf['u'.$i] = 0;
|
||||
if ($i <= 5) {
|
||||
if ($i <= 9) {
|
||||
$DefenderHeroesTotArray[$i] = 0;
|
||||
$DefenderHeroesDeadArray[$i] = 0;
|
||||
}
|
||||
@@ -2004,7 +2033,7 @@ class Automation {
|
||||
$enforcementarray2 = $database->getEnforceVillage($data['to'], 0);
|
||||
if (count($enforcementarray2) > 0) {
|
||||
foreach ($enforcementarray2 as $enforce2) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$DefenderEnf['u'.$i] += $enforce2['u'.$i];
|
||||
}
|
||||
|
||||
@@ -2027,7 +2056,7 @@ class Automation {
|
||||
$unitssend_def[0] = implode(",", $ownTroops);
|
||||
$unitssend_deff[0] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
|
||||
for ($i = 1; $i <= 5; $i++) {
|
||||
for ($i = 1; $i <= 9; $i++) {
|
||||
//Reinforcements
|
||||
$reinfTroops = array_slice($DefenderEnf, ($i - 1) * 10, 10);
|
||||
$totalsend_alldef += array_sum($reinfTroops);
|
||||
@@ -2249,15 +2278,15 @@ class Automation {
|
||||
$u = ($owntribe - 1) * 10;
|
||||
|
||||
if ($isoasis == 0) {
|
||||
$catapult = [8, 18, 28, 48];
|
||||
$ram = [7, 17, 27, 47];
|
||||
$chief = [9, 19, 29, 49];
|
||||
$catapult = [8, 18, 28, 48, 58, 68, 78, 88];
|
||||
$ram = [7, 17, 27, 47, 57, 67, 77, 87];
|
||||
$chief = [9, 19, 29, 49, 59, 69, 79, 89];
|
||||
} else {
|
||||
$catapult = [8, 18, 28, 38, 48];
|
||||
$ram = [7, 17, 27, 37, 47];
|
||||
$chief = [9, 19, 29, 39, 49];
|
||||
$catapult = [8, 18, 28, 38, 48, 58, 68, 78, 88];
|
||||
$ram = [7, 17, 27, 37, 47, 57, 67, 77, 87];
|
||||
$chief = [9, 19, 29, 39, 49, 59, 69, 79, 89];
|
||||
}
|
||||
$spys = [4, 14, 23, 44];
|
||||
$spys = [4, 14, 23, 44, 52, 64, 74, 82];
|
||||
|
||||
$catp_pic = $ram_pic = $chief_pic = $spy_pic = null;
|
||||
|
||||
@@ -2303,7 +2332,7 @@ class Automation {
|
||||
|
||||
if (count($enforcementarray) > 0) {
|
||||
foreach ($enforcementarray as $enforce) {
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
if (!isset($enforDefender['u'.$i])) {
|
||||
$enforDefender['u'.$i] = 0;
|
||||
}
|
||||
@@ -2316,7 +2345,7 @@ class Automation {
|
||||
}
|
||||
}
|
||||
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
if (!isset($Defender['u'.$i]) || empty($Defender['u'.$i]) || $Defender['u'.$i] < 0) {
|
||||
$Defender['u'.$i] = 0;
|
||||
}
|
||||
@@ -2552,7 +2581,7 @@ class Automation {
|
||||
$totaldead_def = 0;
|
||||
$totalpoint_att = 0;
|
||||
|
||||
for($i = 1 ;$i <= 50; $i++) {
|
||||
for($i = 1 ;$i <= 90; $i++) {
|
||||
$unitarray = $GLOBALS["u".$i];
|
||||
|
||||
//Reinforcements dead troops
|
||||
@@ -2881,6 +2910,16 @@ class Automation {
|
||||
private function finalizeReturnOrDeath($data, $from, $to, $owntribe, $type, $isoasis, $conqureby, $AttackArrivalTime, $targetally, $ownally, $data2, $data_fail, $chiefing_village, $DefenderWref, $AttackerWref, $steal, $dead, $traped, $troopsdead, $totalsend_att, $totaldead_att, $totaltraped_att, &$totalstolentaken) {
|
||||
global $database, $units;
|
||||
|
||||
// Spital: o parte din trupele proprii moarte IN ATAC devin ranite acasa.
|
||||
// $dead e indexat 1..11 pe sloturile tribului; doar unitatile de lupta (1-8).
|
||||
if($owntribe >= 1 && $owntribe <= 9) {
|
||||
$woundedAtt = [];
|
||||
for($wj = 1; $wj <= 8; $wj++) {
|
||||
if(!empty($dead[$wj])) $woundedAtt[($owntribe - 1) * 10 + $wj] = $dead[$wj];
|
||||
}
|
||||
if(!empty($woundedAtt)) $this->applyHospitalWounded($from['wref'], $woundedAtt);
|
||||
}
|
||||
|
||||
// If the dead units not equal the ammount sent they will return and report
|
||||
if($totalsend_att - ($totaldead_att + (isset($totaltraped_att) ? $totaltraped_att : 0)) > 0)
|
||||
{
|
||||
@@ -3168,7 +3207,7 @@ class Automation {
|
||||
$attpop = $popData['attpop'];
|
||||
|
||||
//fix by ronix
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
if (!isset($enforDefender['u'.$i])) {
|
||||
$enforDefender['u'.$i] = 0;
|
||||
}
|
||||
@@ -3289,7 +3328,7 @@ class Automation {
|
||||
$owndead = [];
|
||||
$alldead = [];
|
||||
|
||||
for($i = 1; $i <= 50; $i++) $alldead[$i] = 0;
|
||||
for($i = 1; $i <= 90; $i++) $alldead[$i] = 0;
|
||||
|
||||
//kill own defence — extracted to applyOwnDefenceCasualties() [#155]
|
||||
$owndead = $this->applyOwnDefenceCasualties($data, $targettribe, $battlepart);
|
||||
@@ -3301,6 +3340,10 @@ class Automation {
|
||||
$gal = $tribesPresent['gal'];
|
||||
$nat = $tribesPresent['nat'];
|
||||
$natar = $tribesPresent['natar'];
|
||||
$hun = $tribesPresent['hun'];
|
||||
$egy = $tribesPresent['egy'];
|
||||
$spa = $tribesPresent['spa'];
|
||||
$vik = $tribesPresent['vik'];
|
||||
$totalsend_att = $data['t1']+$data['t2']+$data['t3']+$data['t4']+$data['t5']+$data['t6']+$data['t7']+$data['t8']+$data['t9']+$data['t10']+$data['t11'];
|
||||
|
||||
$DefenderHeroesTot = implode(",", $DefenderHeroesTotArray);
|
||||
@@ -3317,7 +3360,7 @@ class Automation {
|
||||
//Collecting informations for the report
|
||||
$unitsdead_def[0] = implode(",", $ownDeadTroops);
|
||||
$unitsdead_deff[0] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
for($i = 1; $i <= 5; $i++){
|
||||
for($i = 1; $i <= 9; $i++){
|
||||
//Counting reinforcements total dead troops
|
||||
$deadTroops = array_slice($alldead, ($i - 1) * 10, 10);
|
||||
$totaldead_alldef += array_sum($deadTroops);
|
||||
@@ -3412,6 +3455,7 @@ class Automation {
|
||||
$unitssend_att, $unitsdead_att, $steal, $battlepart,
|
||||
$unitssend_def, $unitsdead_def, $unitssend_deff, $unitsdead_deff,
|
||||
$rom, $ger, $gal, $nat, $natar,
|
||||
$hun, $egy, $spa, $vik,
|
||||
$DefenderHeroesTot, $DefenderHeroesDead,
|
||||
$info_ram, $info_cat, $info_chief, isset($info_spy) ? $info_spy : '',
|
||||
$info_trap, $info_hero, $info_troop,
|
||||
@@ -3596,7 +3640,7 @@ class Automation {
|
||||
|
||||
//check empty reinforcement in rally point
|
||||
$e_units = '';
|
||||
for ($i = 1; $i <= 50; $i++) $e_units.= 'u'.$i.'= 0 AND ';
|
||||
for ($i = 1; $i <= 90; $i++) $e_units.= 'u'.$i.'= 0 AND ';
|
||||
|
||||
$e_units.= 'hero = 0';
|
||||
$q = "DELETE FROM ".TB_PREFIX."enforcement WHERE ".$e_units." AND (vref=".(int) $data['to']." OR `from`=".(int) $data['to'].")";
|
||||
@@ -4096,7 +4140,7 @@ class Automation {
|
||||
|
||||
if(count($enforcementarray) > 0){
|
||||
foreach($enforcementarray as $enforce){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
$ownunit['u'.$i] += $enforce['u'.$i];
|
||||
}
|
||||
}
|
||||
@@ -4105,7 +4149,7 @@ class Automation {
|
||||
$enforceoasis = $database->getOasisEnforce($base, 0, $use_cache);
|
||||
if(count($enforceoasis) > 0){
|
||||
foreach($enforceoasis as $enforce){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
$ownunit['u'.$i] += $enforce['u'.$i];
|
||||
}
|
||||
}
|
||||
@@ -4114,7 +4158,7 @@ class Automation {
|
||||
$enforceoasis1 = $database->getOasisEnforce($base, 1, $use_cache);
|
||||
if(count($enforceoasis1) > 0){
|
||||
foreach($enforceoasis1 as $enforce){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
$ownunit['u'.$i] += $enforce['u'.$i];
|
||||
}
|
||||
}
|
||||
@@ -4122,7 +4166,7 @@ class Automation {
|
||||
|
||||
$movement = $database->getVillageMovement($base);
|
||||
if(!empty($movement)){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
if(!isset($ownunit['u' . $i])){
|
||||
$ownunit['u'.$i] = 0;
|
||||
}
|
||||
@@ -4190,6 +4234,72 @@ class Automation {
|
||||
return round($prod * SPEED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Spital (gid 46) / Spital Mare (gid 48): o parte din trupele proprii moarte
|
||||
* in apararea satului devin ranite, in limita capacitatii spitalului.
|
||||
* Cota: 40% (Spital) / 50% (Spital Mare). Capacitate: nivel x 30 / nivel x 60.
|
||||
* Doar unitatile de lupta (X1-X8); chief, settler si eroul nu pot fi raniti.
|
||||
*/
|
||||
private function applyHospitalWounded($vref, array $deadByUnit) {
|
||||
global $database;
|
||||
|
||||
$hospital = $database->getFieldLevelInVillage($vref, '46');
|
||||
$bighospital = $database->getFieldLevelInVillage($vref, '48');
|
||||
if($hospital <= 0 && $bighospital <= 0) return;
|
||||
|
||||
$share = $bighospital > 0 ? 0.50 : 0.40;
|
||||
$capacity = $bighospital > 0 ? $bighospital * 60 : $hospital * 30;
|
||||
|
||||
$stored = 0;
|
||||
$current = $database->getWounded($vref);
|
||||
if(!empty($current)) {
|
||||
for($i = 1; $i <= 90; $i++) $stored += isset($current['u'.$i]) ? (int)$current['u'.$i] : 0;
|
||||
}
|
||||
$free = $capacity - $stored;
|
||||
if($free <= 0) return;
|
||||
|
||||
$units = []; $amounts = [];
|
||||
foreach($deadByUnit as $i => $deadAmt) {
|
||||
if(empty($deadAmt)) continue;
|
||||
$wounded = (int)floor($deadAmt * $share);
|
||||
if($wounded <= 0) continue;
|
||||
if($wounded > $free) $wounded = $free;
|
||||
$units[] = $i;
|
||||
$amounts[] = $wounded;
|
||||
$free -= $wounded;
|
||||
if($free <= 0) break;
|
||||
}
|
||||
if(!empty($units)) $database->addWounded($vref, $units, $amounts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Proceseaza coada de vindecare: unitatile vindecate se intorc in sat
|
||||
* incremental (una la fiecare 'eachtime' secunde), ca la antrenare.
|
||||
*/
|
||||
private function healingComplete() {
|
||||
global $database;
|
||||
|
||||
$time = time();
|
||||
$healinglist = $database->getHealingDue($time);
|
||||
foreach($healinglist as $heal) {
|
||||
$healed = 1;
|
||||
if($heal['eachtime'] > 0) {
|
||||
$healed += (int)floor(($time - $heal['timestamp2']) / $heal['eachtime']);
|
||||
}
|
||||
if($healed > $heal['amt']) $healed = (int)$heal['amt'];
|
||||
if($healed <= 0) continue;
|
||||
|
||||
$database->modifyUnit($heal['vref'], [$heal['unit']], [$healed], [1]);
|
||||
|
||||
$remaining = (int)$heal['amt'] - $healed;
|
||||
if($remaining <= 0) {
|
||||
$database->deleteHealing($heal['id']);
|
||||
} else {
|
||||
$database->updateHealing($heal['id'], $remaining, (int)$heal['timestamp2'] + $healed * (int)$heal['eachtime']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function trainingComplete() {
|
||||
global $database, $technology;
|
||||
|
||||
@@ -4232,8 +4342,8 @@ class Automation {
|
||||
}
|
||||
else $trained = $train['amt'];
|
||||
|
||||
if($train['unit'] > 60 && $train['unit'] != 99){
|
||||
$database->modifyUnit($train['vref'], [$train['unit'] - 60], [$trained], [1]);
|
||||
if($train['unit'] > 1000 && $train['unit'] != 99){
|
||||
$database->modifyUnit($train['vref'], [$train['unit'] - 1000], [$trained], [1]);
|
||||
}
|
||||
else $database->modifyUnit($train['vref'], [$train['unit']], [$trained], [1]);
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ $replace[] = "<i>$1</i>";
|
||||
$pattern[] = "/\[u\](.*?)\[\/u\]/is";
|
||||
$replace[] = "<u>$1</u>";
|
||||
|
||||
/* Unit placeholders tid1 - tid50 */
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
/* Unit placeholders tid1 - tid90 */
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$pattern[] = "/\[tid{$i}\]/";
|
||||
$replace[] = "<img class='unit u{$i}' src='img/x.gif' title='" . constant("U{$i}") . "' alt='" . constant("U{$i}") . "'>";
|
||||
}
|
||||
|
||||
@@ -48,7 +48,11 @@ class Battle {
|
||||
isset($post['a2_v2']) ||
|
||||
isset($post['a2_v3']) ||
|
||||
isset($post['a2_v4']) ||
|
||||
isset($post['a2_v5'])
|
||||
isset($post['a2_v5']) ||
|
||||
isset($post['a2_v6']) ||
|
||||
isset($post['a2_v7']) ||
|
||||
isset($post['a2_v8']) ||
|
||||
isset($post['a2_v9'])
|
||||
)
|
||||
) {
|
||||
return;
|
||||
@@ -59,7 +63,7 @@ class Battle {
|
||||
* TARGET BUILD
|
||||
******************************************************************/
|
||||
$target = [];
|
||||
for ($i = 1; $i <= 5; $i++) {
|
||||
for ($i = 1; $i <= 9; $i++) {
|
||||
if (!empty($post['a2_v'.$i])) {
|
||||
$target[] = $i;
|
||||
}
|
||||
@@ -101,7 +105,7 @@ class Battle {
|
||||
* WALL LEVELS (OPTIMIZED LOOP)
|
||||
******************************************************************/
|
||||
$post['walllevel'] = 0;
|
||||
for ($i = 1; $i <= 5; $i++) {
|
||||
for ($i = 1; $i <= 9; $i++) {
|
||||
if (!isset($post['wall'.$i])) {
|
||||
continue;
|
||||
}
|
||||
@@ -241,7 +245,7 @@ class Battle {
|
||||
******************************************************************/
|
||||
$attacker = [];
|
||||
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$attacker['u'.$i] = 0;
|
||||
}
|
||||
|
||||
@@ -281,14 +285,14 @@ class Battle {
|
||||
$def_ab = [];
|
||||
$defscout = 0;
|
||||
|
||||
for ($i = 1; $i <= 50; $i++) {
|
||||
for ($i = 1; $i <= 90; $i++) {
|
||||
$units = (int)($post['a2_'.$i] ?? 0);
|
||||
$ab = (int)($post['f2_'.$i] ?? 0);
|
||||
|
||||
$defender['u'.$i] = $units;
|
||||
$def_ab[$i] = $units > 0 ? $ab : 0;
|
||||
|
||||
if ($units > 0 && in_array($i, [4,14,23,44])) {
|
||||
if ($units > 0 && in_array($i, [4,14,23,44,52,64,74,82])) {
|
||||
$defscout += $units;
|
||||
}
|
||||
}
|
||||
@@ -311,7 +315,7 @@ class Battle {
|
||||
|
||||
for ($i = $start; $i <= $start + 9; $i++) {
|
||||
|
||||
if ($i == 4 || $i == 14 || $i == 23 || $i == 44) {
|
||||
if (in_array($i, [4, 14, 23, 44, 52, 64, 74, 82])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -486,9 +490,10 @@ class Battle {
|
||||
/******************************************************************
|
||||
* UNIT GROUP DEFINITIONS
|
||||
******************************************************************/
|
||||
$calvaryLookup = array_flip([4, 5, 6, 15, 16, 23, 24, 25, 26, 45, 46]);
|
||||
$catapultLookup = array_flip([8, 18, 28, 48]);
|
||||
$ramsLookup = array_flip([7, 17, 27, 47]);
|
||||
global $unitsbytype;
|
||||
$calvaryLookup = array_flip($unitsbytype['cavalry']);
|
||||
$catapultLookup = array_flip($unitsbytype['catapult']);
|
||||
$ramsLookup = array_flip($unitsbytype['ram']);
|
||||
|
||||
$catp = 0;
|
||||
$ram = 0;
|
||||
@@ -818,13 +823,10 @@ class Battle {
|
||||
|
||||
if ($def_wall > 0) {
|
||||
|
||||
if ($def_tribe == 1) {
|
||||
$factor = 1.030;
|
||||
} elseif ($def_tribe == 2) {
|
||||
$factor = 1.020;
|
||||
} else {
|
||||
$factor = 1.025;
|
||||
}
|
||||
// Factori de zid per trib: 1 City Wall, 2 Earth Wall, 3 Palisade,
|
||||
// 6 Makeshift Wall, 7 Stone Wall, 8 Defensive Wall, 9 Barricade
|
||||
$wallFactors = array(1 => 1.030, 2 => 1.020, 3 => 1.025, 6 => 1.015, 7 => 1.030, 8 => 1.028, 9 => 1.022);
|
||||
$factor = isset($wallFactors[$def_tribe]) ? $wallFactors[$def_tribe] : 1.025;
|
||||
|
||||
$wallMultiplier = round(pow($factor, $def_wall), 3);
|
||||
|
||||
@@ -1359,7 +1361,8 @@ class Battle {
|
||||
* SCOUT UNITS ONLY
|
||||
******************************************************************/
|
||||
|
||||
$scoutUnits = [4, 14, 23, 44];
|
||||
global $unitsbytype;
|
||||
$scoutUnits = $unitsbytype['scout'];
|
||||
|
||||
foreach ($scoutUnits as $y) {
|
||||
$unitAmount = isset($defenders['u'.$y])
|
||||
@@ -1406,7 +1409,7 @@ class Battle {
|
||||
$cdp = 0;
|
||||
$invol = 0;
|
||||
|
||||
for ($y = 1; $y <= 50; $y++) {
|
||||
for ($y = 1; $y <= 90; $y++) {
|
||||
$unitAmount = isset($defenders['u'.$y])
|
||||
? (int)$defenders['u'.$y]
|
||||
: 0;
|
||||
|
||||
@@ -145,7 +145,7 @@ class Building {
|
||||
|
||||
// Validare zid
|
||||
$isValidWall =
|
||||
($tid != 40 || in_array($id, array(31, 32, 33)));
|
||||
($tid != 40 || in_array($id, array(31, 32, 33, 42, 43, 47, 50)));
|
||||
|
||||
if (
|
||||
!isset($village->resarray[$fieldTypeKey]) ||
|
||||
@@ -456,11 +456,7 @@ class Building {
|
||||
foreach ($this->buildArray as $job) {
|
||||
|
||||
// verificăm STRICT tipul clădirii
|
||||
if (
|
||||
$job['type'] == 31 ||
|
||||
$job['type'] == 32 ||
|
||||
$job['type'] == 33
|
||||
) {
|
||||
if (in_array($job['type'], array(31, 32, 33, 42, 43, 47, 50))) {
|
||||
return $job['type'];
|
||||
}
|
||||
}
|
||||
@@ -538,7 +534,15 @@ class Building {
|
||||
39 => GREATGRANARY,
|
||||
40 => WONDER,
|
||||
41 => HORSEDRINKING,
|
||||
42 => GREATWORKSHOP
|
||||
42 => STONEWALL,
|
||||
43 => MAKESHIFTWALL,
|
||||
44 => COMMANDCENTER,
|
||||
45 => WATERWORKS,
|
||||
46 => HOSPITAL,
|
||||
47 => DEFENSIVEWALL,
|
||||
48 => BIGHOSPITAL,
|
||||
49 => GREATWORKSHOP,
|
||||
50 => BARRICADE
|
||||
);
|
||||
|
||||
return isset($types[$ref]) ? $types[$ref] : 'Error';
|
||||
@@ -914,7 +918,7 @@ class Building {
|
||||
if ($tid == 16) {
|
||||
$buildField = 39;
|
||||
}
|
||||
elseif ($tid == 31 || $tid == 32 || $tid == 33) {
|
||||
elseif (in_array($tid, array(31, 32, 33, 42, 43, 47, 50))) {
|
||||
$buildField = 40;
|
||||
}
|
||||
|
||||
@@ -1166,11 +1170,13 @@ class Building {
|
||||
!$isBuilt;
|
||||
|
||||
case 25:
|
||||
if ($session->tribe == 6) return false; // Hunii au Command Center in loc de Residence
|
||||
return $getLevel(15) >= 5 &&
|
||||
!$isBuilt &&
|
||||
!$getField(26);
|
||||
|
||||
case 26:
|
||||
if ($session->tribe == 6) return false; // Hunii au Command Center in loc de Palace
|
||||
return $getLevel(18) >= 1 &&
|
||||
$getLevel(15) >= 5 &&
|
||||
!$isBuilt &&
|
||||
@@ -1274,12 +1280,58 @@ class Building {
|
||||
$session->tribe == 1 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Stone Wall (Egyptian)
|
||||
case 42:
|
||||
return $session->tribe == 7;
|
||||
|
||||
// Makeshift Wall (Hun)
|
||||
case 43:
|
||||
return $session->tribe == 6;
|
||||
|
||||
// Command Center (Hun)
|
||||
case 44:
|
||||
return $session->tribe == 6 &&
|
||||
$getLevel(15) >= 5 &&
|
||||
$getLevel(25) == 0 &&
|
||||
$getLevel(26) == 0 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Waterworks (Egyptian)
|
||||
case 45:
|
||||
return $session->tribe == 7 &&
|
||||
$getLevel(37) >= 10 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Hospital (toate triburile in afara de Spartani/Vikingi, care au Spitalul Mare)
|
||||
case 46:
|
||||
return $session->tribe != 8 &&
|
||||
$session->tribe != 9 &&
|
||||
$getLevel(15) >= 10 &&
|
||||
$getLevel(22) >= 15 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Defensive Wall (Spartan)
|
||||
case 47:
|
||||
return $session->tribe == 8;
|
||||
|
||||
// Big Hospital (exclusiv Spartani/Vikingi, aceleasi cerinte ca Spitalul)
|
||||
case 48:
|
||||
return ($session->tribe == 8 || $session->tribe == 9) &&
|
||||
$getLevel(15) >= 10 &&
|
||||
$getLevel(22) >= 15 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Great Workshop (mutat de la gid 42)
|
||||
case 49:
|
||||
return GREAT_WKS &&
|
||||
$getLevel(21) == 20 &&
|
||||
$village->capital == 0 &&
|
||||
!$isBuilt;
|
||||
|
||||
// Barricade (Viking)
|
||||
case 50:
|
||||
return $session->tribe == 9;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -198,4 +198,330 @@
|
||||
186000, 'iron' => 202000, 'crop' => 54000, 'time' => 336960), array('wood' => 154500, 'clay' => 190000, 'iron' => 206500, 'crop' => 55500, 'time' => 343200), array('wood' => 158000, 'clay' => 194500, 'iron' => 211500, 'crop' => 56500, 'time' => 349440), array('wood' => 161500, 'clay' => 199000, 'iron' => 216000, 'crop' => 58000, 'time' => 355680), array('wood' => 165000, 'clay' => 203500, 'iron' => 221000, 'crop' => 59000, 'time' => 361920), array('wood' => 168500, 'clay' => 207500, 'iron' =>
|
||||
225500, 'crop' => 60500, 'time' => 368160), array('wood' => 172000, 'clay' => 212000, 'iron' => 230500, 'crop' => 62000, 'time' => 374400), array('wood' => 175500, 'clay' => 216500, 'iron' => 235500, 'crop' => 63000, 'time' => 380640));
|
||||
|
||||
?>
|
||||
|
||||
//HUN UNITS (TRIBE 6)
|
||||
$h51_full = array(array('wood' => 260, 'clay' => 160, 'iron' => 80, 'crop' => 80, 'time' => 2240), array('wood' => 690, 'clay' => 440, 'iron' => 210, 'crop' => 280, 'time' => 4480), array('wood' => 1200, 'clay' => 730, 'iron' => 350, 'crop' => 480, 'time' => 6720), array('wood' => 1600, 'clay' => 1000, 'iron' => 510, 'crop' => 680, 'time' => 8960),
|
||||
array('wood' => 2200, 'clay' => 1400, 'iron' => 670, 'crop' => 890, 'time' => 11200), array('wood' => 2700, 'clay' => 1800, 'iron' => 830, 'crop' => 1100, 'time' => 13440), array('wood' => 3400, 'clay' => 2100, 'iron' => 1000, 'crop' => 1300, 'time' => 15680), array('wood' => 3900, 'clay' => 2500, 'iron' => 1200, 'crop' => 1600, 'time' => 17920),
|
||||
array('wood' => 4600, 'clay' => 2900, 'iron' => 1400, 'crop' => 1900, 'time' => 20160), array('wood' => 5200, 'clay' => 3300, 'iron' => 1600, 'crop' => 2100, 'time' => 22400), array('wood' => 5900, 'clay' => 3700, 'iron' => 1800, 'crop' => 2400, 'time' => 24640), array('wood' => 6500, 'clay' => 4100, 'iron' => 2000, 'crop' => 2700, 'time' => 26880),
|
||||
array('wood' => 7300, 'clay' => 4600, 'iron' => 2200, 'crop' => 2900, 'time' => 29120), array('wood' => 7900, 'clay' => 5000, 'iron' => 2400, 'crop' => 3200, 'time' => 31360), array('wood' => 8700, 'clay' => 5400, 'iron' => 2600, 'crop' => 3600, 'time' => 33600), array('wood' => 9300, 'clay' => 5900, 'iron' => 2800, 'crop' => 3900, 'time' => 35840),
|
||||
array('wood' => 10000, 'clay' => 6300, 'iron' => 3100, 'crop' => 4100, 'time' => 38080), array('wood' => 11000, 'clay' => 6800, 'iron' => 3200, 'crop' => 4400, 'time' => 40320), array('wood' => 11500, 'clay' => 7300, 'iron' => 3500, 'crop' => 4800, 'time' => 42560), array('wood' => 12500, 'clay' => 7800, 'iron' => 3700, 'crop' => 5100, 'time' => 44800),
|
||||
array('wood' => 13000, 'clay' => 8400, 'iron' => 4000, 'crop' => 5300, 'time' => 47040), array('wood' => 14000, 'clay' => 8800, 'iron' => 4100, 'crop' => 5700, 'time' => 49280), array('wood' => 14500, 'clay' => 9200, 'iron' => 4400, 'crop' => 6000, 'time' => 51520), array('wood' => 15500, 'clay' => 9600, 'iron' => 4700, 'crop' => 6400, 'time' => 53760),
|
||||
array('wood' => 16500, 'clay' => 10500, 'iron' => 4900, 'crop' => 6700, 'time' => 56000), array('wood' => 17500, 'clay' => 11000, 'iron' => 5200, 'crop' => 7100, 'time' => 58240), array('wood' => 18000, 'clay' => 11000, 'iron' => 5500, 'crop' => 7300, 'time' => 60480), array('wood' => 19000, 'clay' => 12000, 'iron' => 5700, 'crop' => 7700, 'time' => 62720),
|
||||
array('wood' => 19500, 'clay' => 12500, 'iron' => 5900, 'crop' => 8100, 'time' => 64960), array('wood' => 20500, 'clay' => 13000, 'iron' => 6100, 'crop' => 8400, 'time' => 67200), array('wood' => 21000, 'clay' => 13500, 'iron' => 6400, 'crop' => 8800, 'time' => 69440), array('wood' => 22000, 'clay' => 14000, 'iron' => 6700, 'crop' => 9100, 'time' => 71680),
|
||||
array('wood' => 23500, 'clay' => 14500, 'iron' => 6900, 'crop' => 9500, 'time' => 73920), array('wood' => 24000, 'clay' => 15000, 'iron' => 7200, 'crop' => 9900, 'time' => 76160), array('wood' => 25000, 'clay' => 15500, 'iron' => 7500, 'crop' => 10500, 'time' => 78400), array('wood' => 26000, 'clay' => 16500, 'iron' => 7700, 'crop' => 10500, 'time' => 80640),
|
||||
array('wood' => 26500, 'clay' => 17000, 'iron' => 8000, 'crop' => 11000, 'time' => 82880), array('wood' => 27500, 'clay' => 17000, 'iron' => 8300, 'crop' => 11500, 'time' => 85120), array('wood' => 28500, 'clay' => 18000, 'iron' => 8500, 'crop' => 11500, 'time' => 87360), array('wood' => 29500, 'clay' => 18500, 'iron' => 8800, 'crop' => 12000, 'time' => 89600),
|
||||
array('wood' => 30500, 'clay' => 19000, 'iron' => 9100, 'crop' => 12500, 'time' => 91840), array('wood' => 31500, 'clay' => 19500, 'iron' => 9500, 'crop' => 13000, 'time' => 94080), array('wood' => 32000, 'clay' => 20500, 'iron' => 9700, 'crop' => 13000, 'time' => 96320), array('wood' => 33000, 'clay' => 21000, 'iron' => 10000, 'crop' => 13500, 'time' => 98560),
|
||||
array('wood' => 34000, 'clay' => 21500, 'iron' => 10500, 'crop' => 14000, 'time' => 100800), array('wood' => 35000, 'clay' => 22000, 'iron' => 10500, 'crop' => 14500, 'time' => 103040), array('wood' => 37000, 'clay' => 23000, 'iron' => 11000, 'crop' => 14500, 'time' => 105280), array('wood' => 37000, 'clay' => 23000, 'iron' => 11000, 'crop' => 15500, 'time' => 107520),
|
||||
array('wood' => 38000, 'clay' => 24000, 'iron' => 11500, 'crop' => 15500, 'time' => 109760), array('wood' => 39000, 'clay' => 24500, 'iron' => 11500, 'crop' => 16000, 'time' => 112000), array('wood' => 40000, 'clay' => 25000, 'iron' => 12000, 'crop' => 16500, 'time' => 114240), array('wood' => 40500, 'clay' => 25500, 'iron' => 12500, 'crop' => 16500, 'time' => 116480),
|
||||
array('wood' => 41500, 'clay' => 26500, 'iron' => 12500, 'crop' => 17500, 'time' => 118720), array('wood' => 43000, 'clay' => 27000, 'iron' => 13000, 'crop' => 17500, 'time' => 120960), array('wood' => 44000, 'clay' => 27500, 'iron' => 13000, 'crop' => 18000, 'time' => 123200), array('wood' => 45000, 'clay' => 28000, 'iron' => 13500, 'crop' => 18500, 'time' => 125440),
|
||||
array('wood' => 46000, 'clay' => 29000, 'iron' => 13500, 'crop' => 18500, 'time' => 127680), array('wood' => 46500, 'clay' => 29500, 'iron' => 14000, 'crop' => 19500, 'time' => 129920), array('wood' => 47500, 'clay' => 30000, 'iron' => 14500, 'crop' => 19500, 'time' => 132160), array('wood' => 49000, 'clay' => 31000, 'iron' => 14500, 'crop' => 20000, 'time' => 134400),
|
||||
array('wood' => 50000, 'clay' => 31000, 'iron' => 15000, 'crop' => 20500, 'time' => 136640));
|
||||
$h53_full = array(array('wood' => 580, 'clay' => 740, 'iron' => 380, 'crop' => 90, 'time' => 4800), array('wood' => 1400, 'clay' => 1900, 'iron' => 950, 'crop' => 250, 'time' => 9600), array('wood' => 2400, 'clay' => 3000, 'iron' => 1500, 'crop' => 410, 'time' => 14400), array('wood' => 3400, 'clay' => 4300, 'iron' => 2300, 'crop' => 590, 'time' => 19200),
|
||||
array('wood' => 4400, 'clay' => 5700, 'iron' => 3000, 'crop' => 770, 'time' => 24000), array('wood' => 5500, 'clay' => 7100, 'iron' => 3700, 'crop' => 990, 'time' => 28800), array('wood' => 6900, 'clay' => 8800, 'iron' => 4500, 'crop' => 1200, 'time' => 33600), array('wood' => 7900, 'clay' => 10000, 'iron' => 5300, 'crop' => 1400, 'time' => 38400),
|
||||
array('wood' => 9200, 'clay' => 12000, 'iron' => 6200, 'crop' => 1600, 'time' => 43200), array('wood' => 10500, 'clay' => 13500, 'iron' => 7100, 'crop' => 1800, 'time' => 48000), array('wood' => 12000, 'clay' => 15000, 'iron' => 8000, 'crop' => 2100, 'time' => 52800), array('wood' => 13000, 'clay' => 17000, 'iron' => 8900, 'crop' => 2300, 'time' => 57600),
|
||||
array('wood' => 15000, 'clay' => 19000, 'iron' => 9800, 'crop' => 2600, 'time' => 62400), array('wood' => 16000, 'clay' => 20500, 'iron' => 10500, 'crop' => 2800, 'time' => 67200), array('wood' => 17500, 'clay' => 22500, 'iron' => 12000, 'crop' => 3100, 'time' => 72000), array('wood' => 19000, 'clay' => 24500, 'iron' => 13000, 'crop' => 3300, 'time' => 76800),
|
||||
array('wood' => 20500, 'clay' => 26500, 'iron' => 13500, 'crop' => 3600, 'time' => 81600), array('wood' => 22000, 'clay' => 28000, 'iron' => 15000, 'crop' => 3800, 'time' => 86400), array('wood' => 23500, 'clay' => 30500, 'iron' => 15500, 'crop' => 4100, 'time' => 91200), array('wood' => 25500, 'clay' => 32500, 'iron' => 17000, 'crop' => 4400, 'time' => 96000),
|
||||
array('wood' => 27000, 'clay' => 34500, 'iron' => 18000, 'crop' => 4700, 'time' => 100800), array('wood' => 28500, 'clay' => 36500, 'iron' => 19000, 'crop' => 5000, 'time' => 105600), array('wood' => 30000, 'clay' => 38500, 'iron' => 20000, 'crop' => 5200, 'time' => 110400), array('wood' => 31500, 'clay' => 41000, 'iron' => 21000, 'crop' => 5400, 'time' => 115200),
|
||||
array('wood' => 33000, 'clay' => 43000, 'iron' => 22500, 'crop' => 5900, 'time' => 120000), array('wood' => 35000, 'clay' => 45000, 'iron' => 23500, 'crop' => 6100, 'time' => 124800), array('wood' => 36500, 'clay' => 47000, 'iron' => 24500, 'crop' => 6300, 'time' => 129600), array('wood' => 38500, 'clay' => 49000, 'iron' => 25500, 'crop' => 6800, 'time' => 134400),
|
||||
array('wood' => 40000, 'clay' => 51500, 'iron' => 26500, 'crop' => 7000, 'time' => 139200), array('wood' => 42000, 'clay' => 54000, 'iron' => 28000, 'crop' => 7200, 'time' => 144000), array('wood' => 43500, 'clay' => 56000, 'iron' => 29000, 'crop' => 7700, 'time' => 148800), array('wood' => 45500, 'clay' => 58500, 'iron' => 30500, 'crop' => 7900, 'time' => 153600),
|
||||
array('wood' => 47000, 'clay' => 60500, 'iron' => 31500, 'crop' => 8100, 'time' => 158400), array('wood' => 49000, 'clay' => 62500, 'iron' => 32500, 'crop' => 8600, 'time' => 163200), array('wood' => 50500, 'clay' => 65000, 'iron' => 34000, 'crop' => 8800, 'time' => 168000), array('wood' => 52500, 'clay' => 67500, 'iron' => 35000, 'crop' => 9200, 'time' => 172800),
|
||||
array('wood' => 54500, 'clay' => 70000, 'iron' => 36000, 'crop' => 9500, 'time' => 177600), array('wood' => 56000, 'clay' => 72500, 'iron' => 37500, 'crop' => 9700, 'time' => 182400), array('wood' => 58000, 'clay' => 74500, 'iron' => 39000, 'crop' => 10000, 'time' => 187200), array('wood' => 60000, 'clay' => 77000, 'iron' => 40000, 'crop' => 10500, 'time' => 192000),
|
||||
array('wood' => 61500, 'clay' => 79500, 'iron' => 41500, 'crop' => 11000, 'time' => 196800), array('wood' => 64000, 'clay' => 82000, 'iron' => 45000, 'crop' => 11000, 'time' => 201600), array('wood' => 65500, 'clay' => 84000, 'iron' => 44000, 'crop' => 11500, 'time' => 206400), array('wood' => 67500, 'clay' => 86500, 'iron' => 45000, 'crop' => 11500, 'time' => 211200),
|
||||
array('wood' => 69500, 'clay' => 89000, 'iron' => 46500, 'crop' => 12000, 'time' => 216000), array('wood' => 71500, 'clay' => 91500, 'iron' => 48000, 'crop' => 12500, 'time' => 220800), array('wood' => 73500, 'clay' => 94000, 'iron' => 49000, 'crop' => 13000, 'time' => 225600), array('wood' => 75500, 'clay' => 96500, 'iron' => 50000, 'crop' => 13000, 'time' => 230400),
|
||||
array('wood' => 77000, 'clay' => 99000, 'iron' => 51500, 'crop' => 13500, 'time' => 235200), array('wood' => 79000, 'clay' => 102000, 'iron' => 53000, 'crop' => 13500, 'time' => 240000), array('wood' => 81000, 'clay' => 104500, 'iron' => 54500, 'crop' => 14000, 'time' => 244800), array('wood' => 83500, 'clay' => 107000, 'iron' => 55500, 'crop' => 14500, 'time' => 249600),
|
||||
array('wood' => 85000, 'clay' => 109500, 'iron' => 57000, 'crop' => 15000, 'time' => 254400), array('wood' => 87500, 'clay' => 112000, 'iron' => 58000, 'crop' => 15000, 'time' => 259200), array('wood' => 89500, 'clay' => 115000, 'iron' => 59500, 'crop' => 15500, 'time' => 264000), array('wood' => 91000, 'clay' => 117500, 'iron' => 61000, 'crop' => 16000, 'time' => 268800),
|
||||
array('wood' => 93500, 'clay' => 120000, 'iron' => 62500, 'crop' => 16000, 'time' => 273600), array('wood' => 95500, 'clay' => 122500, 'iron' => 63500, 'crop' => 16500, 'time' => 278400), array('wood' => 97500, 'clay' => 125500, 'iron' => 65000, 'crop' => 17000, 'time' => 283200), array('wood' => 99500, 'clay' => 128000, 'iron' => 66500, 'crop' => 17500, 'time' => 288000),
|
||||
array('wood' => 101500, 'clay' => 130500, 'iron' => 67500, 'crop' => 17500, 'time' => 292800));
|
||||
$h54_full = array(array('wood' => 640, 'clay' => 700, 'iron' => 660, 'crop' => 100, 'time' => 4960), array('wood' => 1600, 'clay' => 1800, 'iron' => 1700, 'crop' => 280, 'time' => 9920), array('wood' => 2600, 'clay' => 2900, 'iron' => 2700, 'crop' => 460, 'time' => 14880), array('wood' => 3700, 'clay' => 4100, 'iron' => 3900, 'crop' => 650, 'time' => 19840),
|
||||
array('wood' => 4900, 'clay' => 5400, 'iron' => 5200, 'crop' => 850, 'time' => 24800), array('wood' => 6100, 'clay' => 6800, 'iron' => 6500, 'crop' => 1100, 'time' => 29760), array('wood' => 7600, 'clay' => 8400, 'iron' => 7800, 'crop' => 1300, 'time' => 34720), array('wood' => 8700, 'clay' => 9500, 'iron' => 9300, 'crop' => 1600, 'time' => 39680),
|
||||
array('wood' => 10000, 'clay' => 11000, 'iron' => 11000, 'crop' => 1800, 'time' => 44640), array('wood' => 11500, 'clay' => 12500, 'iron' => 12500, 'crop' => 2100, 'time' => 49600), array('wood' => 13000, 'clay' => 14500, 'iron' => 14000, 'crop' => 2300, 'time' => 54560), array('wood' => 14500, 'clay' => 16500, 'iron' => 15500, 'crop' => 2600, 'time' => 59520),
|
||||
array('wood' => 16500, 'clay' => 18000, 'iron' => 17000, 'crop' => 2900, 'time' => 64480), array('wood' => 17500, 'clay' => 19500, 'iron' => 18500, 'crop' => 3100, 'time' => 69440), array('wood' => 19500, 'clay' => 21500, 'iron' => 20500, 'crop' => 3400, 'time' => 74400), array('wood' => 21000, 'clay' => 23000, 'iron' => 22000, 'crop' => 3700, 'time' => 79360),
|
||||
array('wood' => 22500, 'clay' => 25000, 'iron' => 23500, 'crop' => 4000, 'time' => 84320), array('wood' => 24500, 'clay' => 26500, 'iron' => 26000, 'crop' => 4300, 'time' => 89280), array('wood' => 26000, 'clay' => 28500, 'iron' => 27500, 'crop' => 4600, 'time' => 94240), array('wood' => 28000, 'clay' => 30500, 'iron' => 29500, 'crop' => 4900, 'time' => 99200),
|
||||
array('wood' => 29500, 'clay' => 32500, 'iron' => 31000, 'crop' => 5300, 'time' => 104160), array('wood' => 31500, 'clay' => 34500, 'iron' => 33000, 'crop' => 5500, 'time' => 109120), array('wood' => 33000, 'clay' => 36500, 'iron' => 34500, 'crop' => 5800, 'time' => 114080), array('wood' => 35000, 'clay' => 38500, 'iron' => 36500, 'crop' => 6000, 'time' => 119040),
|
||||
array('wood' => 36500, 'clay' => 40500, 'iron' => 38500, 'crop' => 6500, 'time' => 124000), array('wood' => 38500, 'clay' => 42500, 'iron' => 40500, 'crop' => 6800, 'time' => 128960), array('wood' => 40500, 'clay' => 44500, 'iron' => 42500, 'crop' => 7000, 'time' => 133920), array('wood' => 42500, 'clay' => 46500, 'iron' => 44500, 'crop' => 7500, 'time' => 138880),
|
||||
array('wood' => 44000, 'clay' => 48500, 'iron' => 46500, 'crop' => 7800, 'time' => 143840), array('wood' => 46500, 'clay' => 51000, 'iron' => 48500, 'crop' => 8000, 'time' => 148800), array('wood' => 48000, 'clay' => 53000, 'iron' => 50500, 'crop' => 8500, 'time' => 153760), array('wood' => 50000, 'clay' => 55500, 'iron' => 52500, 'crop' => 8800, 'time' => 158720),
|
||||
array('wood' => 52000, 'clay' => 57500, 'iron' => 54500, 'crop' => 9000, 'time' => 163680), array('wood' => 54000, 'clay' => 59500, 'iron' => 56500, 'crop' => 9500, 'time' => 168640), array('wood' => 56000, 'clay' => 61500, 'iron' => 59000, 'crop' => 9800, 'time' => 173600), array('wood' => 58000, 'clay' => 63500, 'iron' => 61000, 'crop' => 10500, 'time' => 178560),
|
||||
array('wood' => 60000, 'clay' => 66000, 'iron' => 63000, 'crop' => 10500, 'time' => 183520), array('wood' => 62000, 'clay' => 68500, 'iron' => 65000, 'crop' => 11000, 'time' => 188480), array('wood' => 64000, 'clay' => 70500, 'iron' => 67500, 'crop' => 11500, 'time' => 193440), array('wood' => 66000, 'clay' => 73000, 'iron' => 69500, 'crop' => 11500, 'time' => 198400),
|
||||
array('wood' => 68000, 'clay' => 75000, 'iron' => 71500, 'crop' => 12000, 'time' => 203360), array('wood' => 70500, 'clay' => 77500, 'iron' => 78000, 'crop' => 12500, 'time' => 208320), array('wood' => 72500, 'clay' => 79500, 'iron' => 76500, 'crop' => 13000, 'time' => 213280), array('wood' => 74500, 'clay' => 82000, 'iron' => 78500, 'crop' => 13000, 'time' => 218240),
|
||||
array('wood' => 76500, 'clay' => 84500, 'iron' => 80500, 'crop' => 13500, 'time' => 223200), array('wood' => 79000, 'clay' => 86500, 'iron' => 83000, 'crop' => 14000, 'time' => 228160), array('wood' => 81000, 'clay' => 89000, 'iron' => 85000, 'crop' => 14500, 'time' => 233120), array('wood' => 83000, 'clay' => 91500, 'iron' => 87000, 'crop' => 14500, 'time' => 238080),
|
||||
array('wood' => 85000, 'clay' => 94000, 'iron' => 89500, 'crop' => 15000, 'time' => 243040), array('wood' => 87500, 'clay' => 96500, 'iron' => 92000, 'crop' => 15500, 'time' => 248000), array('wood' => 89500, 'clay' => 98500, 'iron' => 94500, 'crop' => 16000, 'time' => 252960), array('wood' => 92000, 'clay' => 101000, 'iron' => 96500, 'crop' => 16000, 'time' => 257920),
|
||||
array('wood' => 94000, 'clay' => 103500, 'iron' => 99000, 'crop' => 16500, 'time' => 262880), array('wood' => 96500, 'clay' => 106000, 'iron' => 101000, 'crop' => 17000, 'time' => 267840), array('wood' => 98500, 'clay' => 108500, 'iron' => 103500, 'crop' => 17500, 'time' => 272800), array('wood' => 100500, 'clay' => 111000, 'iron' => 105500, 'crop' => 17500, 'time' => 277760),
|
||||
array('wood' => 103000, 'clay' => 113500, 'iron' => 108500, 'crop' => 18000, 'time' => 282720), array('wood' => 105500, 'clay' => 115500, 'iron' => 110500, 'crop' => 18500, 'time' => 287680), array('wood' => 107500, 'clay' => 118500, 'iron' => 113000, 'crop' => 19000, 'time' => 292640), array('wood' => 109500, 'clay' => 121000, 'iron' => 115500, 'crop' => 19500, 'time' => 297600),
|
||||
array('wood' => 112000, 'clay' => 123500, 'iron' => 117500, 'crop' => 19500, 'time' => 302560));
|
||||
$h55_full = array(array('wood' => 900, 'clay' => 1100, 'iron' => 1200, 'crop' => 280, 'time' => 5920), array('wood' => 2200, 'clay' => 2700, 'iron' => 3000, 'crop' => 720, 'time' => 11840), array('wood' => 3700, 'clay' => 4600, 'iron' => 4900, 'crop' => 1200, 'time' => 17760), array('wood' => 5200, 'clay' => 6500, 'iron' => 7000, 'crop' => 1700, 'time' => 23680),
|
||||
array('wood' => 6900, 'clay' => 8600, 'iron' => 9200, 'crop' => 2300, 'time' => 29600), array('wood' => 8600, 'clay' => 11000, 'iron' => 12000, 'crop' => 2900, 'time' => 35520), array('wood' => 10500, 'clay' => 13000, 'iron' => 14000, 'crop' => 3400, 'time' => 41440), array('wood' => 12500, 'clay' => 15500, 'iron' => 17000, 'crop' => 4000, 'time' => 47360),
|
||||
array('wood' => 14500, 'clay' => 18000, 'iron' => 19500, 'crop' => 4700, 'time' => 53280), array('wood' => 16500, 'clay' => 20500, 'iron' => 22000, 'crop' => 5400, 'time' => 59200), array('wood' => 18500, 'clay' => 23000, 'iron' => 25000, 'crop' => 6100, 'time' => 65120), array('wood' => 20500, 'clay' => 26000, 'iron' => 28000, 'crop' => 6800, 'time' => 71040),
|
||||
array('wood' => 23000, 'clay' => 28500, 'iron' => 30500, 'crop' => 7500, 'time' => 76960), array('wood' => 25000, 'clay' => 31000, 'iron' => 33500, 'crop' => 8200, 'time' => 82880), array('wood' => 27500, 'clay' => 33500, 'iron' => 36500, 'crop' => 8900, 'time' => 88800), array('wood' => 29500, 'clay' => 37000, 'iron' => 39500, 'crop' => 9700, 'time' => 94720),
|
||||
array('wood' => 32000, 'clay' => 39500, 'iron' => 43000, 'crop' => 10500, 'time' => 100640), array('wood' => 34500, 'clay' => 42500, 'iron' => 46000, 'crop' => 11500, 'time' => 106560), array('wood' => 37000, 'clay' => 45500, 'iron' => 49000, 'crop' => 12000, 'time' => 112480), array('wood' => 39500, 'clay' => 48500, 'iron' => 52500, 'crop' => 13000, 'time' => 118400),
|
||||
array('wood' => 41500, 'clay' => 51500, 'iron' => 56000, 'crop' => 13500, 'time' => 124320), array('wood' => 44000, 'clay' => 54500, 'iron' => 59000, 'crop' => 14500, 'time' => 130240), array('wood' => 46500, 'clay' => 58000, 'iron' => 62500, 'crop' => 15000, 'time' => 136160), array('wood' => 49000, 'clay' => 61000, 'iron' => 66000, 'crop' => 16000, 'time' => 142080),
|
||||
array('wood' => 51500, 'clay' => 64000, 'iron' => 69500, 'crop' => 17000, 'time' => 148000), array('wood' => 54500, 'clay' => 67500, 'iron' => 73000, 'crop' => 18000, 'time' => 153920), array('wood' => 57000, 'clay' => 70500, 'iron' => 76500, 'crop' => 18500, 'time' => 159840), array('wood' => 59500, 'clay' => 74000, 'iron' => 80000, 'crop' => 19500, 'time' => 165760),
|
||||
array('wood' => 62000, 'clay' => 77000, 'iron' => 83500, 'crop' => 20000, 'time' => 171680), array('wood' => 65000, 'clay' => 80500, 'iron' => 87500, 'crop' => 21500, 'time' => 177600), array('wood' => 67500, 'clay' => 84000, 'iron' => 90500, 'crop' => 22000, 'time' => 183520), array('wood' => 70500, 'clay' => 87000, 'iron' => 94500, 'crop' => 23000, 'time' => 189440),
|
||||
array('wood' => 73000, 'clay' => 90500, 'iron' => 98500, 'crop' => 24000, 'time' => 195360), array('wood' => 76000, 'clay' => 94000, 'iron' => 102000, 'crop' => 25000, 'time' => 201280), array('wood' => 78500, 'clay' => 97500, 'iron' => 106000, 'crop' => 25500, 'time' => 207200), array('wood' => 81500, 'clay' => 101000, 'iron' => 109500, 'crop' => 27000, 'time' => 213120),
|
||||
array('wood' => 84500, 'clay' => 104500, 'iron' => 113000, 'crop' => 27500, 'time' => 219040), array('wood' => 87000, 'clay' => 108000, 'iron' => 117500, 'crop' => 29000, 'time' => 224960), array('wood' => 90000, 'clay' => 111500, 'iron' => 121000, 'crop' => 29500, 'time' => 230880), array('wood' => 93000, 'clay' => 115500, 'iron' => 125000, 'crop' => 30500, 'time' => 236800),
|
||||
array('wood' => 95500, 'clay' => 119000, 'iron' => 129000, 'crop' => 31500, 'time' => 242720), array('wood' => 99000, 'clay' => 122500, 'iron' => 133000, 'crop' => 32500, 'time' => 248640), array('wood' => 102000, 'clay' => 126000, 'iron' => 137000, 'crop' => 33500, 'time' => 254560), array('wood' => 104500, 'clay' => 130000, 'iron' => 140500, 'crop' => 34000, 'time' => 260480),
|
||||
array('wood' => 107500, 'clay' => 133500, 'iron' => 145000, 'crop' => 35500, 'time' => 266400), array('wood' => 111000, 'clay' => 137500, 'iron' => 149000, 'crop' => 36000, 'time' => 272320), array('wood' => 113500, 'clay' => 141000, 'iron' => 153000, 'crop' => 37500, 'time' => 278240), array('wood' => 117000, 'clay' => 145000, 'iron' => 157000, 'crop' => 38500, 'time' => 284160),
|
||||
array('wood' => 120000, 'clay' => 149000, 'iron' => 161500, 'crop' => 39500, 'time' => 290080), array('wood' => 122500, 'clay' => 152500, 'iron' => 165000, 'crop' => 40500, 'time' => 296000), array('wood' => 126000, 'clay' => 156000, 'iron' => 169500, 'crop' => 41000, 'time' => 301920), array('wood' => 37500, 'clay' => 160000, 'iron' => 173500, 'crop' => 42500, 'time' => 307840),
|
||||
array('wood' => 37500, 'clay' => 164000, 'iron' => 177500, 'crop' => 43500, 'time' => 313760), array('wood' => 136000, 'clay' => 168000, 'iron' => 182000, 'crop' => 44500, 'time' => 319680), array('wood' => 138500, 'clay' => 171500, 'iron' => 183000, 'crop' => 45500, 'time' => 325600), array('wood' => 141500, 'clay' => 175500, 'iron' => 183000, 'crop' => 46500, 'time' => 331520),
|
||||
array('wood' => 145000, 'clay' => 179500, 'iron' => 183000, 'crop' => 47500, 'time' => 337440), array('wood' => 148000, 'clay' => 183500, 'iron' => 183000, 'crop' => 48500, 'time' => 343360), array('wood' => 151500, 'clay' => 187500, 'iron' => 183000, 'crop' => 50000, 'time' => 349280), array('wood' => 154000, 'clay' => 191500, 'iron' => 183000, 'crop' => 50500, 'time' => 355200),
|
||||
array('wood' => 157500, 'clay' => 195500, 'iron' => 183000, 'crop' => 51500, 'time' => 361120));
|
||||
$h56_full = array(array('wood' => 1300, 'clay' => 1500, 'iron' => 1600, 'crop' => 360, 'time' => 7040), array('wood' => 3200, 'clay' => 3600, 'iron' => 3900, 'crop' => 930, 'time' => 14080), array('wood' => 5400, 'clay' => 6100, 'iron' => 6400, 'crop' => 1500, 'time' => 21120), array('wood' => 7700, 'clay' => 8700, 'iron' => 9200, 'crop' => 2200, 'time' => 28160),
|
||||
array('wood' => 10000, 'clay' => 11500, 'iron' => 12000, 'crop' => 2900, 'time' => 35200), array('wood' => 12500, 'clay' => 14500, 'iron' => 15500, 'crop' => 3700, 'time' => 42240), array('wood' => 15500, 'clay' => 17500, 'iron' => 18500, 'crop' => 4400, 'time' => 49280), array('wood' => 18000, 'clay' => 20500, 'iron' => 22000, 'crop' => 5200, 'time' => 56320),
|
||||
array('wood' => 21000, 'clay' => 24000, 'iron' => 25500, 'crop' => 6100, 'time' => 63360), array('wood' => 24000, 'clay' => 27500, 'iron' => 29000, 'crop' => 6900, 'time' => 70400), array('wood' => 27000, 'clay' => 30500, 'iron' => 32500, 'crop' => 7800, 'time' => 77440), array('wood' => 30000, 'clay' => 34500, 'iron' => 36500, 'crop' => 8700, 'time' => 84480),
|
||||
array('wood' => 33500, 'clay' => 38000, 'iron' => 40000, 'crop' => 9600, 'time' => 91520), array('wood' => 36500, 'clay' => 41500, 'iron' => 44000, 'crop' => 10500, 'time' => 98560), array('wood' => 40000, 'clay' => 45000, 'iron' => 48000, 'crop' => 11500, 'time' => 105600), array('wood' => 43000, 'clay' => 49000, 'iron' => 52000, 'crop' => 12500, 'time' => 112640),
|
||||
array('wood' => 47000, 'clay' => 52500, 'iron' => 56500, 'crop' => 13500, 'time' => 119680), array('wood' => 50500, 'clay' => 57000, 'iron' => 60500, 'crop' => 14500, 'time' => 126720), array('wood' => 54000, 'clay' => 61000, 'iron' => 64500, 'crop' => 15500, 'time' => 133760), array('wood' => 57500, 'clay' => 65000, 'iron' => 69000, 'crop' => 16500, 'time' => 140800),
|
||||
array('wood' => 61000, 'clay' => 69000, 'iron' => 73500, 'crop' => 17500, 'time' => 147840), array('wood' => 65000, 'clay' => 73000, 'iron' => 77500, 'crop' => 18500, 'time' => 154880), array('wood' => 68500, 'clay' => 77500, 'iron' => 82000, 'crop' => 19500, 'time' => 161920), array('wood' => 72000, 'clay' => 81500, 'iron' => 86500, 'crop' => 20500, 'time' => 168960),
|
||||
array('wood' => 75500, 'clay' => 85500, 'iron' => 91000, 'crop' => 22000, 'time' => 176000), array('wood' => 80000, 'clay' => 90000, 'iron' => 95500, 'crop' => 23000, 'time' => 183040), array('wood' => 83500, 'clay' => 94500, 'iron' => 100500, 'crop' => 24000, 'time' => 190080), array('wood' => 87500, 'clay' => 99000, 'iron' => 105000, 'crop' => 25000, 'time' => 197120),
|
||||
array('wood' => 91000, 'clay' => 103000, 'iron' => 109500, 'crop' => 26000, 'time' => 204160), array('wood' => 95500, 'clay' => 108000, 'iron' => 114500, 'crop' => 27500, 'time' => 211200), array('wood' => 99000, 'clay' => 112500, 'iron' => 119000, 'crop' => 28500, 'time' => 218240), array('wood' => 103000, 'clay' => 116500, 'iron' => 124000, 'crop' => 29500, 'time' => 225280),
|
||||
array('wood' => 107500, 'clay' => 121500, 'iron' => 129000, 'crop' => 31000, 'time' => 232320), array('wood' => 111500, 'clay' => 126000, 'iron' => 134000, 'crop' => 32000, 'time' => 239360), array('wood' => 115000, 'clay' => 130500, 'iron' => 139000, 'crop' => 33000, 'time' => 246400), array('wood' => 119500, 'clay' => 135500, 'iron' => 143500, 'crop' => 34500, 'time' => 253440),
|
||||
array('wood' => 123500, 'clay' => 140000, 'iron' => 148500, 'crop' => 35500, 'time' => 260480), array('wood' => 128000, 'clay' => 144500, 'iron' => 154000, 'crop' => 37000, 'time' => 267520), array('wood' => 132000, 'clay' => 149500, 'iron' => 159000, 'crop' => 38000, 'time' => 274560), array('wood' => 136000, 'clay' => 154500, 'iron' => 164000, 'crop' => 39000, 'time' => 281600),
|
||||
array('wood' => 140500, 'clay' => 159500, 'iron' => 169000, 'crop' => 40500, 'time' => 288640), array('wood' => 145000, 'clay' => 164000, 'iron' => 174500, 'crop' => 41500, 'time' => 295680), array('wood' => 149500, 'clay' => 169000, 'iron' => 179500, 'crop' => 43000, 'time' => 302720), array('wood' => 153500, 'clay' => 174000, 'iron' => 184500, 'crop' => 44000, 'time' => 309760),
|
||||
array('wood' => 158000, 'clay' => 178500, 'iron' => 190000, 'crop' => 45500, 'time' => 316800), array('wood' => 162500, 'clay' => 184000, 'iron' => 195500, 'crop' => 46500, 'time' => 323840), array('wood' => 167000, 'clay' => 188500, 'iron' => 200500, 'crop' => 48000, 'time' => 330880), array('wood' => 171500, 'clay' => 194000, 'iron' => 206000, 'crop' => 49500, 'time' => 337920),
|
||||
array('wood' => 176000, 'clay' => 199000, 'iron' => 211500, 'crop' => 50500, 'time' => 344960), array('wood' => 180000, 'clay' => 204000, 'iron' => 216500, 'crop' => 52000, 'time' => 352000), array('wood' => 185000, 'clay' => 209000, 'iron' => 222000, 'crop' => 53000, 'time' => 359040), array('wood' => 55000, 'clay' => 214500, 'iron' => 227500, 'crop' => 54500, 'time' => 366080),
|
||||
array('wood' => 55000, 'clay' => 219500, 'iron' => 233000, 'crop' => 56000, 'time' => 373120), array('wood' => 200000, 'clay' => 225000, 'iron' => 238500, 'crop' => 57000, 'time' => 380160), array('wood' => 203500, 'clay' => 229500, 'iron' => 240000, 'crop' => 58500, 'time' => 387200), array('wood' => 207500, 'clay' => 235000, 'iron' => 240000, 'crop' => 59500, 'time' => 394240),
|
||||
array('wood' => 212500, 'clay' => 240000, 'iron' => 240000, 'crop' => 61000, 'time' => 401280), array('wood' => 217000, 'clay' => 245500, 'iron' => 240000, 'crop' => 62500, 'time' => 408320), array('wood' => 222000, 'clay' => 251000, 'iron' => 240000, 'crop' => 64000, 'time' => 415360), array('wood' => 226000, 'clay' => 256500, 'iron' => 240000, 'crop' => 65000, 'time' => 422400),
|
||||
array('wood' => 231000, 'clay' => 262000, 'iron' => 240000, 'crop' => 66500, 'time' => 429440));
|
||||
//EGYPTIAN UNITS (TRIBE 7)
|
||||
$h61_full = array(array('wood' => 90, 'clay' => 120, 'iron' => 60, 'crop' => 60, 'time' => 1280), array('wood' => 240, 'clay' => 330, 'iron' => 160, 'crop' => 210, 'time' => 2560), array('wood' => 410, 'clay' => 550, 'iron' => 260, 'crop' => 360, 'time' => 3840), array('wood' => 560, 'clay' => 780, 'iron' => 380, 'crop' => 510, 'time' => 5120),
|
||||
array('wood' => 750, 'clay' => 1000, 'iron' => 500, 'crop' => 670, 'time' => 6400), array('wood' => 940, 'clay' => 1300, 'iron' => 620, 'crop' => 850, 'time' => 7680), array('wood' => 1200, 'clay' => 1600, 'iron' => 760, 'crop' => 1000, 'time' => 8960), array('wood' => 1400, 'clay' => 1900, 'iron' => 880, 'crop' => 1200, 'time' => 10240),
|
||||
array('wood' => 1600, 'clay' => 2200, 'iron' => 1000, 'crop' => 1400, 'time' => 11520), array('wood' => 1800, 'clay' => 2500, 'iron' => 1200, 'crop' => 1600, 'time' => 12800), array('wood' => 2000, 'clay' => 2800, 'iron' => 1300, 'crop' => 1800, 'time' => 14080), array('wood' => 2300, 'clay' => 3100, 'iron' => 1500, 'crop' => 2000, 'time' => 15360),
|
||||
array('wood' => 2500, 'clay' => 3400, 'iron' => 1600, 'crop' => 2200, 'time' => 16640), array('wood' => 2700, 'clay' => 3700, 'iron' => 1800, 'crop' => 2400, 'time' => 17920), array('wood' => 3000, 'clay' => 4100, 'iron' => 1900, 'crop' => 2700, 'time' => 19200), array('wood' => 3200, 'clay' => 4400, 'iron' => 2100, 'crop' => 2900, 'time' => 20480),
|
||||
array('wood' => 3500, 'clay' => 4700, 'iron' => 2300, 'crop' => 3100, 'time' => 21760), array('wood' => 3800, 'clay' => 5100, 'iron' => 2400, 'crop' => 3300, 'time' => 23040), array('wood' => 3900, 'clay' => 5500, 'iron' => 2600, 'crop' => 3600, 'time' => 24320), array('wood' => 4300, 'clay' => 5800, 'iron' => 2800, 'crop' => 3800, 'time' => 25600),
|
||||
array('wood' => 4500, 'clay' => 6300, 'iron' => 3000, 'crop' => 4000, 'time' => 26880), array('wood' => 4900, 'clay' => 6600, 'iron' => 3100, 'crop' => 4300, 'time' => 28160), array('wood' => 5100, 'clay' => 6900, 'iron' => 3300, 'crop' => 4500, 'time' => 29440), array('wood' => 5400, 'clay' => 7200, 'iron' => 3500, 'crop' => 4800, 'time' => 30720),
|
||||
array('wood' => 5600, 'clay' => 7800, 'iron' => 3700, 'crop' => 5000, 'time' => 32000), array('wood' => 6000, 'clay' => 8100, 'iron' => 3900, 'crop' => 5300, 'time' => 33280), array('wood' => 6200, 'clay' => 8400, 'iron' => 4100, 'crop' => 5500, 'time' => 34560), array('wood' => 6600, 'clay' => 9000, 'iron' => 4300, 'crop' => 5800, 'time' => 35840),
|
||||
array('wood' => 6800, 'clay' => 9300, 'iron' => 4400, 'crop' => 6100, 'time' => 37120), array('wood' => 7100, 'clay' => 9600, 'iron' => 4600, 'crop' => 6300, 'time' => 38400), array('wood' => 7300, 'clay' => 10000, 'iron' => 4800, 'crop' => 6600, 'time' => 39680), array('wood' => 7700, 'clay' => 10500, 'iron' => 5000, 'crop' => 6800, 'time' => 40960),
|
||||
array('wood' => 8100, 'clay' => 11000, 'iron' => 5200, 'crop' => 7100, 'time' => 42240), array('wood' => 8300, 'clay' => 11500, 'iron' => 5400, 'crop' => 7400, 'time' => 43520), array('wood' => 8600, 'clay' => 11500, 'iron' => 5600, 'crop' => 7700, 'time' => 44800), array('wood' => 9000, 'clay' => 12500, 'iron' => 5800, 'crop' => 7900, 'time' => 46080),
|
||||
array('wood' => 9200, 'clay' => 12500, 'iron' => 6000, 'crop' => 8200, 'time' => 47360), array('wood' => 9600, 'clay' => 13000, 'iron' => 6200, 'crop' => 8500, 'time' => 48640), array('wood' => 9900, 'clay' => 13500, 'iron' => 6400, 'crop' => 8800, 'time' => 49920), array('wood' => 10000, 'clay' => 14000, 'iron' => 6600, 'crop' => 9100, 'time' => 51200),
|
||||
array('wood' => 10500, 'clay' => 14500, 'iron' => 6800, 'crop' => 9300, 'time' => 52480), array('wood' => 11000, 'clay' => 14500, 'iron' => 7100, 'crop' => 9600, 'time' => 53760), array('wood' => 11000, 'clay' => 15500, 'iron' => 7300, 'crop' => 9900, 'time' => 55040), array('wood' => 11500, 'clay' => 15500, 'iron' => 7500, 'crop' => 10000, 'time' => 56320),
|
||||
array('wood' => 12000, 'clay' => 16000, 'iron' => 7700, 'crop' => 10500, 'time' => 57600), array('wood' => 12000, 'clay' => 16500, 'iron' => 7900, 'crop' => 11000, 'time' => 58880), array('wood' => 13000, 'clay' => 17000, 'iron' => 8100, 'crop' => 11000, 'time' => 60160), array('wood' => 13000, 'clay' => 17500, 'iron' => 8300, 'crop' => 11500, 'time' => 61440),
|
||||
array('wood' => 13000, 'clay' => 18000, 'iron' => 8600, 'crop' => 11500, 'time' => 62720), array('wood' => 13500, 'clay' => 18500, 'iron' => 8800, 'crop' => 12000, 'time' => 64000), array('wood' => 14000, 'clay' => 19000, 'iron' => 9000, 'crop' => 12500, 'time' => 65280), array('wood' => 14000, 'clay' => 19000, 'iron' => 9200, 'crop' => 12500, 'time' => 66560),
|
||||
array('wood' => 14500, 'clay' => 20000, 'iron' => 9400, 'crop' => 13000, 'time' => 67840), array('wood' => 15000, 'clay' => 20000, 'iron' => 9700, 'crop' => 13000, 'time' => 69120), array('wood' => 15000, 'clay' => 20500, 'iron' => 9900, 'crop' => 13500, 'time' => 70400), array('wood' => 15500, 'clay' => 21000, 'iron' => 10000, 'crop' => 14000, 'time' => 71680),
|
||||
array('wood' => 16000, 'clay' => 21500, 'iron' => 10500, 'crop' => 14000, 'time' => 72960), array('wood' => 16000, 'clay' => 22000, 'iron' => 10500, 'crop' => 14500, 'time' => 74240), array('wood' => 16500, 'clay' => 22500, 'iron' => 11000, 'crop' => 14500, 'time' => 75520), array('wood' => 17000, 'clay' => 23000, 'iron' => 11000, 'crop' => 15000, 'time' => 76800),
|
||||
array('wood' => 17500, 'clay' => 23500, 'iron' => 11500, 'crop' => 15500, 'time' => 78080));
|
||||
$h62_full = array(array('wood' => 230, 'clay' => 200, 'iron' => 290, 'crop' => 120, 'time' => 2900), array('wood' => 630, 'clay' => 530, 'iron' => 750, 'crop' => 340, 'time' => 5800), array('wood' => 1000, 'clay' => 850, 'iron' => 1300, 'crop' => 570, 'time' => 8700), array('wood' => 1500, 'clay' => 1200, 'iron' => 1800, 'crop' => 820, 'time' => 11600),
|
||||
array('wood' => 2000, 'clay' => 1700, 'iron' => 2400, 'crop' => 1100, 'time' => 14500), array('wood' => 2500, 'clay' => 2100, 'iron' => 3000, 'crop' => 1400, 'time' => 17400), array('wood' => 3000, 'clay' => 2500, 'iron' => 3600, 'crop' => 1600, 'time' => 20300), array('wood' => 3600, 'clay' => 3000, 'iron' => 4300, 'crop' => 2000, 'time' => 23200),
|
||||
array('wood' => 4100, 'clay' => 3500, 'iron' => 5000, 'crop' => 2300, 'time' => 26100), array('wood' => 4700, 'clay' => 4000, 'iron' => 5600, 'crop' => 2600, 'time' => 29000), array('wood' => 5300, 'clay' => 4500, 'iron' => 6300, 'crop' => 2900, 'time' => 31900), array('wood' => 5900, 'clay' => 5000, 'iron' => 7100, 'crop' => 3300, 'time' => 34800),
|
||||
array('wood' => 6600, 'clay' => 5500, 'iron' => 7800, 'crop' => 3600, 'time' => 37700), array('wood' => 7100, 'clay' => 6100, 'iron' => 8600, 'crop' => 3900, 'time' => 40600), array('wood' => 7800, 'clay' => 6600, 'iron' => 9500, 'crop' => 4300, 'time' => 43500), array('wood' => 8500, 'clay' => 7200, 'iron' => 10000, 'crop' => 4600, 'time' => 46400),
|
||||
array('wood' => 9100, 'clay' => 7700, 'iron' => 11000, 'crop' => 5100, 'time' => 49300), array('wood' => 9800, 'clay' => 8500, 'iron' => 12000, 'crop' => 5400, 'time' => 52200), array('wood' => 10500, 'clay' => 8800, 'iron' => 12500, 'crop' => 5700, 'time' => 55100), array('wood' => 11000, 'clay' => 9600, 'iron' => 13500, 'crop' => 6200, 'time' => 58000),
|
||||
array('wood' => 12000, 'clay' => 10000, 'iron' => 14000, 'crop' => 6500, 'time' => 60900), array('wood' => 12500, 'clay' => 11000, 'iron' => 15000, 'crop' => 6900, 'time' => 63800), array('wood' => 13000, 'clay' => 11000, 'iron' => 16000, 'crop' => 7400, 'time' => 66700), array('wood' => 14000, 'clay' => 12000, 'iron' => 17000, 'crop' => 7700, 'time' => 69600),
|
||||
array('wood' => 15000, 'clay' => 12500, 'iron' => 17500, 'crop' => 8100, 'time' => 72500), array('wood' => 15500, 'clay' => 13000, 'iron' => 18500, 'crop' => 8600, 'time' => 75400), array('wood' => 16000, 'clay' => 14000, 'iron' => 19500, 'crop' => 9000, 'time' => 78300), array('wood' => 17500, 'clay' => 14000, 'iron' => 20500, 'crop' => 9400, 'time' => 81200),
|
||||
array('wood' => 18000, 'clay' => 15000, 'iron' => 21500, 'crop' => 9900, 'time' => 84100), array('wood' => 18500, 'clay' => 16000, 'iron' => 22000, 'crop' => 10500, 'time' => 87000), array('wood' => 19500, 'clay' => 16000, 'iron' => 23000, 'crop' => 10500, 'time' => 89900), array('wood' => 20000, 'clay' => 17000, 'iron' => 24000, 'crop' => 11000, 'time' => 92800),
|
||||
array('wood' => 20500, 'clay' => 17500, 'iron' => 25000, 'crop' => 11500, 'time' => 95700), array('wood' => 22000, 'clay' => 18500, 'iron' => 26000, 'crop' => 12000, 'time' => 98600), array('wood' => 22500, 'clay' => 19000, 'iron' => 27000, 'crop' => 12500, 'time' => 101500), array('wood' => 23500, 'clay' => 19500, 'iron' => 28000, 'crop' => 13000, 'time' => 104400),
|
||||
array('wood' => 24000, 'clay' => 20500, 'iron' => 29000, 'crop' => 13500, 'time' => 107300), array('wood' => 24500, 'clay' => 21000, 'iron' => 30000, 'crop' => 13500, 'time' => 110200), array('wood' => 26000, 'clay' => 22000, 'iron' => 31000, 'crop' => 14000, 'time' => 113100), array('wood' => 26500, 'clay' => 22500, 'iron' => 31500, 'crop' => 14500, 'time' => 116000),
|
||||
array('wood' => 27500, 'clay' => 23000, 'iron' => 33000, 'crop' => 15000, 'time' => 118900), array('wood' => 28000, 'clay' => 24000, 'iron' => 34000, 'crop' => 15500, 'time' => 121800), array('wood' => 29500, 'clay' => 24500, 'iron' => 35000, 'crop' => 16000, 'time' => 124700), array('wood' => 30000, 'clay' => 25500, 'iron' => 36000, 'crop' => 16500, 'time' => 127600),
|
||||
array('wood' => 31000, 'clay' => 26000, 'iron' => 37000, 'crop' => 17000, 'time' => 130500), array('wood' => 31500, 'clay' => 26500, 'iron' => 38000, 'crop' => 17500, 'time' => 133400), array('wood' => 33000, 'clay' => 27500, 'iron' => 39000, 'crop' => 18000, 'time' => 136300), array('wood' => 33500, 'clay' => 28000, 'iron' => 40000, 'crop' => 18500, 'time' => 139200),
|
||||
array('wood' => 34500, 'clay' => 29000, 'iron' => 41000, 'crop' => 19000, 'time' => 142100), array('wood' => 35000, 'clay' => 29500, 'iron' => 42000, 'crop' => 19500, 'time' => 145000), array('wood' => 36000, 'clay' => 30500, 'iron' => 43000, 'crop' => 19500, 'time' => 147900), array('wood' => 37000, 'clay' => 31000, 'iron' => 44500, 'crop' => 20000, 'time' => 150800),
|
||||
array('wood' => 38000, 'clay' => 32000, 'iron' => 45500, 'crop' => 21000, 'time' => 153700), array('wood' => 38500, 'clay' => 32500, 'iron' => 46000, 'crop' => 21500, 'time' => 156600), array('wood' => 39500, 'clay' => 33500, 'iron' => 47500, 'crop' => 22000, 'time' => 159500), array('wood' => 40500, 'clay' => 34000, 'iron' => 48500, 'crop' => 22500, 'time' => 162400),
|
||||
array('wood' => 41500, 'clay' => 35000, 'iron' => 50000, 'crop' => 22500, 'time' => 165300), array('wood' => 42500, 'clay' => 36000, 'iron' => 51000, 'crop' => 23000, 'time' => 168200), array('wood' => 43000, 'clay' => 36500, 'iron' => 51500, 'crop' => 24000, 'time' => 171100), array('wood' => 44500, 'clay' => 37500, 'iron' => 53000, 'crop' => 24500, 'time' => 174000),
|
||||
array('wood' => 45000, 'clay' => 38000, 'iron' => 54000, 'crop' => 25000, 'time' => 176900));
|
||||
$h63_full = array(array('wood' => 340, 'clay' => 360, 'iron' => 440, 'crop' => 160, 'time' => 3520), array('wood' => 940, 'clay' => 960, 'iron' => 1100, 'crop' => 460, 'time' => 7040), array('wood' => 1500, 'clay' => 1500, 'iron' => 1900, 'crop' => 770, 'time' => 10560), array('wood' => 2200, 'clay' => 2200, 'iron' => 2800, 'crop' => 1100, 'time' => 14080),
|
||||
array('wood' => 2900, 'clay' => 3000, 'iron' => 3600, 'crop' => 1500, 'time' => 17600), array('wood' => 3700, 'clay' => 3700, 'iron' => 4500, 'crop' => 1800, 'time' => 21120), array('wood' => 4400, 'clay' => 4600, 'iron' => 5500, 'crop' => 2200, 'time' => 24640), array('wood' => 5300, 'clay' => 5400, 'iron' => 6500, 'crop' => 2600, 'time' => 28160),
|
||||
array('wood' => 6100, 'clay' => 6200, 'iron' => 7600, 'crop' => 3100, 'time' => 31680), array('wood' => 7000, 'clay' => 7200, 'iron' => 8500, 'crop' => 3400, 'time' => 35200), array('wood' => 7800, 'clay' => 8000, 'iron' => 9600, 'crop' => 3900, 'time' => 38720), array('wood' => 8700, 'clay' => 9000, 'iron' => 10500, 'crop' => 4300, 'time' => 42240),
|
||||
array('wood' => 9700, 'clay' => 10000, 'iron' => 12000, 'crop' => 4800, 'time' => 45760), array('wood' => 10500, 'clay' => 11000, 'iron' => 13000, 'crop' => 5300, 'time' => 49280), array('wood' => 11500, 'clay' => 12000, 'iron' => 14500, 'crop' => 5700, 'time' => 52800), array('wood' => 12500, 'clay' => 13000, 'iron' => 15000, 'crop' => 6200, 'time' => 56320),
|
||||
array('wood' => 13500, 'clay' => 14000, 'iron' => 16500, 'crop' => 6700, 'time' => 59840), array('wood' => 14500, 'clay' => 15000, 'iron' => 18000, 'crop' => 7200, 'time' => 63360), array('wood' => 15500, 'clay' => 16000, 'iron' => 19500, 'crop' => 7700, 'time' => 66880), array('wood' => 16500, 'clay' => 17500, 'iron' => 20500, 'crop' => 8200, 'time' => 70400),
|
||||
array('wood' => 18000, 'clay' => 18000, 'iron' => 21500, 'crop' => 8700, 'time' => 73920), array('wood' => 18500, 'clay' => 19500, 'iron' => 22500, 'crop' => 9300, 'time' => 77440), array('wood' => 19500, 'clay' => 20000, 'iron' => 24000, 'crop' => 9800, 'time' => 80960), array('wood' => 20500, 'clay' => 21500, 'iron' => 25500, 'crop' => 10500, 'time' => 84480),
|
||||
array('wood' => 22000, 'clay' => 22000, 'iron' => 27000, 'crop' => 11000, 'time' => 88000), array('wood' => 23000, 'clay' => 23500, 'iron' => 28000, 'crop' => 11500, 'time' => 91520), array('wood' => 24000, 'clay' => 25000, 'iron' => 29500, 'crop' => 12000, 'time' => 95040), array('wood' => 25500, 'clay' => 25500, 'iron' => 31000, 'crop' => 12500, 'time' => 98560),
|
||||
array('wood' => 26500, 'clay' => 27000, 'iron' => 32500, 'crop' => 13000, 'time' => 102080), array('wood' => 27000, 'clay' => 28500, 'iron' => 33500, 'crop' => 13500, 'time' => 105600), array('wood' => 29000, 'clay' => 29000, 'iron' => 35000, 'crop' => 14500, 'time' => 109120), array('wood' => 30000, 'clay' => 30500, 'iron' => 36500, 'crop' => 15000, 'time' => 112640),
|
||||
array('wood' => 30500, 'clay' => 32000, 'iron' => 38000, 'crop' => 15500, 'time' => 116160), array('wood' => 32500, 'clay' => 33000, 'iron' => 39000, 'crop' => 16000, 'time' => 119680), array('wood' => 33000, 'clay' => 34000, 'iron' => 41500, 'crop' => 16500, 'time' => 123200), array('wood' => 35000, 'clay' => 35500, 'iron' => 42500, 'crop' => 17000, 'time' => 126720),
|
||||
array('wood' => 35500, 'clay' => 36500, 'iron' => 44000, 'crop' => 17500, 'time' => 130240), array('wood' => 36500, 'clay' => 38000, 'iron' => 45500, 'crop' => 18500, 'time' => 133760), array('wood' => 38500, 'clay' => 39500, 'iron' => 47000, 'crop' => 19000, 'time' => 137280), array('wood' => 39000, 'clay' => 40000, 'iron' => 48000, 'crop' => 19500, 'time' => 140800),
|
||||
array('wood' => 41000, 'clay' => 41500, 'iron' => 50000, 'crop' => 20000, 'time' => 144320), array('wood' => 41500, 'clay' => 43000, 'iron' => 51500, 'crop' => 20500, 'time' => 147840), array('wood' => 43500, 'clay' => 44500, 'iron' => 53000, 'crop' => 21000, 'time' => 151360), array('wood' => 44000, 'clay' => 45500, 'iron' => 54500, 'crop' => 22500, 'time' => 154880),
|
||||
array('wood' => 46000, 'clay' => 47000, 'iron' => 56500, 'crop' => 23000, 'time' => 158400), array('wood' => 47000, 'clay' => 48000, 'iron' => 58000, 'crop' => 23500, 'time' => 161920), array('wood' => 48500, 'clay' => 49000, 'iron' => 59000, 'crop' => 24000, 'time' => 165440), array('wood' => 49500, 'clay' => 50500, 'iron' => 60500, 'crop' => 24500, 'time' => 168960),
|
||||
array('wood' => 51000, 'clay' => 52000, 'iron' => 62500, 'crop' => 25000, 'time' => 172480), array('wood' => 52000, 'clay' => 53500, 'iron' => 64000, 'crop' => 25500, 'time' => 176000), array('wood' => 53500, 'clay' => 54500, 'iron' => 65500, 'crop' => 26500, 'time' => 179520), array('wood' => 54500, 'clay' => 56000, 'iron' => 67500, 'crop' => 27000, 'time' => 183040),
|
||||
array('wood' => 56000, 'clay' => 57500, 'iron' => 69000, 'crop' => 28000, 'time' => 186560), array('wood' => 57000, 'clay' => 59000, 'iron' => 70000, 'crop' => 28500, 'time' => 190080), array('wood' => 58500, 'clay' => 60000, 'iron' => 72000, 'crop' => 29000, 'time' => 193600), array('wood' => 59500, 'clay' => 61500, 'iron' => 73500, 'crop' => 29500, 'time' => 197120),
|
||||
array('wood' => 61000, 'clay' => 63000, 'iron' => 75500, 'crop' => 30500, 'time' => 200640), array('wood' => 63000, 'clay' => 64500, 'iron' => 77000, 'crop' => 31000, 'time' => 204160), array('wood' => 64000, 'clay' => 66000, 'iron' => 78500, 'crop' => 32000, 'time' => 207680), array('wood' => 65500, 'clay' => 67000, 'iron' => 80500, 'crop' => 32500, 'time' => 211200),
|
||||
array('wood' => 66500, 'clay' => 68500, 'iron' => 82000, 'crop' => 33000, 'time' => 214720));
|
||||
$h65_full = array(array('wood' => 720, 'clay' => 660, 'iron' => 560, 'crop' => 240, 'time' => 5120), array('wood' => 1800, 'clay' => 1700, 'iron' => 1400, 'crop' => 660, 'time' => 10240), array('wood' => 2900, 'clay' => 2700, 'iron' => 2300, 'crop' => 1100, 'time' => 15360), array('wood' => 4200, 'clay' => 3800, 'iron' => 3300, 'crop' => 1600, 'time' => 20480),
|
||||
array('wood' => 5500, 'clay' => 5100, 'iron' => 4400, 'crop' => 2000, 'time' => 25600), array('wood' => 6900, 'clay' => 6400, 'iron' => 5500, 'crop' => 2600, 'time' => 30720), array('wood' => 8500, 'clay' => 7900, 'iron' => 6700, 'crop' => 3100, 'time' => 35840), array('wood' => 9800, 'clay' => 9000, 'iron' => 7900, 'crop' => 3700, 'time' => 40960),
|
||||
array('wood' => 11500, 'clay' => 10500, 'iron' => 9200, 'crop' => 4300, 'time' => 46080), array('wood' => 13000, 'clay' => 12000, 'iron' => 10500, 'crop' => 4900, 'time' => 51200), array('wood' => 14500, 'clay' => 13500, 'iron' => 12000, 'crop' => 5500, 'time' => 56320), array('wood' => 16500, 'clay' => 15500, 'iron' => 13000, 'crop' => 6100, 'time' => 61440),
|
||||
array('wood' => 18500, 'clay' => 17000, 'iron' => 14500, 'crop' => 6800, 'time' => 66560), array('wood' => 20000, 'clay' => 18500, 'iron' => 16000, 'crop' => 7400, 'time' => 71680), array('wood' => 22000, 'clay' => 20500, 'iron' => 17500, 'crop' => 8200, 'time' => 76800), array('wood' => 23500, 'clay' => 22000, 'iron' => 19000, 'crop' => 8900, 'time' => 81920),
|
||||
array('wood' => 25500, 'clay' => 23500, 'iron' => 20000, 'crop' => 9500, 'time' => 87040), array('wood' => 27500, 'clay' => 25000, 'iron' => 22000, 'crop' => 10000, 'time' => 92160), array('wood' => 29500, 'clay' => 27000, 'iron' => 23000, 'crop' => 11000, 'time' => 97280), array('wood' => 31500, 'clay' => 29000, 'iron' => 25000, 'crop' => 11500, 'time' => 102400),
|
||||
array('wood' => 33500, 'clay' => 31000, 'iron' => 26500, 'crop' => 12500, 'time' => 107520), array('wood' => 35500, 'clay' => 32500, 'iron' => 28000, 'crop' => 13000, 'time' => 112640), array('wood' => 37500, 'clay' => 34500, 'iron' => 29500, 'crop' => 14000, 'time' => 117760), array('wood' => 39500, 'clay' => 36500, 'iron' => 31000, 'crop' => 14500, 'time' => 122880),
|
||||
array('wood' => 41000, 'clay' => 38500, 'iron' => 33000, 'crop' => 15500, 'time' => 128000), array('wood' => 43500, 'clay' => 40000, 'iron' => 34500, 'crop' => 16000, 'time' => 133120), array('wood' => 45500, 'clay' => 42000, 'iron' => 36000, 'crop' => 17000, 'time' => 138240), array('wood' => 48000, 'clay' => 44000, 'iron' => 37500, 'crop' => 18000, 'time' => 143360),
|
||||
array('wood' => 49500, 'clay' => 46000, 'iron' => 39500, 'crop' => 18500, 'time' => 148480), array('wood' => 52000, 'clay' => 48000, 'iron' => 41000, 'crop' => 19000, 'time' => 153600), array('wood' => 54000, 'clay' => 50000, 'iron' => 43000, 'crop' => 20500, 'time' => 158720), array('wood' => 56500, 'clay' => 52000, 'iron' => 44500, 'crop' => 21000, 'time' => 163840),
|
||||
array('wood' => 58500, 'clay' => 54000, 'iron' => 46500, 'crop' => 21500, 'time' => 168960), array('wood' => 61000, 'clay' => 56000, 'iron' => 48000, 'crop' => 23000, 'time' => 174080), array('wood' => 63000, 'clay' => 58000, 'iron' => 50000, 'crop' => 23500, 'time' => 179200), array('wood' => 65000, 'clay' => 60000, 'iron' => 51500, 'crop' => 24500, 'time' => 184320),
|
||||
array('wood' => 67500, 'clay' => 62500, 'iron' => 53500, 'crop' => 25000, 'time' => 189440), array('wood' => 69500, 'clay' => 64500, 'iron' => 55000, 'crop' => 26000, 'time' => 194560), array('wood' => 72000, 'clay' => 66500, 'iron' => 57500, 'crop' => 27000, 'time' => 199680), array('wood' => 74500, 'clay' => 68500, 'iron' => 59000, 'crop' => 27500, 'time' => 204800),
|
||||
array('wood' => 76500, 'clay' => 71000, 'iron' => 61000, 'crop' => 29000, 'time' => 209920), array('wood' => 79000, 'clay' => 73000, 'iron' => 66000, 'crop' => 29500, 'time' => 215040), array('wood' => 81500, 'clay' => 75000, 'iron' => 65000, 'crop' => 30500, 'time' => 220160), array('wood' => 84000, 'clay' => 77500, 'iron' => 66500, 'crop' => 31000, 'time' => 225280),
|
||||
array('wood' => 86000, 'clay' => 79500, 'iron' => 68500, 'crop' => 32500, 'time' => 230400), array('wood' => 88500, 'clay' => 82000, 'iron' => 70500, 'crop' => 33000, 'time' => 235520), array('wood' => 91000, 'clay' => 84000, 'iron' => 72000, 'crop' => 34000, 'time' => 240640), array('wood' => 93500, 'clay' => 86500, 'iron' => 74000, 'crop' => 35000, 'time' => 245760),
|
||||
array('wood' => 96000, 'clay' => 88500, 'iron' => 76000, 'crop' => 36000, 'time' => 250880), array('wood' => 98000, 'clay' => 91000, 'iron' => 78000, 'crop' => 36500, 'time' => 256000), array('wood' => 101000, 'clay' => 93000, 'iron' => 80000, 'crop' => 38000, 'time' => 261120), array('wood' => 103500, 'clay' => 95500, 'iron' => 82000, 'crop' => 38500, 'time' => 266240),
|
||||
array('wood' => 105500, 'clay' => 97500, 'iron' => 84000, 'crop' => 39500, 'time' => 271360), array('wood' => 108500, 'clay' => 100000, 'iron' => 86000, 'crop' => 40000, 'time' => 276480), array('wood' => 111000, 'clay' => 102500, 'iron' => 88000, 'crop' => 41500, 'time' => 281600), array('wood' => 113000, 'clay' => 104500, 'iron' => 89500, 'crop' => 42000, 'time' => 286720),
|
||||
array('wood' => 116000, 'clay' => 107000, 'iron' => 92000, 'crop' => 43000, 'time' => 291840), array('wood' => 118500, 'clay' => 109000, 'iron' => 93500, 'crop' => 44500, 'time' => 296960), array('wood' => 121000, 'clay' => 112000, 'iron' => 96000, 'crop' => 45000, 'time' => 302080), array('wood' => 123500, 'clay' => 114000, 'iron' => 98000, 'crop' => 46000, 'time' => 307200),
|
||||
array('wood' => 126000, 'clay' => 116500, 'iron' => 100000, 'crop' => 47000, 'time' => 312320));
|
||||
$h66_full = array(array('wood' => 900, 'clay' => 1100, 'iron' => 1200, 'crop' => 360, 'time' => 6240), array('wood' => 2200, 'clay' => 2700, 'iron' => 3000, 'crop' => 930, 'time' => 12480), array('wood' => 3700, 'clay' => 4600, 'iron' => 4900, 'crop' => 1500, 'time' => 18720), array('wood' => 5200, 'clay' => 6500, 'iron' => 7000, 'crop' => 2200, 'time' => 24960),
|
||||
array('wood' => 6900, 'clay' => 8600, 'iron' => 9200, 'crop' => 2900, 'time' => 31200), array('wood' => 8600, 'clay' => 11000, 'iron' => 12000, 'crop' => 3700, 'time' => 37440), array('wood' => 10500, 'clay' => 13000, 'iron' => 14000, 'crop' => 4400, 'time' => 43680), array('wood' => 12500, 'clay' => 15500, 'iron' => 17000, 'crop' => 5200, 'time' => 49920),
|
||||
array('wood' => 14500, 'clay' => 18000, 'iron' => 19500, 'crop' => 6100, 'time' => 56160), array('wood' => 16500, 'clay' => 20500, 'iron' => 22000, 'crop' => 6900, 'time' => 62400), array('wood' => 18500, 'clay' => 23000, 'iron' => 25000, 'crop' => 7800, 'time' => 68640), array('wood' => 20500, 'clay' => 26000, 'iron' => 28000, 'crop' => 8700, 'time' => 74880),
|
||||
array('wood' => 23000, 'clay' => 28500, 'iron' => 30500, 'crop' => 9600, 'time' => 81120), array('wood' => 25000, 'clay' => 31000, 'iron' => 33500, 'crop' => 10500, 'time' => 87360), array('wood' => 27500, 'clay' => 33500, 'iron' => 36500, 'crop' => 11500, 'time' => 93600), array('wood' => 29500, 'clay' => 37000, 'iron' => 39500, 'crop' => 12500, 'time' => 99840),
|
||||
array('wood' => 32000, 'clay' => 39500, 'iron' => 43000, 'crop' => 13500, 'time' => 106080), array('wood' => 34500, 'clay' => 42500, 'iron' => 46000, 'crop' => 14500, 'time' => 112320), array('wood' => 37000, 'clay' => 45500, 'iron' => 49000, 'crop' => 15500, 'time' => 118560), array('wood' => 39500, 'clay' => 48500, 'iron' => 52500, 'crop' => 16500, 'time' => 124800),
|
||||
array('wood' => 41500, 'clay' => 51500, 'iron' => 56000, 'crop' => 17500, 'time' => 131040), array('wood' => 44000, 'clay' => 54500, 'iron' => 59000, 'crop' => 18500, 'time' => 137280), array('wood' => 46500, 'clay' => 58000, 'iron' => 62500, 'crop' => 19500, 'time' => 143520), array('wood' => 49000, 'clay' => 61000, 'iron' => 66000, 'crop' => 20500, 'time' => 149760),
|
||||
array('wood' => 51500, 'clay' => 64000, 'iron' => 69500, 'crop' => 22000, 'time' => 156000), array('wood' => 54500, 'clay' => 67500, 'iron' => 73000, 'crop' => 23000, 'time' => 162240), array('wood' => 57000, 'clay' => 70500, 'iron' => 76500, 'crop' => 24000, 'time' => 168480), array('wood' => 59500, 'clay' => 74000, 'iron' => 80000, 'crop' => 25000, 'time' => 174720),
|
||||
array('wood' => 62000, 'clay' => 77000, 'iron' => 83500, 'crop' => 26000, 'time' => 180960), array('wood' => 65000, 'clay' => 80500, 'iron' => 87500, 'crop' => 27500, 'time' => 187200), array('wood' => 67500, 'clay' => 84000, 'iron' => 90500, 'crop' => 28500, 'time' => 193440), array('wood' => 70500, 'clay' => 87000, 'iron' => 94500, 'crop' => 29500, 'time' => 199680),
|
||||
array('wood' => 73000, 'clay' => 90500, 'iron' => 98500, 'crop' => 31000, 'time' => 205920), array('wood' => 76000, 'clay' => 94000, 'iron' => 102000, 'crop' => 32000, 'time' => 212160), array('wood' => 78500, 'clay' => 97500, 'iron' => 106000, 'crop' => 33000, 'time' => 218400), array('wood' => 81500, 'clay' => 101000, 'iron' => 109500, 'crop' => 34500, 'time' => 224640),
|
||||
array('wood' => 84500, 'clay' => 104500, 'iron' => 113000, 'crop' => 35500, 'time' => 230880), array('wood' => 87000, 'clay' => 108000, 'iron' => 117500, 'crop' => 37000, 'time' => 237120), array('wood' => 90000, 'clay' => 111500, 'iron' => 121000, 'crop' => 38000, 'time' => 243360), array('wood' => 93000, 'clay' => 115500, 'iron' => 125000, 'crop' => 39000, 'time' => 249600),
|
||||
array('wood' => 95500, 'clay' => 119000, 'iron' => 129000, 'crop' => 40500, 'time' => 255840), array('wood' => 99000, 'clay' => 122500, 'iron' => 133000, 'crop' => 41500, 'time' => 262080), array('wood' => 102000, 'clay' => 126000, 'iron' => 137000, 'crop' => 43000, 'time' => 268320), array('wood' => 104500, 'clay' => 130000, 'iron' => 140500, 'crop' => 44000, 'time' => 274560),
|
||||
array('wood' => 107500, 'clay' => 133500, 'iron' => 145000, 'crop' => 45500, 'time' => 280800), array('wood' => 111000, 'clay' => 137500, 'iron' => 149000, 'crop' => 46500, 'time' => 287040), array('wood' => 113500, 'clay' => 141000, 'iron' => 153000, 'crop' => 48000, 'time' => 293280), array('wood' => 117000, 'clay' => 145000, 'iron' => 157000, 'crop' => 49500, 'time' => 299520),
|
||||
array('wood' => 120000, 'clay' => 149000, 'iron' => 161500, 'crop' => 50500, 'time' => 305760), array('wood' => 122500, 'clay' => 152500, 'iron' => 165000, 'crop' => 52000, 'time' => 312000), array('wood' => 126000, 'clay' => 156000, 'iron' => 169500, 'crop' => 53000, 'time' => 318240), array('wood' => 37500, 'clay' => 160000, 'iron' => 173500, 'crop' => 54500, 'time' => 324480),
|
||||
array('wood' => 37500, 'clay' => 164000, 'iron' => 177500, 'crop' => 56000, 'time' => 330720), array('wood' => 136000, 'clay' => 168000, 'iron' => 182000, 'crop' => 57000, 'time' => 336960), array('wood' => 138500, 'clay' => 171500, 'iron' => 183000, 'crop' => 58500, 'time' => 343200), array('wood' => 141500, 'clay' => 175500, 'iron' => 183000, 'crop' => 59500, 'time' => 349440),
|
||||
array('wood' => 145000, 'clay' => 179500, 'iron' => 183000, 'crop' => 61000, 'time' => 355680), array('wood' => 148000, 'clay' => 183500, 'iron' => 183000, 'crop' => 62500, 'time' => 361920), array('wood' => 151500, 'clay' => 187500, 'iron' => 183000, 'crop' => 64000, 'time' => 368160), array('wood' => 154000, 'clay' => 191500, 'iron' => 183000, 'crop' => 65000, 'time' => 374400),
|
||||
array('wood' => 157500, 'clay' => 195500, 'iron' => 183000, 'crop' => 66500, 'time' => 380640));
|
||||
//SPARTAN UNITS (TRIBE 8)
|
||||
$h71_full = array(array('wood' => 220, 'clay' => 370, 'iron' => 220, 'crop' => 70, 'time' => 3400), array('wood' => 590, 'clay' => 1000, 'iron' => 570, 'crop' => 250, 'time' => 6800), array('wood' => 1000, 'clay' => 1700, 'iron' => 950, 'crop' => 420, 'time' => 10200), array('wood' => 1400, 'clay' => 2400, 'iron' => 1400, 'crop' => 600, 'time' => 13600),
|
||||
array('wood' => 1800, 'clay' => 3100, 'iron' => 1800, 'crop' => 780, 'time' => 17000), array('wood' => 2300, 'clay' => 4100, 'iron' => 2300, 'crop' => 990, 'time' => 20400), array('wood' => 2800, 'clay' => 4800, 'iron' => 2800, 'crop' => 1200, 'time' => 23800), array('wood' => 3300, 'clay' => 5700, 'iron' => 3200, 'crop' => 1400, 'time' => 27200),
|
||||
array('wood' => 3900, 'clay' => 6700, 'iron' => 3700, 'crop' => 1600, 'time' => 30600), array('wood' => 4400, 'clay' => 7600, 'iron' => 4300, 'crop' => 1900, 'time' => 34000), array('wood' => 5000, 'clay' => 8500, 'iron' => 4800, 'crop' => 2100, 'time' => 37400), array('wood' => 5500, 'clay' => 9400, 'iron' => 5400, 'crop' => 2300, 'time' => 40800),
|
||||
array('wood' => 6100, 'clay' => 10500, 'iron' => 5900, 'crop' => 2600, 'time' => 44200), array('wood' => 6700, 'clay' => 11500, 'iron' => 6500, 'crop' => 2800, 'time' => 47600), array('wood' => 7300, 'clay' => 12500, 'iron' => 7100, 'crop' => 3200, 'time' => 51000), array('wood' => 7900, 'clay' => 13500, 'iron' => 7700, 'crop' => 3400, 'time' => 54400),
|
||||
array('wood' => 8500, 'clay' => 14500, 'iron' => 8400, 'crop' => 3600, 'time' => 57800), array('wood' => 9200, 'clay' => 15500, 'iron' => 8800, 'crop' => 3900, 'time' => 61200), array('wood' => 9600, 'clay' => 17000, 'iron' => 9500, 'crop' => 4200, 'time' => 64600), array('wood' => 10500, 'clay' => 18000, 'iron' => 10500, 'crop' => 4400, 'time' => 68000),
|
||||
array('wood' => 11000, 'clay' => 19500, 'iron' => 11000, 'crop' => 4700, 'time' => 71400), array('wood' => 12000, 'clay' => 20500, 'iron' => 11500, 'crop' => 5000, 'time' => 74800), array('wood' => 12500, 'clay' => 21500, 'iron' => 12000, 'crop' => 5300, 'time' => 78200), array('wood' => 13500, 'clay' => 22000, 'iron' => 13000, 'crop' => 5600, 'time' => 81600),
|
||||
array('wood' => 14000, 'clay' => 24000, 'iron' => 13500, 'crop' => 5800, 'time' => 85000), array('wood' => 14500, 'clay' => 25000, 'iron' => 14500, 'crop' => 6200, 'time' => 88400), array('wood' => 15000, 'clay' => 26000, 'iron' => 15000, 'crop' => 6400, 'time' => 91800), array('wood' => 16000, 'clay' => 28000, 'iron' => 16000, 'crop' => 6800, 'time' => 95200),
|
||||
array('wood' => 16500, 'clay' => 28500, 'iron' => 16000, 'crop' => 7100, 'time' => 98600), array('wood' => 17500, 'clay' => 29500, 'iron' => 17000, 'crop' => 7400, 'time' => 102000), array('wood' => 18000, 'clay' => 31500, 'iron' => 17500, 'crop' => 7700, 'time' => 105400), array('wood' => 19000, 'clay' => 32500, 'iron' => 18500, 'crop' => 7900, 'time' => 108800),
|
||||
array('wood' => 19500, 'clay' => 33500, 'iron' => 19000, 'crop' => 8300, 'time' => 112200), array('wood' => 20000, 'clay' => 35000, 'iron' => 20000, 'crop' => 8600, 'time' => 115600), array('wood' => 21000, 'clay' => 36000, 'iron' => 20500, 'crop' => 9000, 'time' => 119000), array('wood' => 22000, 'clay' => 38000, 'iron' => 21500, 'crop' => 9200, 'time' => 122400),
|
||||
array('wood' => 22500, 'clay' => 39000, 'iron' => 22000, 'crop' => 9600, 'time' => 125800), array('wood' => 23500, 'clay' => 40000, 'iron' => 22500, 'crop' => 9900, 'time' => 129200), array('wood' => 24500, 'clay' => 41500, 'iron' => 23500, 'crop' => 10500, 'time' => 132600), array('wood' => 25000, 'clay' => 42500, 'iron' => 24000, 'crop' => 10500, 'time' => 136000),
|
||||
array('wood' => 25500, 'clay' => 44500, 'iron' => 25000, 'crop' => 11000, 'time' => 139400), array('wood' => 26500, 'clay' => 45500, 'iron' => 26000, 'crop' => 11000, 'time' => 142800), array('wood' => 27000, 'clay' => 47000, 'iron' => 27000, 'crop' => 11500, 'time' => 146200), array('wood' => 28000, 'clay' => 48000, 'iron' => 27500, 'crop' => 11500, 'time' => 149600),
|
||||
array('wood' => 29000, 'clay' => 50000, 'iron' => 28000, 'crop' => 12500, 'time' => 153000), array('wood' => 30000, 'clay' => 51000, 'iron' => 29000, 'crop' => 13000, 'time' => 156400), array('wood' => 31000, 'clay' => 52500, 'iron' => 29500, 'crop' => 13000, 'time' => 159800), array('wood' => 31000, 'clay' => 53500, 'iron' => 30500, 'crop' => 13500, 'time' => 163200),
|
||||
array('wood' => 32000, 'clay' => 55500, 'iron' => 31500, 'crop' => 13500, 'time' => 166600), array('wood' => 33000, 'clay' => 56500, 'iron' => 32500, 'crop' => 14000, 'time' => 170000), array('wood' => 34000, 'clay' => 58500, 'iron' => 33000, 'crop' => 14500, 'time' => 173400), array('wood' => 34500, 'clay' => 59000, 'iron' => 33500, 'crop' => 14500, 'time' => 176800),
|
||||
array('wood' => 35500, 'clay' => 61000, 'iron' => 34500, 'crop' => 15000, 'time' => 180200), array('wood' => 36000, 'clay' => 62000, 'iron' => 35500, 'crop' => 15000, 'time' => 183600), array('wood' => 37000, 'clay' => 64000, 'iron' => 36500, 'crop' => 16000, 'time' => 187000), array('wood' => 38000, 'clay' => 65000, 'iron' => 37000, 'crop' => 16500, 'time' => 190400),
|
||||
array('wood' => 39000, 'clay' => 66500, 'iron' => 38000, 'crop' => 16500, 'time' => 193800), array('wood' => 39500, 'clay' => 68500, 'iron' => 39000, 'crop' => 17000, 'time' => 197200), array('wood' => 40500, 'clay' => 69500, 'iron' => 39500, 'crop' => 17000, 'time' => 200600), array('wood' => 41500, 'clay' => 71000, 'iron' => 40500, 'crop' => 17500, 'time' => 204000),
|
||||
array('wood' => 42000, 'clay' => 72000, 'iron' => 41500, 'crop' => 18000, 'time' => 207400));
|
||||
$h72_full = array(array('wood' => 290, 'clay' => 190, 'iron' => 490, 'crop' => 90, 'time' => 3900), array('wood' => 800, 'clay' => 500, 'iron' => 1300, 'crop' => 260, 'time' => 7800), array('wood' => 1300, 'clay' => 800, 'iron' => 2100, 'crop' => 430, 'time' => 11700), array('wood' => 1900, 'clay' => 1200, 'iron' => 3100, 'crop' => 620, 'time' => 15600),
|
||||
array('wood' => 2500, 'clay' => 1600, 'iron' => 4000, 'crop' => 840, 'time' => 19500), array('wood' => 3200, 'clay' => 2000, 'iron' => 5100, 'crop' => 1000, 'time' => 23400), array('wood' => 3800, 'clay' => 2400, 'iron' => 6100, 'crop' => 1200, 'time' => 27300), array('wood' => 4500, 'clay' => 2900, 'iron' => 7200, 'crop' => 1500, 'time' => 31200),
|
||||
array('wood' => 5200, 'clay' => 3300, 'iron' => 8400, 'crop' => 1700, 'time' => 35100), array('wood' => 5900, 'clay' => 3800, 'iron' => 9500, 'crop' => 1900, 'time' => 39000), array('wood' => 6700, 'clay' => 4200, 'iron' => 10500, 'crop' => 2200, 'time' => 42900), array('wood' => 7400, 'clay' => 4800, 'iron' => 12000, 'crop' => 2400, 'time' => 46800),
|
||||
array('wood' => 8300, 'clay' => 5300, 'iron' => 13000, 'crop' => 2700, 'time' => 50700), array('wood' => 9000, 'clay' => 5800, 'iron' => 14500, 'crop' => 3000, 'time' => 54600), array('wood' => 9900, 'clay' => 6300, 'iron' => 16000, 'crop' => 3200, 'time' => 58500), array('wood' => 10500, 'clay' => 6800, 'iron' => 17000, 'crop' => 3500, 'time' => 62400),
|
||||
array('wood' => 11500, 'clay' => 7300, 'iron' => 18500, 'crop' => 3800, 'time' => 66300), array('wood' => 12500, 'clay' => 8000, 'iron' => 20000, 'crop' => 4100, 'time' => 70200), array('wood' => 13000, 'clay' => 8400, 'iron' => 21500, 'crop' => 4300, 'time' => 74100), array('wood' => 14000, 'clay' => 9100, 'iron' => 23000, 'crop' => 4600, 'time' => 78000),
|
||||
array('wood' => 15000, 'clay' => 9500, 'iron' => 23500, 'crop' => 4900, 'time' => 81900), array('wood' => 16000, 'clay' => 10000, 'iron' => 25500, 'crop' => 5200, 'time' => 85800), array('wood' => 16500, 'clay' => 10500, 'iron' => 27000, 'crop' => 5500, 'time' => 89700), array('wood' => 17500, 'clay' => 11500, 'iron' => 28500, 'crop' => 5800, 'time' => 93600),
|
||||
array('wood' => 19000, 'clay' => 11500, 'iron' => 30000, 'crop' => 6100, 'time' => 97500), array('wood' => 19500, 'clay' => 12500, 'iron' => 31500, 'crop' => 6400, 'time' => 101400), array('wood' => 20500, 'clay' => 13000, 'iron' => 33000, 'crop' => 6800, 'time' => 105300), array('wood' => 22000, 'clay' => 13500, 'iron' => 34500, 'crop' => 7100, 'time' => 109200),
|
||||
array('wood' => 22500, 'clay' => 14500, 'iron' => 36000, 'crop' => 7400, 'time' => 113100), array('wood' => 23000, 'clay' => 15000, 'iron' => 37500, 'crop' => 7700, 'time' => 117000), array('wood' => 24500, 'clay' => 15500, 'iron' => 39000, 'crop' => 8000, 'time' => 120900), array('wood' => 25500, 'clay' => 16000, 'iron' => 40500, 'crop' => 8400, 'time' => 124800),
|
||||
array('wood' => 26000, 'clay' => 17000, 'iron' => 42000, 'crop' => 8700, 'time' => 128700), array('wood' => 27500, 'clay' => 17500, 'iron' => 43500, 'crop' => 9000, 'time' => 132600), array('wood' => 28500, 'clay' => 18000, 'iron' => 46000, 'crop' => 9300, 'time' => 136500), array('wood' => 29500, 'clay' => 18500, 'iron' => 47500, 'crop' => 9600, 'time' => 140400),
|
||||
array('wood' => 30500, 'clay' => 19500, 'iron' => 49000, 'crop' => 10000, 'time' => 144300), array('wood' => 31000, 'clay' => 20000, 'iron' => 50500, 'crop' => 10500, 'time' => 148200), array('wood' => 32500, 'clay' => 21000, 'iron' => 52000, 'crop' => 10500, 'time' => 152100), array('wood' => 33500, 'clay' => 21000, 'iron' => 53500, 'crop' => 11000, 'time' => 156000),
|
||||
array('wood' => 35000, 'clay' => 22000, 'iron' => 56000, 'crop' => 11500, 'time' => 159900), array('wood' => 35500, 'clay' => 22500, 'iron' => 57500, 'crop' => 11500, 'time' => 163800), array('wood' => 37000, 'clay' => 23500, 'iron' => 59000, 'crop' => 12000, 'time' => 167700), array('wood' => 37500, 'clay' => 24000, 'iron' => 60500, 'crop' => 12500, 'time' => 171600),
|
||||
array('wood' => 39000, 'clay' => 25000, 'iron' => 63000, 'crop' => 13000, 'time' => 175500), array('wood' => 40000, 'clay' => 25000, 'iron' => 64500, 'crop' => 13000, 'time' => 179400), array('wood' => 41500, 'clay' => 26000, 'iron' => 66000, 'crop' => 13500, 'time' => 183300), array('wood' => 42000, 'clay' => 26500, 'iron' => 67500, 'crop' => 14000, 'time' => 187200),
|
||||
array('wood' => 43500, 'clay' => 27500, 'iron' => 69500, 'crop' => 14000, 'time' => 191100), array('wood' => 44000, 'clay' => 28000, 'iron' => 71000, 'crop' => 14500, 'time' => 195000), array('wood' => 45500, 'clay' => 29000, 'iron' => 72500, 'crop' => 15000, 'time' => 198900), array('wood' => 46500, 'clay' => 29500, 'iron' => 75000, 'crop' => 15000, 'time' => 202800),
|
||||
array('wood' => 48000, 'clay' => 30500, 'iron' => 76500, 'crop' => 16000, 'time' => 206700), array('wood' => 48500, 'clay' => 31000, 'iron' => 78000, 'crop' => 16000, 'time' => 210600), array('wood' => 50000, 'clay' => 32000, 'iron' => 80500, 'crop' => 16500, 'time' => 214500), array('wood' => 51000, 'clay' => 32500, 'iron' => 82000, 'crop' => 16500, 'time' => 218400),
|
||||
array('wood' => 52000, 'clay' => 33500, 'iron' => 84000, 'crop' => 17000, 'time' => 222300), array('wood' => 53500, 'clay' => 34000, 'iron' => 86000, 'crop' => 17500, 'time' => 226200), array('wood' => 54500, 'clay' => 34500, 'iron' => 87500, 'crop' => 18000, 'time' => 230100), array('wood' => 56000, 'clay' => 35500, 'iron' => 89500, 'crop' => 18500, 'time' => 234000),
|
||||
array('wood' => 56500, 'clay' => 36000, 'iron' => 91000, 'crop' => 18500, 'time' => 237900));
|
||||
$h73_full = array(array('wood' => 260, 'clay' => 400, 'iron' => 800, 'crop' => 130, 'time' => 4400), array('wood' => 680, 'clay' => 1000, 'iron' => 2100, 'crop' => 370, 'time' => 8800), array('wood' => 1100, 'clay' => 1800, 'iron' => 3400, 'crop' => 610, 'time' => 13200), array('wood' => 1600, 'clay' => 2500, 'iron' => 4800, 'crop' => 890, 'time' => 17600),
|
||||
array('wood' => 2200, 'clay' => 3300, 'iron' => 6500, 'crop' => 1100, 'time' => 22000), array('wood' => 2700, 'clay' => 4100, 'iron' => 8000, 'crop' => 1500, 'time' => 26400), array('wood' => 3300, 'clay' => 5000, 'iron' => 9700, 'crop' => 1800, 'time' => 30800), array('wood' => 3800, 'clay' => 5900, 'iron' => 11500, 'crop' => 2100, 'time' => 35200),
|
||||
array('wood' => 4400, 'clay' => 6900, 'iron' => 13500, 'crop' => 2400, 'time' => 39600), array('wood' => 5100, 'clay' => 7800, 'iron' => 15000, 'crop' => 2800, 'time' => 44000), array('wood' => 5700, 'clay' => 8800, 'iron' => 17000, 'crop' => 3100, 'time' => 48400), array('wood' => 6400, 'clay' => 9800, 'iron' => 19000, 'crop' => 3400, 'time' => 52800),
|
||||
array('wood' => 7000, 'clay' => 11000, 'iron' => 21000, 'crop' => 3800, 'time' => 57200), array('wood' => 7700, 'clay' => 12000, 'iron' => 23000, 'crop' => 4100, 'time' => 61600), array('wood' => 8400, 'clay' => 13000, 'iron' => 25500, 'crop' => 4600, 'time' => 66000), array('wood' => 9100, 'clay' => 14000, 'iron' => 27500, 'crop' => 5000, 'time' => 70400),
|
||||
array('wood' => 10000, 'clay' => 15000, 'iron' => 29500, 'crop' => 5400, 'time' => 74800), array('wood' => 10500, 'clay' => 16500, 'iron' => 31500, 'crop' => 5700, 'time' => 79200), array('wood' => 11500, 'clay' => 17500, 'iron' => 34500, 'crop' => 6100, 'time' => 83600), array('wood' => 12000, 'clay' => 19000, 'iron' => 36000, 'crop' => 6500, 'time' => 88000),
|
||||
array('wood' => 13000, 'clay' => 19500, 'iron' => 38000, 'crop' => 6900, 'time' => 92400), array('wood' => 13500, 'clay' => 20500, 'iron' => 41000, 'crop' => 7400, 'time' => 96800), array('wood' => 14500, 'clay' => 22000, 'iron' => 43000, 'crop' => 7800, 'time' => 101200), array('wood' => 15000, 'clay' => 23000, 'iron' => 45500, 'crop' => 8100, 'time' => 105600),
|
||||
array('wood' => 16000, 'clay' => 24500, 'iron' => 47500, 'crop' => 8500, 'time' => 110000), array('wood' => 17000, 'clay' => 25500, 'iron' => 50500, 'crop' => 8900, 'time' => 114400), array('wood' => 18000, 'clay' => 27000, 'iron' => 52500, 'crop' => 9300, 'time' => 118800), array('wood' => 18500, 'clay' => 28000, 'iron' => 55000, 'crop' => 9800, 'time' => 123200),
|
||||
array('wood' => 19000, 'clay' => 29500, 'iron' => 58000, 'crop' => 10500, 'time' => 127600), array('wood' => 20000, 'clay' => 30500, 'iron' => 60000, 'crop' => 11000, 'time' => 132000), array('wood' => 21000, 'clay' => 32000, 'iron' => 63000, 'crop' => 11500, 'time' => 136400), array('wood' => 21500, 'clay' => 33000, 'iron' => 65000, 'crop' => 12000, 'time' => 140800),
|
||||
array('wood' => 22500, 'clay' => 34500, 'iron' => 67500, 'crop' => 12000, 'time' => 145200), array('wood' => 23500, 'clay' => 35500, 'iron' => 70500, 'crop' => 12500, 'time' => 149600), array('wood' => 24500, 'clay' => 37500, 'iron' => 73500, 'crop' => 13000, 'time' => 154000), array('wood' => 25000, 'clay' => 39000, 'iron' => 75000, 'crop' => 14000, 'time' => 158400),
|
||||
array('wood' => 26000, 'clay' => 40000, 'iron' => 78000, 'crop' => 14000, 'time' => 162800), array('wood' => 27000, 'clay' => 41500, 'iron' => 81000, 'crop' => 14500, 'time' => 167200), array('wood' => 27500, 'clay' => 42500, 'iron' => 84000, 'crop' => 15000, 'time' => 171600), array('wood' => 28500, 'clay' => 44000, 'iron' => 86500, 'crop' => 15500, 'time' => 176000),
|
||||
array('wood' => 29500, 'clay' => 45500, 'iron' => 88500, 'crop' => 16000, 'time' => 180400), array('wood' => 31000, 'clay' => 47000, 'iron' => 91500, 'crop' => 16500, 'time' => 184800), array('wood' => 31500, 'clay' => 48000, 'iron' => 94500, 'crop' => 17000, 'time' => 189200), array('wood' => 32500, 'clay' => 49500, 'iron' => 97000, 'crop' => 17500, 'time' => 193600),
|
||||
array('wood' => 33500, 'clay' => 51500, 'iron' => 100000, 'crop' => 18000, 'time' => 198000), array('wood' => 34000, 'clay' => 52500, 'iron' => 103000, 'crop' => 18500, 'time' => 202400), array('wood' => 35000, 'clay' => 54000, 'iron' => 105000, 'crop' => 19000, 'time' => 206800), array('wood' => 36000, 'clay' => 55000, 'iron' => 108500, 'crop' => 19500, 'time' => 211200),
|
||||
array('wood' => 37500, 'clay' => 57000, 'iron' => 111500, 'crop' => 20000, 'time' => 215600), array('wood' => 38000, 'clay' => 58000, 'iron' => 114500, 'crop' => 20500, 'time' => 220000), array('wood' => 39000, 'clay' => 59500, 'iron' => 117000, 'crop' => 21000, 'time' => 224400), array('wood' => 40000, 'clay' => 61500, 'iron' => 120000, 'crop' => 21500, 'time' => 228800),
|
||||
array('wood' => 40500, 'clay' => 62500, 'iron' => 123000, 'crop' => 22000, 'time' => 233200), array('wood' => 42000, 'clay' => 64000, 'iron' => 125500, 'crop' => 23000, 'time' => 237600), array('wood' => 43000, 'clay' => 65500, 'iron' => 128500, 'crop' => 23000, 'time' => 242000), array('wood' => 44000, 'clay' => 67000, 'iron' => 131500, 'crop' => 23500, 'time' => 246400),
|
||||
array('wood' => 44500, 'clay' => 69000, 'iron' => 134500, 'crop' => 24500, 'time' => 250800), array('wood' => 46000, 'clay' => 70000, 'iron' => 137000, 'crop' => 25000, 'time' => 255200), array('wood' => 47000, 'clay' => 71500, 'iron' => 140000, 'crop' => 25000, 'time' => 259600), array('wood' => 47500, 'clay' => 73000, 'iron' => 143000, 'crop' => 25500, 'time' => 264000),
|
||||
array('wood' => 49000, 'clay' => 74500, 'iron' => 145500, 'crop' => 26500, 'time' => 268400));
|
||||
$h75_full = array(array('wood' => 1100, 'clay' => 890, 'iron' => 660, 'crop' => 220, 'time' => 5200), array('wood' => 2700, 'clay' => 2200, 'iron' => 1700, 'crop' => 610, 'time' => 10400), array('wood' => 4500, 'clay' => 3600, 'iron' => 2700, 'crop' => 1000, 'time' => 15600), array('wood' => 6500, 'clay' => 5200, 'iron' => 3900, 'crop' => 1400, 'time' => 20800),
|
||||
array('wood' => 8500, 'clay' => 6900, 'iron' => 5200, 'crop' => 1900, 'time' => 26000), array('wood' => 10500, 'clay' => 8600, 'iron' => 6500, 'crop' => 2400, 'time' => 31200), array('wood' => 13000, 'clay' => 10500, 'iron' => 7800, 'crop' => 2900, 'time' => 36400), array('wood' => 15000, 'clay' => 12000, 'iron' => 9300, 'crop' => 3400, 'time' => 41600),
|
||||
array('wood' => 17500, 'clay' => 14000, 'iron' => 11000, 'crop' => 4000, 'time' => 46800), array('wood' => 20000, 'clay' => 16000, 'iron' => 12500, 'crop' => 4500, 'time' => 52000), array('wood' => 22500, 'clay' => 18000, 'iron' => 14000, 'crop' => 5100, 'time' => 57200), array('wood' => 25000, 'clay' => 20500, 'iron' => 15500, 'crop' => 5600, 'time' => 62400),
|
||||
array('wood' => 28500, 'clay' => 23000, 'iron' => 17000, 'crop' => 6300, 'time' => 67600), array('wood' => 31000, 'clay' => 25000, 'iron' => 18500, 'crop' => 6800, 'time' => 72800), array('wood' => 34000, 'clay' => 27500, 'iron' => 20500, 'crop' => 7500, 'time' => 78000), array('wood' => 36500, 'clay' => 29500, 'iron' => 22000, 'crop' => 8100, 'time' => 83200),
|
||||
array('wood' => 39500, 'clay' => 32000, 'iron' => 23500, 'crop' => 8700, 'time' => 88400), array('wood' => 42500, 'clay' => 34000, 'iron' => 26000, 'crop' => 9400, 'time' => 93600), array('wood' => 45500, 'clay' => 36500, 'iron' => 27500, 'crop' => 10000, 'time' => 98800), array('wood' => 48500, 'clay' => 39000, 'iron' => 29500, 'crop' => 10500, 'time' => 104000),
|
||||
array('wood' => 51500, 'clay' => 41500, 'iron' => 31000, 'crop' => 11500, 'time' => 109200), array('wood' => 54500, 'clay' => 44000, 'iron' => 33000, 'crop' => 12000, 'time' => 114400), array('wood' => 57500, 'clay' => 46500, 'iron' => 34500, 'crop' => 12500, 'time' => 119600), array('wood' => 60500, 'clay' => 49000, 'iron' => 36500, 'crop' => 13000, 'time' => 124800),
|
||||
array('wood' => 63500, 'clay' => 51500, 'iron' => 38500, 'crop' => 14500, 'time' => 130000), array('wood' => 67000, 'clay' => 54000, 'iron' => 40500, 'crop' => 15000, 'time' => 135200), array('wood' => 70000, 'clay' => 56500, 'iron' => 42500, 'crop' => 15500, 'time' => 140400), array('wood' => 73500, 'clay' => 59000, 'iron' => 44500, 'crop' => 16500, 'time' => 145600),
|
||||
array('wood' => 76500, 'clay' => 61500, 'iron' => 46500, 'crop' => 17000, 'time' => 150800), array('wood' => 80000, 'clay' => 64500, 'iron' => 48500, 'crop' => 17500, 'time' => 156000), array('wood' => 83500, 'clay' => 67500, 'iron' => 50500, 'crop' => 18500, 'time' => 161200), array('wood' => 87000, 'clay' => 70500, 'iron' => 52500, 'crop' => 19500, 'time' => 166400),
|
||||
array('wood' => 90500, 'clay' => 73000, 'iron' => 54500, 'crop' => 20000, 'time' => 171600), array('wood' => 94000, 'clay' => 75500, 'iron' => 56500, 'crop' => 21000, 'time' => 176800), array('wood' => 97000, 'clay' => 78500, 'iron' => 59000, 'crop' => 21500, 'time' => 182000), array('wood' => 100500, 'clay' => 81000, 'iron' => 61000, 'crop' => 22500, 'time' => 187200),
|
||||
array('wood' => 104000, 'clay' => 84000, 'iron' => 63000, 'crop' => 23000, 'time' => 192400), array('wood' => 107500, 'clay' => 87000, 'iron' => 65000, 'crop' => 23500, 'time' => 197600), array('wood' => 111000, 'clay' => 89500, 'iron' => 67500, 'crop' => 25000, 'time' => 202800), array('wood' => 114500, 'clay' => 92500, 'iron' => 69500, 'crop' => 25500, 'time' => 208000),
|
||||
array('wood' => 118000, 'clay' => 95500, 'iron' => 71500, 'crop' => 26500, 'time' => 213200), array('wood' => 122000, 'clay' => 98500, 'iron' => 78000, 'crop' => 27000, 'time' => 218400), array('wood' => 125500, 'clay' => 101000, 'iron' => 76500, 'crop' => 28000, 'time' => 223600), array('wood' => 129000, 'clay' => 104000, 'iron' => 78500, 'crop' => 28500, 'time' => 228800),
|
||||
array('wood' => 132500, 'clay' => 107000, 'iron' => 80500, 'crop' => 29500, 'time' => 234000), array('wood' => 136500, 'clay' => 110000, 'iron' => 83000, 'crop' => 30500, 'time' => 239200), array('wood' => 140500, 'clay' => 113500, 'iron' => 85000, 'crop' => 31500, 'time' => 244400), array('wood' => 144500, 'clay' => 116500, 'iron' => 87000, 'crop' => 32000, 'time' => 249600),
|
||||
array('wood' => 148000, 'clay' => 119500, 'iron' => 89500, 'crop' => 33000, 'time' => 254800), array('wood' => 151500, 'clay' => 122500, 'iron' => 92000, 'crop' => 33500, 'time' => 260000), array('wood' => 155500, 'clay' => 125500, 'iron' => 94500, 'crop' => 34500, 'time' => 265200), array('wood' => 159500, 'clay' => 128500, 'iron' => 96500, 'crop' => 35000, 'time' => 270400),
|
||||
array('wood' => 163000, 'clay' => 131500, 'iron' => 99000, 'crop' => 36500, 'time' => 275600), array('wood' => 167000, 'clay' => 134500, 'iron' => 101000, 'crop' => 37000, 'time' => 280800), array('wood' => 171000, 'clay' => 138000, 'iron' => 103500, 'crop' => 38000, 'time' => 286000), array('wood' => 174500, 'clay' => 141000, 'iron' => 105500, 'crop' => 38500, 'time' => 291200),
|
||||
array('wood' => 178500, 'clay' => 144000, 'iron' => 108500, 'crop' => 39500, 'time' => 296400), array('wood' => 182500, 'clay' => 147000, 'iron' => 110500, 'crop' => 40500, 'time' => 301600), array('wood' => 186500, 'clay' => 150500, 'iron' => 113000, 'crop' => 41500, 'time' => 306800), array('wood' => 190000, 'clay' => 153500, 'iron' => 115500, 'crop' => 42500, 'time' => 312000),
|
||||
array('wood' => 194500, 'clay' => 157000, 'iron' => 117500, 'crop' => 43000, 'time' => 317200));
|
||||
$h76_full = array(array('wood' => 1300, 'clay' => 1000, 'iron' => 2000, 'crop' => 330, 'time' => 6900), array('wood' => 3200, 'clay' => 2400, 'iron' => 4900, 'crop' => 850, 'time' => 13800), array('wood' => 5400, 'clay' => 4000, 'iron' => 8000, 'crop' => 1400, 'time' => 20700), array('wood' => 7700, 'clay' => 5700, 'iron' => 11500, 'crop' => 2000, 'time' => 27600),
|
||||
array('wood' => 10000, 'clay' => 7600, 'iron' => 15000, 'crop' => 2700, 'time' => 34500), array('wood' => 12500, 'clay' => 9700, 'iron' => 19500, 'crop' => 3400, 'time' => 41400), array('wood' => 15500, 'clay' => 11500, 'iron' => 23000, 'crop' => 4000, 'time' => 48300), array('wood' => 18000, 'clay' => 13500, 'iron' => 27500, 'crop' => 4800, 'time' => 55200),
|
||||
array('wood' => 21000, 'clay' => 16000, 'iron' => 31500, 'crop' => 5600, 'time' => 62100), array('wood' => 24000, 'clay' => 18000, 'iron' => 36000, 'crop' => 6300, 'time' => 69000), array('wood' => 27000, 'clay' => 20000, 'iron' => 40500, 'crop' => 7200, 'time' => 75900), array('wood' => 30000, 'clay' => 23000, 'iron' => 45500, 'crop' => 8000, 'time' => 82800),
|
||||
array('wood' => 33500, 'clay' => 25000, 'iron' => 50000, 'crop' => 8800, 'time' => 89700), array('wood' => 36500, 'clay' => 27500, 'iron' => 54500, 'crop' => 9600, 'time' => 96600), array('wood' => 40000, 'clay' => 30000, 'iron' => 59500, 'crop' => 10500, 'time' => 103500), array('wood' => 43000, 'clay' => 32500, 'iron' => 64500, 'crop' => 11500, 'time' => 110400),
|
||||
array('wood' => 47000, 'clay' => 35000, 'iron' => 70500, 'crop' => 12500, 'time' => 117300), array('wood' => 50500, 'clay' => 37500, 'iron' => 75000, 'crop' => 13500, 'time' => 124200), array('wood' => 54000, 'clay' => 40000, 'iron' => 80000, 'crop' => 14000, 'time' => 131100), array('wood' => 57500, 'clay' => 43000, 'iron' => 86000, 'crop' => 15000, 'time' => 138000),
|
||||
array('wood' => 61000, 'clay' => 45500, 'iron' => 91500, 'crop' => 16000, 'time' => 144900), array('wood' => 65000, 'clay' => 48500, 'iron' => 96500, 'crop' => 17000, 'time' => 151800), array('wood' => 68500, 'clay' => 51000, 'iron' => 102000, 'crop' => 18000, 'time' => 158700), array('wood' => 72000, 'clay' => 54000, 'iron' => 107500, 'crop' => 19000, 'time' => 165600),
|
||||
array('wood' => 75500, 'clay' => 56500, 'iron' => 113000, 'crop' => 20000, 'time' => 172500), array('wood' => 80000, 'clay' => 59500, 'iron' => 119000, 'crop' => 21000, 'time' => 179400), array('wood' => 83500, 'clay' => 62500, 'iron' => 125000, 'crop' => 22000, 'time' => 186300), array('wood' => 87500, 'clay' => 65500, 'iron' => 130500, 'crop' => 23000, 'time' => 193200),
|
||||
array('wood' => 91000, 'clay' => 68000, 'iron' => 136000, 'crop' => 24000, 'time' => 200100), array('wood' => 95500, 'clay' => 71000, 'iron' => 142500, 'crop' => 25000, 'time' => 207000), array('wood' => 99000, 'clay' => 74500, 'iron' => 148000, 'crop' => 26000, 'time' => 213900), array('wood' => 103000, 'clay' => 77000, 'iron' => 154000, 'crop' => 27000, 'time' => 220800),
|
||||
array('wood' => 107500, 'clay' => 80000, 'iron' => 160500, 'crop' => 28500, 'time' => 227700), array('wood' => 111500, 'clay' => 83000, 'iron' => 166500, 'crop' => 29500, 'time' => 234600), array('wood' => 115000, 'clay' => 86000, 'iron' => 173000, 'crop' => 30500, 'time' => 241500), array('wood' => 119500, 'clay' => 89500, 'iron' => 178500, 'crop' => 31500, 'time' => 248400),
|
||||
array('wood' => 123500, 'clay' => 92500, 'iron' => 184500, 'crop' => 32500, 'time' => 255300), array('wood' => 128000, 'clay' => 95500, 'iron' => 191500, 'crop' => 34000, 'time' => 262200), array('wood' => 132000, 'clay' => 98500, 'iron' => 198000, 'crop' => 35000, 'time' => 269100), array('wood' => 136000, 'clay' => 102000, 'iron' => 204000, 'crop' => 36000, 'time' => 276000),
|
||||
array('wood' => 140500, 'clay' => 105000, 'iron' => 210000, 'crop' => 37000, 'time' => 282900), array('wood' => 145000, 'clay' => 108500, 'iron' => 217000, 'crop' => 38000, 'time' => 289800), array('wood' => 149500, 'clay' => 111500, 'iron' => 223500, 'crop' => 39500, 'time' => 296700), array('wood' => 153500, 'clay' => 115000, 'iron' => 229500, 'crop' => 40500, 'time' => 303600),
|
||||
array('wood' => 158000, 'clay' => 118000, 'iron' => 236500, 'crop' => 41500, 'time' => 310500), array('wood' => 162500, 'clay' => 121500, 'iron' => 243000, 'crop' => 42500, 'time' => 317400), array('wood' => 167000, 'clay' => 124500, 'iron' => 249500, 'crop' => 44000, 'time' => 324300), array('wood' => 171500, 'clay' => 128000, 'iron' => 256000, 'crop' => 45500, 'time' => 331200),
|
||||
array('wood' => 176000, 'clay' => 131500, 'iron' => 263000, 'crop' => 46500, 'time' => 338100), array('wood' => 180000, 'clay' => 134500, 'iron' => 269500, 'crop' => 47500, 'time' => 345000), array('wood' => 185000, 'clay' => 138000, 'iron' => 276000, 'crop' => 48500, 'time' => 351900), array('wood' => 55000, 'clay' => 141500, 'iron' => 283000, 'crop' => 50000, 'time' => 358800),
|
||||
array('wood' => 55000, 'clay' => 145000, 'iron' => 290000, 'crop' => 51500, 'time' => 365700), array('wood' => 200000, 'clay' => 148500, 'iron' => 296500, 'crop' => 52500, 'time' => 372600), array('wood' => 203500, 'clay' => 151500, 'iron' => 298500, 'crop' => 53500, 'time' => 379500), array('wood' => 207500, 'clay' => 155000, 'iron' => 298500, 'crop' => 54500, 'time' => 386400),
|
||||
array('wood' => 212500, 'clay' => 158500, 'iron' => 298500, 'crop' => 56000, 'time' => 393300), array('wood' => 217000, 'clay' => 162000, 'iron' => 298500, 'crop' => 57500, 'time' => 400200), array('wood' => 222000, 'clay' => 165500, 'iron' => 298500, 'crop' => 58500, 'time' => 407100), array('wood' => 226000, 'clay' => 169500, 'iron' => 298500, 'crop' => 59500, 'time' => 414000),
|
||||
array('wood' => 231000, 'clay' => 173000, 'iron' => 298500, 'crop' => 61000, 'time' => 420900));
|
||||
//VIKING UNITS (TRIBE 9)
|
||||
$h81_full = array(array('wood' => 210, 'clay' => 170, 'iron' => 130, 'crop' => 70, 'time' => 1920), array('wood' => 560, 'clay' => 470, 'iron' => 340, 'crop' => 250, 'time' => 3840), array('wood' => 960, 'clay' => 770, 'iron' => 560, 'crop' => 420, 'time' => 5760), array('wood' => 1300, 'clay' => 1100, 'iron' => 820, 'crop' => 600, 'time' => 7680),
|
||||
array('wood' => 1800, 'clay' => 1400, 'iron' => 1100, 'crop' => 780, 'time' => 9600), array('wood' => 2200, 'clay' => 1900, 'iron' => 1300, 'crop' => 990, 'time' => 11520), array('wood' => 2700, 'clay' => 2200, 'iron' => 1600, 'crop' => 1200, 'time' => 13440), array('wood' => 3200, 'clay' => 2600, 'iron' => 1900, 'crop' => 1400, 'time' => 15360),
|
||||
array('wood' => 3700, 'clay' => 3100, 'iron' => 2200, 'crop' => 1600, 'time' => 17280), array('wood' => 4200, 'clay' => 3500, 'iron' => 2600, 'crop' => 1900, 'time' => 19200), array('wood' => 4700, 'clay' => 3900, 'iron' => 2900, 'crop' => 2100, 'time' => 21120), array('wood' => 5300, 'clay' => 4300, 'iron' => 3200, 'crop' => 2300, 'time' => 23040),
|
||||
array('wood' => 5900, 'clay' => 4800, 'iron' => 3500, 'crop' => 2600, 'time' => 24960), array('wood' => 6400, 'clay' => 5300, 'iron' => 3900, 'crop' => 2800, 'time' => 26880), array('wood' => 7000, 'clay' => 5800, 'iron' => 4200, 'crop' => 3200, 'time' => 28800), array('wood' => 7500, 'clay' => 6300, 'iron' => 4600, 'crop' => 3400, 'time' => 30720),
|
||||
array('wood' => 8100, 'clay' => 6700, 'iron' => 5000, 'crop' => 3600, 'time' => 32640), array('wood' => 8800, 'clay' => 7200, 'iron' => 5200, 'crop' => 3900, 'time' => 34560), array('wood' => 9200, 'clay' => 7700, 'iron' => 5600, 'crop' => 4200, 'time' => 36480), array('wood' => 10000, 'clay' => 8200, 'iron' => 6100, 'crop' => 4400, 'time' => 38400),
|
||||
array('wood' => 10500, 'clay' => 8900, 'iron' => 6500, 'crop' => 4700, 'time' => 40320), array('wood' => 11500, 'clay' => 9400, 'iron' => 6700, 'crop' => 5000, 'time' => 42240), array('wood' => 12000, 'clay' => 9800, 'iron' => 7200, 'crop' => 5300, 'time' => 44160), array('wood' => 12500, 'clay' => 10000, 'iron' => 7600, 'crop' => 5600, 'time' => 46080),
|
||||
array('wood' => 13000, 'clay' => 11000, 'iron' => 8000, 'crop' => 5800, 'time' => 48000), array('wood' => 14000, 'clay' => 11500, 'iron' => 8500, 'crop' => 6200, 'time' => 49920), array('wood' => 14500, 'clay' => 12000, 'iron' => 8900, 'crop' => 6400, 'time' => 51840), array('wood' => 15500, 'clay' => 13000, 'iron' => 9300, 'crop' => 6800, 'time' => 53760),
|
||||
array('wood' => 16000, 'clay' => 13000, 'iron' => 9500, 'crop' => 7100, 'time' => 55680), array('wood' => 16500, 'clay' => 13500, 'iron' => 10000, 'crop' => 7400, 'time' => 57600), array('wood' => 17000, 'clay' => 14500, 'iron' => 10500, 'crop' => 7700, 'time' => 59520), array('wood' => 18000, 'clay' => 15000, 'iron' => 11000, 'crop' => 7900, 'time' => 61440),
|
||||
array('wood' => 19000, 'clay' => 15500, 'iron' => 11500, 'crop' => 8300, 'time' => 63360), array('wood' => 19500, 'clay' => 16000, 'iron' => 11500, 'crop' => 8600, 'time' => 65280), array('wood' => 20000, 'clay' => 16500, 'iron' => 12000, 'crop' => 9000, 'time' => 67200), array('wood' => 21000, 'clay' => 17500, 'iron' => 12500, 'crop' => 9200, 'time' => 69120),
|
||||
array('wood' => 21500, 'clay' => 18000, 'iron' => 13000, 'crop' => 9600, 'time' => 71040), array('wood' => 22500, 'clay' => 18500, 'iron' => 13500, 'crop' => 9900, 'time' => 72960), array('wood' => 23000, 'clay' => 19000, 'iron' => 14000, 'crop' => 10500, 'time' => 74880), array('wood' => 23500, 'clay' => 19500, 'iron' => 14500, 'crop' => 10500, 'time' => 76800),
|
||||
array('wood' => 24500, 'clay' => 20500, 'iron' => 14500, 'crop' => 11000, 'time' => 78720), array('wood' => 25500, 'clay' => 21000, 'iron' => 15500, 'crop' => 11000, 'time' => 80640), array('wood' => 26000, 'clay' => 21500, 'iron' => 16000, 'crop' => 11500, 'time' => 82560), array('wood' => 26500, 'clay' => 22000, 'iron' => 16500, 'crop' => 11500, 'time' => 84480),
|
||||
array('wood' => 27500, 'clay' => 23000, 'iron' => 16500, 'crop' => 12500, 'time' => 86400), array('wood' => 28500, 'clay' => 23500, 'iron' => 17000, 'crop' => 13000, 'time' => 88320), array('wood' => 30000, 'clay' => 24000, 'iron' => 17500, 'crop' => 13000, 'time' => 90240), array('wood' => 30000, 'clay' => 24500, 'iron' => 18000, 'crop' => 13500, 'time' => 92160),
|
||||
array('wood' => 30500, 'clay' => 25500, 'iron' => 18500, 'crop' => 13500, 'time' => 94080), array('wood' => 31500, 'clay' => 26000, 'iron' => 19000, 'crop' => 14000, 'time' => 96000), array('wood' => 32500, 'clay' => 27000, 'iron' => 19500, 'crop' => 14500, 'time' => 97920), array('wood' => 33000, 'clay' => 27000, 'iron' => 20000, 'crop' => 14500, 'time' => 99840),
|
||||
array('wood' => 33500, 'clay' => 28000, 'iron' => 20500, 'crop' => 15000, 'time' => 101760), array('wood' => 34500, 'clay' => 28500, 'iron' => 21000, 'crop' => 15000, 'time' => 103680), array('wood' => 35500, 'clay' => 29500, 'iron' => 21500, 'crop' => 16000, 'time' => 105600), array('wood' => 36500, 'clay' => 30000, 'iron' => 22000, 'crop' => 16500, 'time' => 107520),
|
||||
array('wood' => 37000, 'clay' => 30500, 'iron' => 22500, 'crop' => 16500, 'time' => 109440), array('wood' => 37500, 'clay' => 31500, 'iron' => 23000, 'crop' => 17000, 'time' => 111360), array('wood' => 38500, 'clay' => 32000, 'iron' => 23500, 'crop' => 17000, 'time' => 113280), array('wood' => 39500, 'clay' => 32500, 'iron' => 24000, 'crop' => 17500, 'time' => 115200),
|
||||
array('wood' => 40500, 'clay' => 33000, 'iron' => 24500, 'crop' => 18000, 'time' => 117120));
|
||||
$h83_full = array(array('wood' => 290, 'clay' => 270, 'iron' => 370, 'crop' => 140, 'time' => 2800), array('wood' => 750, 'clay' => 700, 'iron' => 970, 'crop' => 390, 'time' => 5600), array('wood' => 1300, 'clay' => 1200, 'iron' => 1600, 'crop' => 660, 'time' => 8400), array('wood' => 1800, 'clay' => 1700, 'iron' => 2200, 'crop' => 960, 'time' => 11200),
|
||||
array('wood' => 2400, 'clay' => 2200, 'iron' => 3000, 'crop' => 1200, 'time' => 14000), array('wood' => 3000, 'clay' => 2800, 'iron' => 3700, 'crop' => 1600, 'time' => 16800), array('wood' => 3700, 'clay' => 3400, 'iron' => 4500, 'crop' => 1900, 'time' => 19600), array('wood' => 4300, 'clay' => 4000, 'iron' => 5400, 'crop' => 2300, 'time' => 22400),
|
||||
array('wood' => 4900, 'clay' => 4600, 'iron' => 6200, 'crop' => 2600, 'time' => 25200), array('wood' => 5700, 'clay' => 5200, 'iron' => 7000, 'crop' => 3000, 'time' => 28000), array('wood' => 6400, 'clay' => 5900, 'iron' => 7900, 'crop' => 3300, 'time' => 30800), array('wood' => 7200, 'clay' => 6600, 'iron' => 8800, 'crop' => 3700, 'time' => 33600),
|
||||
array('wood' => 7800, 'clay' => 7300, 'iron' => 9700, 'crop' => 4100, 'time' => 36400), array('wood' => 8600, 'clay' => 8000, 'iron' => 10500, 'crop' => 4500, 'time' => 39200), array('wood' => 9400, 'clay' => 8900, 'iron' => 12000, 'crop' => 4900, 'time' => 42000), array('wood' => 10000, 'clay' => 9300, 'iron' => 13000, 'crop' => 5300, 'time' => 44800),
|
||||
array('wood' => 11000, 'clay' => 10000, 'iron' => 13500, 'crop' => 5800, 'time' => 47600), array('wood' => 11500, 'clay' => 11000, 'iron' => 14500, 'crop' => 6100, 'time' => 50400), array('wood' => 12500, 'clay' => 12000, 'iron' => 16000, 'crop' => 6600, 'time' => 53200), array('wood' => 13500, 'clay' => 12500, 'iron' => 16500, 'crop' => 7000, 'time' => 56000),
|
||||
array('wood' => 14500, 'clay' => 13000, 'iron' => 17500, 'crop' => 7400, 'time' => 58800), array('wood' => 15000, 'clay' => 14000, 'iron' => 19000, 'crop' => 8000, 'time' => 61600), array('wood' => 16000, 'clay' => 15000, 'iron' => 20000, 'crop' => 8400, 'time' => 64400), array('wood' => 17000, 'clay' => 15500, 'iron' => 21000, 'crop' => 8800, 'time' => 67200),
|
||||
array('wood' => 18000, 'clay' => 16500, 'iron' => 22000, 'crop' => 9200, 'time' => 70000), array('wood' => 19000, 'clay' => 17500, 'iron' => 23500, 'crop' => 9600, 'time' => 72800), array('wood' => 20000, 'clay' => 18000, 'iron' => 24000, 'crop' => 10000, 'time' => 75600), array('wood' => 21000, 'clay' => 19000, 'iron' => 25500, 'crop' => 10500, 'time' => 78400),
|
||||
array('wood' => 21500, 'clay' => 20000, 'iron' => 27000, 'crop' => 11500, 'time' => 81200), array('wood' => 22000, 'clay' => 20500, 'iron' => 28000, 'crop' => 12000, 'time' => 84000), array('wood' => 23000, 'clay' => 21500, 'iron' => 29000, 'crop' => 12500, 'time' => 86800), array('wood' => 24000, 'clay' => 22500, 'iron' => 30000, 'crop' => 12500, 'time' => 89600),
|
||||
array('wood' => 25000, 'clay' => 23000, 'iron' => 31500, 'crop' => 13000, 'time' => 92400), array('wood' => 26000, 'clay' => 24000, 'iron' => 32500, 'crop' => 13500, 'time' => 95200), array('wood' => 27000, 'clay' => 25500, 'iron' => 34000, 'crop' => 14000, 'time' => 98000), array('wood' => 28000, 'clay' => 26000, 'iron' => 35000, 'crop' => 15000, 'time' => 100800),
|
||||
array('wood' => 29000, 'clay' => 27000, 'iron' => 36000, 'crop' => 15500, 'time' => 103600), array('wood' => 30000, 'clay' => 28000, 'iron' => 37500, 'crop' => 16000, 'time' => 106400), array('wood' => 31000, 'clay' => 28500, 'iron' => 39000, 'crop' => 16000, 'time' => 109200), array('wood' => 32000, 'clay' => 29500, 'iron' => 40000, 'crop' => 16500, 'time' => 112000),
|
||||
array('wood' => 33000, 'clay' => 31000, 'iron' => 41000, 'crop' => 17000, 'time' => 114800), array('wood' => 34500, 'clay' => 31500, 'iron' => 42500, 'crop' => 18000, 'time' => 117600), array('wood' => 35500, 'clay' => 32500, 'iron' => 43500, 'crop' => 18500, 'time' => 120400), array('wood' => 36500, 'clay' => 33500, 'iron' => 45000, 'crop' => 19000, 'time' => 123200),
|
||||
array('wood' => 37000, 'clay' => 34500, 'iron' => 46500, 'crop' => 19500, 'time' => 126000), array('wood' => 38000, 'clay' => 35500, 'iron' => 47500, 'crop' => 20000, 'time' => 128800), array('wood' => 39000, 'clay' => 36500, 'iron' => 48500, 'crop' => 20500, 'time' => 131600), array('wood' => 40000, 'clay' => 37000, 'iron' => 50000, 'crop' => 21000, 'time' => 134400),
|
||||
array('wood' => 41500, 'clay' => 38500, 'iron' => 51500, 'crop' => 21500, 'time' => 137200), array('wood' => 42500, 'clay' => 39000, 'iron' => 53000, 'crop' => 22500, 'time' => 140000), array('wood' => 43500, 'clay' => 40000, 'iron' => 54000, 'crop' => 23000, 'time' => 142800), array('wood' => 44500, 'clay' => 41500, 'iron' => 55500, 'crop' => 23000, 'time' => 145600),
|
||||
array('wood' => 45500, 'clay' => 42000, 'iron' => 57000, 'crop' => 23500, 'time' => 148400), array('wood' => 47000, 'clay' => 43000, 'iron' => 58000, 'crop' => 24500, 'time' => 151200), array('wood' => 48000, 'clay' => 44500, 'iron' => 59500, 'crop' => 25000, 'time' => 154000), array('wood' => 49000, 'clay' => 45000, 'iron' => 61000, 'crop' => 25500, 'time' => 156800),
|
||||
array('wood' => 50000, 'clay' => 46500, 'iron' => 62000, 'crop' => 26500, 'time' => 159600), array('wood' => 51000, 'clay' => 47500, 'iron' => 63500, 'crop' => 26500, 'time' => 162400), array('wood' => 52000, 'clay' => 48000, 'iron' => 65000, 'crop' => 27000, 'time' => 165200), array('wood' => 53000, 'clay' => 49500, 'iron' => 66000, 'crop' => 27500, 'time' => 168000),
|
||||
array('wood' => 54500, 'clay' => 50000, 'iron' => 67500, 'crop' => 28500, 'time' => 170800));
|
||||
$h84_full = array(array('wood' => 380, 'clay' => 440, 'iron' => 680, 'crop' => 180, 'time' => 3920), array('wood' => 990, 'clay' => 1100, 'iron' => 1800, 'crop' => 510, 'time' => 7840), array('wood' => 1600, 'clay' => 1900, 'iron' => 2900, 'crop' => 840, 'time' => 11760), array('wood' => 2400, 'clay' => 2800, 'iron' => 4000, 'crop' => 1200, 'time' => 15680),
|
||||
array('wood' => 3200, 'clay' => 3600, 'iron' => 5500, 'crop' => 1600, 'time' => 19600), array('wood' => 3900, 'clay' => 4500, 'iron' => 6800, 'crop' => 2000, 'time' => 23520), array('wood' => 4800, 'clay' => 5500, 'iron' => 8300, 'crop' => 2500, 'time' => 27440), array('wood' => 5600, 'clay' => 6500, 'iron' => 9900, 'crop' => 2900, 'time' => 31360),
|
||||
array('wood' => 6500, 'clay' => 7600, 'iron' => 11500, 'crop' => 3400, 'time' => 35280), array('wood' => 7500, 'clay' => 8500, 'iron' => 13000, 'crop' => 3800, 'time' => 39200), array('wood' => 8400, 'clay' => 9600, 'iron' => 14500, 'crop' => 4300, 'time' => 43120), array('wood' => 9400, 'clay' => 10500, 'iron' => 16000, 'crop' => 4700, 'time' => 47040),
|
||||
array('wood' => 10500, 'clay' => 12000, 'iron' => 18000, 'crop' => 5300, 'time' => 50960), array('wood' => 11500, 'clay' => 13000, 'iron' => 19500, 'crop' => 5700, 'time' => 54880), array('wood' => 12500, 'clay' => 14500, 'iron' => 22000, 'crop' => 6300, 'time' => 58800), array('wood' => 13500, 'clay' => 15000, 'iron' => 23500, 'crop' => 6900, 'time' => 62720),
|
||||
array('wood' => 14500, 'clay' => 16500, 'iron' => 25000, 'crop' => 7400, 'time' => 66640), array('wood' => 15000, 'clay' => 18000, 'iron' => 26500, 'crop' => 7900, 'time' => 70560), array('wood' => 16500, 'clay' => 19500, 'iron' => 29000, 'crop' => 8400, 'time' => 74480), array('wood' => 17500, 'clay' => 20500, 'iron' => 31000, 'crop' => 9000, 'time' => 78400),
|
||||
array('wood' => 19000, 'clay' => 21500, 'iron' => 32500, 'crop' => 9600, 'time' => 82320), array('wood' => 19500, 'clay' => 22500, 'iron' => 35000, 'crop' => 10000, 'time' => 86240), array('wood' => 21000, 'clay' => 24000, 'iron' => 36500, 'crop' => 11000, 'time' => 90160), array('wood' => 22000, 'clay' => 25500, 'iron' => 39000, 'crop' => 11500, 'time' => 94080),
|
||||
array('wood' => 23500, 'clay' => 27000, 'iron' => 40500, 'crop' => 12000, 'time' => 98000), array('wood' => 24500, 'clay' => 28000, 'iron' => 43000, 'crop' => 12500, 'time' => 101920), array('wood' => 26000, 'clay' => 29500, 'iron' => 44500, 'crop' => 13000, 'time' => 105840), array('wood' => 27000, 'clay' => 31000, 'iron' => 47000, 'crop' => 13500, 'time' => 109760),
|
||||
array('wood' => 28000, 'clay' => 32500, 'iron' => 49500, 'crop' => 14500, 'time' => 113680), array('wood' => 29000, 'clay' => 33500, 'iron' => 51000, 'crop' => 15000, 'time' => 117600), array('wood' => 30500, 'clay' => 35000, 'iron' => 53500, 'crop' => 16000, 'time' => 121520), array('wood' => 31500, 'clay' => 36500, 'iron' => 55000, 'crop' => 16500, 'time' => 125440),
|
||||
array('wood' => 33000, 'clay' => 38000, 'iron' => 57500, 'crop' => 17000, 'time' => 129360), array('wood' => 34000, 'clay' => 39000, 'iron' => 60000, 'crop' => 17500, 'time' => 133280), array('wood' => 35500, 'clay' => 41500, 'iron' => 62500, 'crop' => 18000, 'time' => 137200), array('wood' => 36500, 'clay' => 42500, 'iron' => 64000, 'crop' => 19000, 'time' => 141120),
|
||||
array('wood' => 38000, 'clay' => 44000, 'iron' => 66500, 'crop' => 19500, 'time' => 145040), array('wood' => 39500, 'clay' => 45500, 'iron' => 69000, 'crop' => 20500, 'time' => 148960), array('wood' => 40500, 'clay' => 47000, 'iron' => 71000, 'crop' => 21000, 'time' => 152880), array('wood' => 42000, 'clay' => 48000, 'iron' => 73500, 'crop' => 21500, 'time' => 156800),
|
||||
array('wood' => 43000, 'clay' => 50000, 'iron' => 75500, 'crop' => 22000, 'time' => 160720), array('wood' => 45000, 'clay' => 51500, 'iron' => 77500, 'crop' => 23000, 'time' => 164640), array('wood' => 46000, 'clay' => 53000, 'iron' => 80000, 'crop' => 23500, 'time' => 168560), array('wood' => 47500, 'clay' => 54500, 'iron' => 82500, 'crop' => 24000, 'time' => 172480),
|
||||
array('wood' => 49000, 'clay' => 56500, 'iron' => 85000, 'crop' => 25000, 'time' => 176400), array('wood' => 50000, 'clay' => 58000, 'iron' => 87500, 'crop' => 26000, 'time' => 180320), array('wood' => 51500, 'clay' => 59000, 'iron' => 89000, 'crop' => 26500, 'time' => 184240), array('wood' => 52500, 'clay' => 60500, 'iron' => 92500, 'crop' => 27000, 'time' => 188160),
|
||||
array('wood' => 54500, 'clay' => 62500, 'iron' => 94500, 'crop' => 27500, 'time' => 192080), array('wood' => 55500, 'clay' => 64000, 'iron' => 97000, 'crop' => 28500, 'time' => 196000), array('wood' => 57000, 'clay' => 65500, 'iron' => 99500, 'crop' => 29500, 'time' => 199920), array('wood' => 58500, 'clay' => 67500, 'iron' => 102000, 'crop' => 30000, 'time' => 203840),
|
||||
array('wood' => 59500, 'clay' => 69000, 'iron' => 104500, 'crop' => 30500, 'time' => 207760), array('wood' => 61500, 'clay' => 70000, 'iron' => 107000, 'crop' => 31500, 'time' => 211680), array('wood' => 62500, 'clay' => 72000, 'iron' => 109500, 'crop' => 32000, 'time' => 215600), array('wood' => 64000, 'clay' => 73500, 'iron' => 111500, 'crop' => 32500, 'time' => 219520),
|
||||
array('wood' => 65000, 'clay' => 75500, 'iron' => 114000, 'crop' => 34000, 'time' => 223440), array('wood' => 67000, 'clay' => 77000, 'iron' => 116500, 'crop' => 34500, 'time' => 227360), array('wood' => 68500, 'clay' => 78500, 'iron' => 119000, 'crop' => 35000, 'time' => 231280), array('wood' => 69500, 'clay' => 80500, 'iron' => 121500, 'crop' => 35500, 'time' => 235200),
|
||||
array('wood' => 71500, 'clay' => 82000, 'iron' => 124000, 'crop' => 36500, 'time' => 239120));
|
||||
$h85_full = array(array('wood' => 830, 'clay' => 760, 'iron' => 610, 'crop' => 170, 'time' => 5280), array('wood' => 2000, 'clay' => 1900, 'iron' => 1500, 'crop' => 470, 'time' => 10560), array('wood' => 3400, 'clay' => 3100, 'iron' => 2500, 'crop' => 770, 'time' => 15840), array('wood' => 4800, 'clay' => 4400, 'iron' => 3600, 'crop' => 1100, 'time' => 21120),
|
||||
array('wood' => 6300, 'clay' => 5900, 'iron' => 4800, 'crop' => 1400, 'time' => 26400), array('wood' => 7900, 'clay' => 7300, 'iron' => 6000, 'crop' => 1900, 'time' => 31680), array('wood' => 9800, 'clay' => 9100, 'iron' => 7200, 'crop' => 2200, 'time' => 36960), array('wood' => 11500, 'clay' => 10500, 'iron' => 8600, 'crop' => 2600, 'time' => 42240),
|
||||
array('wood' => 13000, 'clay' => 12000, 'iron' => 10000, 'crop' => 3100, 'time' => 47520), array('wood' => 15000, 'clay' => 14000, 'iron' => 11500, 'crop' => 3500, 'time' => 52800), array('wood' => 17000, 'clay' => 15500, 'iron' => 13000, 'crop' => 3900, 'time' => 58080), array('wood' => 19000, 'clay' => 17500, 'iron' => 14500, 'crop' => 4300, 'time' => 63360),
|
||||
array('wood' => 21000, 'clay' => 19500, 'iron' => 15500, 'crop' => 4800, 'time' => 68640), array('wood' => 23000, 'clay' => 21000, 'iron' => 17000, 'crop' => 5300, 'time' => 73920), array('wood' => 25500, 'clay' => 23500, 'iron' => 19000, 'crop' => 5800, 'time' => 79200), array('wood' => 27000, 'clay' => 25000, 'iron' => 20500, 'crop' => 6300, 'time' => 84480),
|
||||
array('wood' => 29500, 'clay' => 27000, 'iron' => 22000, 'crop' => 6700, 'time' => 89760), array('wood' => 31500, 'clay' => 29000, 'iron' => 24000, 'crop' => 7200, 'time' => 95040), array('wood' => 34000, 'clay' => 31000, 'iron' => 25500, 'crop' => 7700, 'time' => 100320), array('wood' => 36000, 'clay' => 33500, 'iron' => 27000, 'crop' => 8200, 'time' => 105600),
|
||||
array('wood' => 38500, 'clay' => 35500, 'iron' => 28500, 'crop' => 8900, 'time' => 110880), array('wood' => 40500, 'clay' => 37500, 'iron' => 30500, 'crop' => 9400, 'time' => 116160), array('wood' => 43000, 'clay' => 39500, 'iron' => 32000, 'crop' => 9800, 'time' => 121440), array('wood' => 45500, 'clay' => 42000, 'iron' => 34000, 'crop' => 10000, 'time' => 126720),
|
||||
array('wood' => 47500, 'clay' => 44000, 'iron' => 35500, 'crop' => 11000, 'time' => 132000), array('wood' => 50000, 'clay' => 46000, 'iron' => 37500, 'crop' => 11500, 'time' => 137280), array('wood' => 52500, 'clay' => 48500, 'iron' => 39000, 'crop' => 12000, 'time' => 142560), array('wood' => 55000, 'clay' => 50500, 'iron' => 41000, 'crop' => 13000, 'time' => 147840),
|
||||
array('wood' => 57500, 'clay' => 52500, 'iron' => 43000, 'crop' => 13000, 'time' => 153120), array('wood' => 60000, 'clay' => 55500, 'iron' => 45000, 'crop' => 13500, 'time' => 158400), array('wood' => 62500, 'clay' => 57500, 'iron' => 46500, 'crop' => 14500, 'time' => 163680), array('wood' => 65000, 'clay' => 60000, 'iron' => 48500, 'crop' => 15000, 'time' => 168960),
|
||||
array('wood' => 67500, 'clay' => 62000, 'iron' => 50500, 'crop' => 15500, 'time' => 174240), array('wood' => 70000, 'clay' => 64500, 'iron' => 52500, 'crop' => 16000, 'time' => 179520), array('wood' => 72500, 'clay' => 67000, 'iron' => 54500, 'crop' => 16500, 'time' => 184800), array('wood' => 75000, 'clay' => 69000, 'iron' => 56000, 'crop' => 17500, 'time' => 190080),
|
||||
array('wood' => 77500, 'clay' => 71500, 'iron' => 58000, 'crop' => 18000, 'time' => 195360), array('wood' => 80500, 'clay' => 74500, 'iron' => 60000, 'crop' => 18500, 'time' => 200640), array('wood' => 83000, 'clay' => 76500, 'iron' => 62500, 'crop' => 19000, 'time' => 205920), array('wood' => 85500, 'clay' => 79000, 'iron' => 64500, 'crop' => 19500, 'time' => 211200),
|
||||
array('wood' => 88500, 'clay' => 81500, 'iron' => 66000, 'crop' => 20500, 'time' => 216480), array('wood' => 91500, 'clay' => 84000, 'iron' => 72000, 'crop' => 21000, 'time' => 221760), array('wood' => 94000, 'clay' => 86500, 'iron' => 70500, 'crop' => 21500, 'time' => 227040), array('wood' => 96500, 'clay' => 89000, 'iron' => 72500, 'crop' => 22000, 'time' => 232320),
|
||||
array('wood' => 99000, 'clay' => 91500, 'iron' => 74500, 'crop' => 23000, 'time' => 237600), array('wood' => 102000, 'clay' => 94000, 'iron' => 76500, 'crop' => 23500, 'time' => 242880), array('wood' => 105000, 'clay' => 96500, 'iron' => 78500, 'crop' => 24000, 'time' => 248160), array('wood' => 108000, 'clay' => 99500, 'iron' => 80500, 'crop' => 24500, 'time' => 253440),
|
||||
array('wood' => 110500, 'clay' => 102000, 'iron' => 83000, 'crop' => 25500, 'time' => 258720), array('wood' => 113000, 'clay' => 104500, 'iron' => 85000, 'crop' => 26000, 'time' => 264000), array('wood' => 116000, 'clay' => 107000, 'iron' => 87000, 'crop' => 27000, 'time' => 269280), array('wood' => 119000, 'clay' => 109500, 'iron' => 89000, 'crop' => 27000, 'time' => 274560),
|
||||
array('wood' => 122000, 'clay' => 112500, 'iron' => 91500, 'crop' => 28000, 'time' => 279840), array('wood' => 125000, 'clay' => 115000, 'iron' => 93500, 'crop' => 28500, 'time' => 285120), array('wood' => 128000, 'clay' => 118000, 'iron' => 96000, 'crop' => 29500, 'time' => 290400), array('wood' => 130500, 'clay' => 120500, 'iron' => 97500, 'crop' => 30000, 'time' => 295680),
|
||||
array('wood' => 133500, 'clay' => 123000, 'iron' => 100000, 'crop' => 30500, 'time' => 300960), array('wood' => 136500, 'clay' => 125500, 'iron' => 102000, 'crop' => 31500, 'time' => 306240), array('wood' => 139500, 'clay' => 128500, 'iron' => 104500, 'crop' => 32000, 'time' => 311520), array('wood' => 142000, 'clay' => 131500, 'iron' => 107000, 'crop' => 32500, 'time' => 316800),
|
||||
array('wood' => 145500, 'clay' => 134000, 'iron' => 108500, 'crop' => 33000, 'time' => 322080));
|
||||
$h86_full = array(array('wood' => 1200, 'clay' => 1300, 'iron' => 1400, 'crop' => 320, 'time' => 6600), array('wood' => 2900, 'clay' => 3100, 'iron' => 3500, 'crop' => 830, 'time' => 13200), array('wood' => 4800, 'clay' => 5200, 'iron' => 5700, 'crop' => 1300, 'time' => 19800), array('wood' => 6900, 'clay' => 7400, 'iron' => 8200, 'crop' => 2000, 'time' => 26400),
|
||||
array('wood' => 9000, 'clay' => 9800, 'iron' => 10500, 'crop' => 2600, 'time' => 33000), array('wood' => 11500, 'clay' => 12500, 'iron' => 14000, 'crop' => 3300, 'time' => 39600), array('wood' => 14000, 'clay' => 15000, 'iron' => 16500, 'crop' => 3900, 'time' => 46200), array('wood' => 16000, 'clay' => 17500, 'iron' => 19500, 'crop' => 4600, 'time' => 52800),
|
||||
array('wood' => 19000, 'clay' => 20500, 'iron' => 23000, 'crop' => 5400, 'time' => 59400), array('wood' => 21500, 'clay' => 23500, 'iron' => 26000, 'crop' => 6100, 'time' => 66000), array('wood' => 24000, 'clay' => 26000, 'iron' => 29000, 'crop' => 6900, 'time' => 72600), array('wood' => 27000, 'clay' => 29500, 'iron' => 32500, 'crop' => 7700, 'time' => 79200),
|
||||
array('wood' => 30000, 'clay' => 32500, 'iron' => 36000, 'crop' => 8500, 'time' => 85800), array('wood' => 32500, 'clay' => 35500, 'iron' => 39500, 'crop' => 9300, 'time' => 92400), array('wood' => 36000, 'clay' => 38500, 'iron' => 43000, 'crop' => 10000, 'time' => 99000), array('wood' => 38500, 'clay' => 42000, 'iron' => 46500, 'crop' => 11000, 'time' => 105600),
|
||||
array('wood' => 42000, 'clay' => 45000, 'iron' => 50500, 'crop' => 12000, 'time' => 112200), array('wood' => 45000, 'clay' => 48500, 'iron' => 54000, 'crop' => 13000, 'time' => 118800), array('wood' => 48500, 'clay' => 52000, 'iron' => 57500, 'crop' => 14000, 'time' => 125400), array('wood' => 51500, 'clay' => 55500, 'iron' => 61500, 'crop' => 14500, 'time' => 132000),
|
||||
array('wood' => 54500, 'clay' => 59000, 'iron' => 65500, 'crop' => 15500, 'time' => 138600), array('wood' => 58000, 'clay' => 62500, 'iron' => 69500, 'crop' => 16500, 'time' => 145200), array('wood' => 61000, 'clay' => 66000, 'iron' => 73500, 'crop' => 17500, 'time' => 151800), array('wood' => 64500, 'clay' => 69500, 'iron' => 77500, 'crop' => 18000, 'time' => 158400),
|
||||
array('wood' => 67500, 'clay' => 73000, 'iron' => 81500, 'crop' => 19500, 'time' => 165000), array('wood' => 71500, 'clay' => 77000, 'iron' => 85500, 'crop' => 20500, 'time' => 171600), array('wood' => 74500, 'clay' => 80500, 'iron' => 90000, 'crop' => 21500, 'time' => 178200), array('wood' => 78500, 'clay' => 84500, 'iron' => 94000, 'crop' => 22000, 'time' => 184800),
|
||||
array('wood' => 81500, 'clay' => 88000, 'iron' => 98000, 'crop' => 23000, 'time' => 191400), array('wood' => 85500, 'clay' => 92000, 'iron' => 102500, 'crop' => 24500, 'time' => 198000), array('wood' => 88500, 'clay' => 96000, 'iron' => 106500, 'crop' => 25500, 'time' => 204600), array('wood' => 92500, 'clay' => 99500, 'iron' => 111000, 'crop' => 26000, 'time' => 211200),
|
||||
array('wood' => 96000, 'clay' => 103500, 'iron' => 115500, 'crop' => 27500, 'time' => 217800), array('wood' => 100000, 'clay' => 107500, 'iron' => 120000, 'crop' => 28500, 'time' => 224400), array('wood' => 103000, 'clay' => 111500, 'iron' => 124000, 'crop' => 29500, 'time' => 231000), array('wood' => 106500, 'clay' => 115500, 'iron' => 128500, 'crop' => 30500, 'time' => 237600),
|
||||
array('wood' => 110500, 'clay' => 119500, 'iron' => 132500, 'crop' => 31500, 'time' => 244200), array('wood' => 114000, 'clay' => 123500, 'iron' => 137500, 'crop' => 33000, 'time' => 250800), array('wood' => 118000, 'clay' => 127500, 'iron' => 142000, 'crop' => 34000, 'time' => 257400), array('wood' => 122000, 'clay' => 132000, 'iron' => 146500, 'crop' => 34500, 'time' => 264000),
|
||||
array('wood' => 125500, 'clay' => 136000, 'iron' => 151000, 'crop' => 36000, 'time' => 270600), array('wood' => 130000, 'clay' => 140000, 'iron' => 156000, 'crop' => 37000, 'time' => 277200), array('wood' => 133500, 'clay' => 144000, 'iron' => 160500, 'crop' => 38000, 'time' => 283800), array('wood' => 137500, 'clay' => 148500, 'iron' => 165000, 'crop' => 39000, 'time' => 290400),
|
||||
array('wood' => 141000, 'clay' => 152500, 'iron' => 170000, 'crop' => 40500, 'time' => 297000), array('wood' => 145500, 'clay' => 157000, 'iron' => 174500, 'crop' => 41500, 'time' => 303600), array('wood' => 149000, 'clay' => 161000, 'iron' => 179000, 'crop' => 42500, 'time' => 310200), array('wood' => 153500, 'clay' => 165500, 'iron' => 184000, 'crop' => 44000, 'time' => 316800),
|
||||
array('wood' => 157000, 'clay' => 170000, 'iron' => 189000, 'crop' => 45000, 'time' => 323400), array('wood' => 161000, 'clay' => 174000, 'iron' => 193500, 'crop' => 46000, 'time' => 330000), array('wood' => 165000, 'clay' => 178500, 'iron' => 198500, 'crop' => 47000, 'time' => 336600), array('wood' => 49500, 'clay' => 183000, 'iron' => 203500, 'crop' => 48500, 'time' => 343200),
|
||||
array('wood' => 49500, 'clay' => 187500, 'iron' => 208000, 'crop' => 50000, 'time' => 349800), array('wood' => 178500, 'clay' => 192000, 'iron' => 213000, 'crop' => 50500, 'time' => 356400), array('wood' => 182000, 'clay' => 196000, 'iron' => 214500, 'crop' => 52000, 'time' => 363000), array('wood' => 185500, 'clay' => 200500, 'iron' => 214500, 'crop' => 53000, 'time' => 369600),
|
||||
array('wood' => 190000, 'clay' => 205000, 'iron' => 214500, 'crop' => 54000, 'time' => 376200), array('wood' => 194000, 'clay' => 209500, 'iron' => 214500, 'crop' => 55500, 'time' => 382800), array('wood' => 198500, 'clay' => 214000, 'iron' => 214500, 'crop' => 57000, 'time' => 389400), array('wood' => 202000, 'clay' => 219000, 'iron' => 214500, 'crop' => 58000, 'time' => 396000),
|
||||
array('wood' => 206500, 'clay' => 223500, 'iron' => 214500, 'crop' => 59000, 'time' => 402600));
|
||||
|
||||
?>
|
||||
|
||||
@@ -105,4 +105,71 @@ $ab46=array(1=>array('wood'=>1085,'clay'=>1235,'iron'=>1185,'crop'=>240,'time'=>
|
||||
$ab47=array(1=>array('wood'=>2365,'clay'=>735,'iron'=>885,'crop'=>215,'time'=>14400),array('wood'=>4120,'clay'=>1275,'iron'=>1540,'crop'=>375,'time'=>25072),array('wood'=>5700,'clay'=>1765,'iron'=>2125,'crop'=>520,'time'=>34678),array('wood'=>7175,'clay'=>2225,'iron'=>2680,'crop'=>655,'time'=>43653),array('wood'=>8575,'clay'=>2660,'iron'=>3200,'crop'=>785,'time'=>52184),array('wood'=>9925,'clay'=>3075,'iron'=>3705,'crop'=>910,'time'=>60379),array('wood'=>11225,'clay'=>3480,'iron'=>4190,'crop'=>1030,'time'=>68303),array('wood'=>12490,'clay'=>3870,'iron'=>4660,'crop'=>1145,'time'=>76004),array('wood'=>13725,'clay'=>4255,'iron'=>5125,'crop'=>1255,'time'=>83513),array('wood'=>14935,'clay'=>4625,'iron'=>5575,'crop'=>1365,'time'=>90858),array('wood'=>16115,'clay'=>4995,'iron'=>6015,'crop'=>1475,'time'=>98057),array('wood'=>17280,'clay'=>5355,'iron'=>6450,'crop'=>1580,'time'=>105125),array('wood'=>18420,'clay'=>5710,'iron'=>6875,'crop'=>1685,'time'=>112077),array('wood'=>19545,'clay'=>6055,'iron'=>7295,'crop'=>1790,'time'=>118923),array('wood'=>20655,'clay'=>6400,'iron'=>7710,'crop'=>1890,'time'=>125671),array('wood'=>21750,'clay'=>6740,'iron'=>8115,'crop'=>1990,'time'=>132330),array('wood'=>22830,'clay'=>7075,'iron'=>8520,'crop'=>2090,'time'=>138906),array('wood'=>23900,'clay'=>7405,'iron'=>8920,'crop'=>2190,'time'=>145405),array('wood'=>24955,'clay'=>7730,'iron'=>9315,'crop'=>2285,'time'=>151833),array('wood'=>26000,'clay'=>8055,'iron'=>9705,'crop'=>2380,'time'=>158193));
|
||||
$ab48=array(1=>array('wood'=>1065,'clay'=>1415,'iron'=>735,'crop'=>95,'time'=>28800),array('wood'=>1855,'clay'=>2465,'iron'=>1275,'crop'=>170,'time'=>50144),array('wood'=>2570,'clay'=>3410,'iron'=>1765,'crop'=>235,'time'=>69357),array('wood'=>3235,'clay'=>4295,'iron'=>2225,'crop'=>295,'time'=>87305),array('wood'=>3865,'clay'=>5135,'iron'=>2660,'crop'=>350,'time'=>104368),array('wood'=>4470,'clay'=>5940,'iron'=>3075,'crop'=>405,'time'=>120757),array('wood'=>5060,'clay'=>6720,'iron'=>3480,'crop'=>460,'time'=>136606),array('wood'=>5630,'clay'=>7475,'iron'=>3870,'crop'=>510,'time'=>152007),array('wood'=>6185,'clay'=>8215,'iron'=>4255,'crop'=>560,'time'=>167027),array('wood'=>6730,'clay'=>8940,'iron'=>4625,'crop'=>610,'time'=>181716),array('wood'=>7265,'clay'=>9645,'iron'=>4995,'crop'=>660,'time'=>196113),array('wood'=>7785,'clay'=>10340,'iron'=>5355,'crop'=>705,'time'=>210251),array('wood'=>8300,'clay'=>11025,'iron'=>5710,'crop'=>750,'time'=>224154),array('wood'=>8810,'clay'=>11700,'iron'=>6055,'crop'=>800,'time'=>237845),array('wood'=>9310,'clay'=>12365,'iron'=>6400,'crop'=>845,'time'=>251342),array('wood'=>9800,'clay'=>13020,'iron'=>6740,'crop'=>890,'time'=>264660),array('wood'=>10290,'clay'=>13665,'iron'=>7075,'crop'=>930,'time'=>277812),array('wood'=>10770,'clay'=>14305,'iron'=>7405,'crop'=>975,'time'=>290811),array('wood'=>11245,'clay'=>14935,'iron'=>7730,'crop'=>1020,'time'=>303665),array('wood'=>11720,'clay'=>15565,'iron'=>8055,'crop'=>1060,'time'=>316385));
|
||||
|
||||
?>
|
||||
|
||||
//NEW TRIBE RESEARCHES (TRIBE 6-9)
|
||||
$r52=array('wood'=>1120,'clay'=>700,'iron'=>360,'crop'=>400,'time'=>5880);
|
||||
$r53=array('wood'=>1840,'clay'=>1580,'iron'=>1720,'crop'=>430,'time'=>9000);
|
||||
$r54=array('wood'=>2020,'clay'=>1500,'iron'=>2840,'crop'=>460,'time'=>9240);
|
||||
$r55=array('wood'=>2800,'clay'=>2340,'iron'=>5080,'crop'=>1000,'time'=>10680);
|
||||
$r56=array('wood'=>4060,'clay'=>3100,'iron'=>6600,'crop'=>1240,'time'=>12360);
|
||||
$r57=array('wood'=>6460,'clay'=>1420,'iron'=>3080,'crop'=>580,'time'=>15000);
|
||||
$r58=array('wood'=>5800,'clay'=>5220,'iron'=>5160,'crop'=>520,'time'=>28800);
|
||||
$r59=array('wood'=>19210,'clay'=>14005,'iron'=>20385,'crop'=>16680,'time'=>24475);
|
||||
$r62=array('wood'=>790,'clay'=>500,'iron'=>1360,'crop'=>520,'time'=>6150);
|
||||
$r63=array('wood'=>1120,'clay'=>820,'iron'=>1960,'crop'=>640,'time'=>7080);
|
||||
$r64=array('wood'=>1120,'clay'=>700,'iron'=>360,'crop'=>400,'time'=>5880);
|
||||
$r65=array('wood'=>2260,'clay'=>1420,'iron'=>2440,'crop'=>880,'time'=>9480);
|
||||
$r66=array('wood'=>2800,'clay'=>2340,'iron'=>5080,'crop'=>1240,'time'=>11160);
|
||||
$r67=array('wood'=>6070,'clay'=>2400,'iron'=>2920,'crop'=>640,'time'=>16200);
|
||||
$r68=array('wood'=>5980,'clay'=>6140,'iron'=>5480,'crop'=>760,'time'=>28800);
|
||||
$r69=array('wood'=>17560,'clay'=>25370,'iron'=>27500,'crop'=>25380,'time'=>24475);
|
||||
$r72=array('wood'=>970,'clay'=>480,'iron'=>2160,'crop'=>430,'time'=>7650);
|
||||
$r73=array('wood'=>880,'clay'=>900,'iron'=>3400,'crop'=>550,'time'=>8400);
|
||||
$r74=array('wood'=>1210,'clay'=>700,'iron'=>480,'crop'=>610,'time'=>5880);
|
||||
$r75=array('wood'=>3430,'clay'=>1880,'iron'=>2840,'crop'=>820,'time'=>9600);
|
||||
$r76=array('wood'=>4060,'clay'=>2080,'iron'=>8160,'crop'=>1150,'time'=>12150);
|
||||
$r77=array('wood'=>5980,'clay'=>2280,'iron'=>3320,'crop'=>640,'time'=>15600);
|
||||
$r78=array('wood'=>7300,'clay'=>5060,'iron'=>5080,'crop'=>640,'time'=>28800);
|
||||
$r79=array('wood'=>17275,'clay'=>15560,'iron'=>29315,'crop'=>16540,'time'=>24475);
|
||||
$r82=array('wood'=>1030,'clay'=>540,'iron'=>560,'crop'=>430,'time'=>5160);
|
||||
$r83=array('wood'=>970,'clay'=>640,'iron'=>1680,'crop'=>580,'time'=>6000);
|
||||
$r84=array('wood'=>1240,'clay'=>980,'iron'=>2920,'crop'=>700,'time'=>7680);
|
||||
$r85=array('wood'=>2590,'clay'=>1620,'iron'=>2640,'crop'=>670,'time'=>9720);
|
||||
$r86=array('wood'=>3640,'clay'=>2660,'iron'=>5920,'crop'=>1120,'time'=>11700);
|
||||
$r87=array('wood'=>6160,'clay'=>1760,'iron'=>3720,'crop'=>610,'time'=>15900);
|
||||
$r88=array('wood'=>5680,'clay'=>5500,'iron'=>5320,'crop'=>640,'time'=>28800);
|
||||
$r89=array('wood'=>18490,'clay'=>14815,'iron'=>23135,'crop'=>19035,'time'=>24475);
|
||||
//NEW TRIBE UPGRADES (TRIBE 6-9)
|
||||
$ab51=array(1=>array('wood'=>1010,'clay'=>660,'iron'=>480,'crop'=>440,'time'=>5160),array('wood'=>1760,'clay'=>1150,'iron'=>835,'crop'=>765,'time'=>8984),array('wood'=>2430,'clay'=>1590,'iron'=>1155,'crop'=>1060,'time'=>12426),array('wood'=>3060,'clay'=>2000,'iron'=>1455,'crop'=>1335,'time'=>15642),array('wood'=>3660,'clay'=>2390,'iron'=>1740,'crop'=>1595,'time'=>18699),array('wood'=>4235,'clay'=>2765,'iron'=>2015,'crop'=>1845,'time'=>21636),array('wood'=>4790,'clay'=>3130,'iron'=>2275,'crop'=>2085,'time'=>24475),array('wood'=>5330,'clay'=>3485,'iron'=>2535,'crop'=>2320,'time'=>27235),array('wood'=>5860,'clay'=>3830,'iron'=>2785,'crop'=>2550,'time'=>29926),array('wood'=>6375,'clay'=>4165,'iron'=>3030,'crop'=>2775,'time'=>32557),array('wood'=>6880,'clay'=>4495,'iron'=>3270,'crop'=>2995,'time'=>35137),array('wood'=>7375,'clay'=>4820,'iron'=>3505,'crop'=>3210,'time'=>37670),array('wood'=>7860,'clay'=>5135,'iron'=>3735,'crop'=>3425,'time'=>40161),array('wood'=>8340,'clay'=>5450,'iron'=>3965,'crop'=>3635,'time'=>42614),array('wood'=>8815,'clay'=>5760,'iron'=>4190,'crop'=>3840,'time'=>45032),array('wood'=>9280,'clay'=>6065,'iron'=>4410,'crop'=>4045,'time'=>47418),array('wood'=>9745,'clay'=>6365,'iron'=>4630,'crop'=>4245,'time'=>49775),array('wood'=>10200,'clay'=>6665,'iron'=>4845,'crop'=>4445,'time'=>52104),array('wood'=>10650,'clay'=>6960,'iron'=>5060,'crop'=>4640,'time'=>54407),array('wood'=>11095,'clay'=>7250,'iron'=>5275,'crop'=>4835,'time'=>56686));
|
||||
$ab52=array(1=>array('wood'=>645,'clay'=>575,'iron'=>170,'crop'=>220,'time'=>5880),array('wood'=>1125,'clay'=>1000,'iron'=>295,'crop'=>385,'time'=>10238),array('wood'=>1555,'clay'=>1385,'iron'=>410,'crop'=>530,'time'=>14160),array('wood'=>1955,'clay'=>1745,'iron'=>515,'crop'=>665,'time'=>17825),array('wood'=>2335,'clay'=>2085,'iron'=>615,'crop'=>795,'time'=>21309),array('wood'=>2705,'clay'=>2410,'iron'=>715,'crop'=>920,'time'=>24655),array('wood'=>3060,'clay'=>2725,'iron'=>805,'crop'=>1045,'time'=>27890),array('wood'=>3405,'clay'=>3035,'iron'=>895,'crop'=>1160,'time'=>31035),array('wood'=>3740,'clay'=>3335,'iron'=>985,'crop'=>1275,'time'=>34101),array('wood'=>4070,'clay'=>3630,'iron'=>1075,'crop'=>1390,'time'=>37100),array('wood'=>4390,'clay'=>3915,'iron'=>1160,'crop'=>1500,'time'=>40040),array('wood'=>4710,'clay'=>4200,'iron'=>1240,'crop'=>1605,'time'=>42926),array('wood'=>5020,'clay'=>4475,'iron'=>1325,'crop'=>1710,'time'=>45765),array('wood'=>5325,'clay'=>4750,'iron'=>1405,'crop'=>1815,'time'=>48560),array('wood'=>5630,'clay'=>5020,'iron'=>1485,'crop'=>1920,'time'=>51316),array('wood'=>5925,'clay'=>5285,'iron'=>1560,'crop'=>2020,'time'=>54035),array('wood'=>6220,'clay'=>5545,'iron'=>1640,'crop'=>2120,'time'=>56720),array('wood'=>6515,'clay'=>5805,'iron'=>1715,'crop'=>2220,'time'=>59374),array('wood'=>6800,'clay'=>6065,'iron'=>1790,'crop'=>2320,'time'=>61998),array('wood'=>7085,'clay'=>6315,'iron'=>1870,'crop'=>2415,'time'=>64595));
|
||||
$ab53=array(1=>array('wood'=>2130,'clay'=>2690,'iron'=>1530,'crop'=>475,'time'=>9000),array('wood'=>3710,'clay'=>4685,'iron'=>2665,'crop'=>825,'time'=>15670),array('wood'=>5130,'clay'=>6480,'iron'=>3685,'crop'=>1145,'time'=>21674),array('wood'=>6455,'clay'=>8155,'iron'=>4640,'crop'=>1440,'time'=>27283),array('wood'=>7720,'clay'=>9750,'iron'=>5545,'crop'=>1720,'time'=>32615),array('wood'=>8930,'clay'=>11280,'iron'=>6415,'crop'=>1990,'time'=>37737),array('wood'=>10105,'clay'=>12760,'iron'=>7255,'crop'=>2255,'time'=>42689),array('wood'=>11240,'clay'=>14200,'iron'=>8075,'crop'=>2505,'time'=>47502),array('wood'=>12355,'clay'=>15600,'iron'=>8875,'crop'=>2755,'time'=>52196),array('wood'=>13440,'clay'=>16975,'iron'=>9655,'crop'=>2995,'time'=>56786),array('wood'=>14505,'clay'=>18320,'iron'=>10420,'crop'=>3235,'time'=>61285),array('wood'=>15550,'clay'=>19640,'iron'=>11170,'crop'=>3470,'time'=>65703),array('wood'=>16580,'clay'=>20935,'iron'=>11910,'crop'=>3695,'time'=>70048),array('wood'=>17590,'clay'=>22215,'iron'=>12635,'crop'=>3925,'time'=>74327),array('wood'=>18590,'clay'=>23475,'iron'=>13355,'crop'=>4145,'time'=>78544),array('wood'=>19575,'clay'=>24720,'iron'=>14060,'crop'=>4365,'time'=>82706),array('wood'=>20545,'clay'=>25950,'iron'=>14760,'crop'=>4580,'time'=>86816),array('wood'=>21510,'clay'=>27165,'iron'=>15450,'crop'=>4795,'time'=>90878),array('wood'=>22460,'clay'=>28365,'iron'=>16130,'crop'=>5010,'time'=>94895),array('wood'=>23400,'clay'=>29550,'iron'=>16810,'crop'=>5220,'time'=>98870));
|
||||
$ab54=array(1=>array('wood'=>2340,'clay'=>2550,'iron'=>2510,'crop'=>510,'time'=>9240),array('wood'=>4075,'clay'=>4440,'iron'=>4370,'crop'=>890,'time'=>16088),array('wood'=>5635,'clay'=>6140,'iron'=>6045,'crop'=>1230,'time'=>22252),array('wood'=>7095,'clay'=>7730,'iron'=>7610,'crop'=>1545,'time'=>28010),array('wood'=>8480,'clay'=>9240,'iron'=>9095,'crop'=>1850,'time'=>33485),array('wood'=>9810,'clay'=>10690,'iron'=>10525,'crop'=>2140,'time'=>38743),array('wood'=>11100,'clay'=>12095,'iron'=>11905,'crop'=>2420,'time'=>43828),array('wood'=>12350,'clay'=>13460,'iron'=>13250,'crop'=>2690,'time'=>48769),array('wood'=>13570,'clay'=>14790,'iron'=>14555,'crop'=>2960,'time'=>53588),array('wood'=>14765,'clay'=>16090,'iron'=>15835,'crop'=>3220,'time'=>58300),array('wood'=>15935,'clay'=>17365,'iron'=>17090,'crop'=>3475,'time'=>62920),array('wood'=>17085,'clay'=>18615,'iron'=>18325,'crop'=>3725,'time'=>67455),array('wood'=>18215,'clay'=>19845,'iron'=>19535,'crop'=>3970,'time'=>71916),array('wood'=>19325,'clay'=>21060,'iron'=>20730,'crop'=>4210,'time'=>76309),array('wood'=>20420,'clay'=>22255,'iron'=>21905,'crop'=>4450,'time'=>80639),array('wood'=>21505,'clay'=>23435,'iron'=>23065,'crop'=>4685,'time'=>84912),array('wood'=>22570,'clay'=>24600,'iron'=>24210,'crop'=>4920,'time'=>89131),array('wood'=>23630,'clay'=>25750,'iron'=>25345,'crop'=>5150,'time'=>93302),array('wood'=>24675,'clay'=>26885,'iron'=>26465,'crop'=>5375,'time'=>97426),array('wood'=>25705,'clay'=>28015,'iron'=>27575,'crop'=>5605,'time'=>101507));
|
||||
$ab55=array(1=>array('wood'=>3250,'clay'=>4020,'iron'=>4470,'crop'=>1140,'time'=>10680),array('wood'=>5660,'clay'=>7000,'iron'=>7785,'crop'=>1985,'time'=>18595),array('wood'=>7825,'clay'=>9680,'iron'=>10765,'crop'=>2745,'time'=>25720),array('wood'=>9850,'clay'=>12185,'iron'=>13550,'crop'=>3455,'time'=>32376),array('wood'=>11780,'clay'=>14570,'iron'=>16200,'crop'=>4130,'time'=>38703),array('wood'=>13625,'clay'=>16855,'iron'=>18745,'crop'=>4780,'time'=>44781),array('wood'=>15415,'clay'=>19070,'iron'=>21200,'crop'=>5405,'time'=>50658),array('wood'=>17155,'clay'=>21220,'iron'=>23595,'crop'=>6015,'time'=>56369),array('wood'=>18850,'clay'=>23315,'iron'=>25925,'crop'=>6610,'time'=>61939),array('wood'=>20505,'clay'=>25365,'iron'=>28205,'crop'=>7195,'time'=>67386),array('wood'=>22130,'clay'=>27375,'iron'=>30440,'crop'=>7765,'time'=>72725),array('wood'=>23725,'clay'=>29345,'iron'=>32635,'crop'=>8320,'time'=>77968),array('wood'=>25295,'clay'=>31290,'iron'=>34790,'crop'=>8875,'time'=>83124),array('wood'=>26840,'clay'=>33200,'iron'=>36915,'crop'=>9415,'time'=>88201),array('wood'=>28365,'clay'=>35085,'iron'=>39010,'crop'=>9950,'time'=>93206),array('wood'=>29865,'clay'=>36940,'iron'=>41075,'crop'=>10475,'time'=>98145),array('wood'=>31350,'clay'=>38780,'iron'=>43120,'crop'=>10995,'time'=>103022),array('wood'=>32815,'clay'=>40590,'iron'=>45135,'crop'=>11510,'time'=>107842),array('wood'=>34270,'clay'=>42385,'iron'=>47130,'crop'=>12020,'time'=>112609),array('wood'=>35705,'clay'=>44160,'iron'=>49105,'crop'=>12525,'time'=>117326));
|
||||
$ab56=array(1=>array('wood'=>4720,'clay'=>5350,'iron'=>5800,'crop'=>1420,'time'=>12360),array('wood'=>8220,'clay'=>9315,'iron'=>10100,'crop'=>2470,'time'=>21520),array('wood'=>11365,'clay'=>12885,'iron'=>13970,'crop'=>3420,'time'=>29766),array('wood'=>14310,'clay'=>16220,'iron'=>17580,'crop'=>4305,'time'=>37469),array('wood'=>17105,'clay'=>19390,'iron'=>21020,'crop'=>5145,'time'=>44791),array('wood'=>19790,'clay'=>22430,'iron'=>24320,'crop'=>5955,'time'=>51825),array('wood'=>22390,'clay'=>25375,'iron'=>27510,'crop'=>6735,'time'=>58627),array('wood'=>24910,'clay'=>28235,'iron'=>30615,'crop'=>7495,'time'=>65236),array('wood'=>27375,'clay'=>31030,'iron'=>33635,'crop'=>8235,'time'=>71682),array('wood'=>29780,'clay'=>33755,'iron'=>36595,'crop'=>8960,'time'=>77986),array('wood'=>32140,'clay'=>36430,'iron'=>39495,'crop'=>9670,'time'=>84165),array('wood'=>34460,'clay'=>39055,'iron'=>42340,'crop'=>10365,'time'=>90233),array('wood'=>36735,'clay'=>41640,'iron'=>45140,'crop'=>11050,'time'=>96200),array('wood'=>38980,'clay'=>44185,'iron'=>47900,'crop'=>11725,'time'=>102075),array('wood'=>41190,'clay'=>46690,'iron'=>50620,'crop'=>12395,'time'=>107868),array('wood'=>43375,'clay'=>49165,'iron'=>53300,'crop'=>13050,'time'=>113583),array('wood'=>45530,'clay'=>51610,'iron'=>55950,'crop'=>13700,'time'=>119228),array('wood'=>47660,'clay'=>54020,'iron'=>58565,'crop'=>14340,'time'=>124806),array('wood'=>49765,'clay'=>56410,'iron'=>61155,'crop'=>14970,'time'=>130323),array('wood'=>51850,'clay'=>58775,'iron'=>63715,'crop'=>15600,'time'=>135782));
|
||||
$ab57=array(1=>array('wood'=>2505,'clay'=>805,'iron'=>905,'crop'=>215,'time'=>15000),array('wood'=>4365,'clay'=>1400,'iron'=>1580,'crop'=>375,'time'=>26117),array('wood'=>6035,'clay'=>1935,'iron'=>2185,'crop'=>520,'time'=>36123),array('wood'=>7600,'clay'=>2435,'iron'=>2750,'crop'=>655,'time'=>45471),array('wood'=>9085,'clay'=>2910,'iron'=>3285,'crop'=>785,'time'=>54358),array('wood'=>10510,'clay'=>3370,'iron'=>3800,'crop'=>910,'time'=>62894),array('wood'=>11890,'clay'=>3810,'iron'=>4300,'crop'=>1030,'time'=>71149),array('wood'=>13230,'clay'=>4240,'iron'=>4785,'crop'=>1145,'time'=>79170),array('wood'=>14540,'clay'=>4660,'iron'=>5260,'crop'=>1255,'time'=>86993),array('wood'=>15815,'clay'=>5070,'iron'=>5720,'crop'=>1365,'time'=>94644),array('wood'=>17070,'clay'=>5470,'iron'=>6175,'crop'=>1475,'time'=>102142),array('wood'=>18300,'clay'=>5865,'iron'=>6620,'crop'=>1580,'time'=>109506),array('wood'=>19510,'clay'=>6250,'iron'=>7055,'crop'=>1685,'time'=>116747),array('wood'=>20700,'clay'=>6635,'iron'=>7490,'crop'=>1790,'time'=>123878),array('wood'=>21875,'clay'=>7010,'iron'=>7915,'crop'=>1890,'time'=>130907),array('wood'=>23035,'clay'=>7380,'iron'=>8330,'crop'=>1990,'time'=>137844),array('wood'=>24180,'clay'=>7750,'iron'=>8745,'crop'=>2090,'time'=>144694),array('wood'=>25310,'clay'=>8110,'iron'=>9155,'crop'=>2190,'time'=>151464),array('wood'=>26430,'clay'=>8470,'iron'=>9560,'crop'=>2285,'time'=>158159),array('wood'=>27535,'clay'=>8825,'iron'=>9960,'crop'=>2380,'time'=>164784));
|
||||
$ab58=array(1=>array('wood'=>1125,'clay'=>1510,'iron'=>755,'crop'=>95,'time'=>28800),array('wood'=>1960,'clay'=>2630,'iron'=>1315,'crop'=>170,'time'=>50144),array('wood'=>2710,'clay'=>3635,'iron'=>1820,'crop'=>235,'time'=>69357),array('wood'=>3410,'clay'=>4575,'iron'=>2295,'crop'=>295,'time'=>87305),array('wood'=>4075,'clay'=>5470,'iron'=>2740,'crop'=>350,'time'=>104368),array('wood'=>4715,'clay'=>6330,'iron'=>3175,'crop'=>405,'time'=>120757),array('wood'=>5335,'clay'=>7160,'iron'=>3590,'crop'=>460,'time'=>136606),array('wood'=>5940,'clay'=>7970,'iron'=>3995,'crop'=>510,'time'=>152007),array('wood'=>6525,'clay'=>8755,'iron'=>4390,'crop'=>560,'time'=>167027),array('wood'=>7100,'clay'=>9525,'iron'=>4775,'crop'=>610,'time'=>181716),array('wood'=>7660,'clay'=>10280,'iron'=>5155,'crop'=>660,'time'=>196113),array('wood'=>8215,'clay'=>11025,'iron'=>5525,'crop'=>705,'time'=>210251),array('wood'=>8755,'clay'=>11755,'iron'=>5890,'crop'=>750,'time'=>224154),array('wood'=>9290,'clay'=>12470,'iron'=>6250,'crop'=>800,'time'=>237845),array('wood'=>9820,'clay'=>13180,'iron'=>6605,'crop'=>845,'time'=>251342),array('wood'=>10340,'clay'=>13875,'iron'=>6955,'crop'=>890,'time'=>264660),array('wood'=>10850,'clay'=>14565,'iron'=>7300,'crop'=>930,'time'=>277812),array('wood'=>11360,'clay'=>15245,'iron'=>7640,'crop'=>975,'time'=>290811),array('wood'=>11860,'clay'=>15920,'iron'=>7980,'crop'=>1020,'time'=>303665),array('wood'=>12360,'clay'=>16590,'iron'=>8310,'crop'=>1060,'time'=>316385));
|
||||
$ab61=array(1=>array('wood'=>415,'clay'=>520,'iron'=>410,'crop'=>370,'time'=>3720),array('wood'=>725,'clay'=>905,'iron'=>715,'crop'=>645,'time'=>6477),array('wood'=>1000,'clay'=>1250,'iron'=>985,'crop'=>890,'time'=>8959),array('wood'=>1260,'clay'=>1575,'iron'=>1245,'crop'=>1120,'time'=>11277),array('wood'=>1505,'clay'=>1885,'iron'=>1485,'crop'=>1340,'time'=>13481),array('wood'=>1740,'clay'=>2180,'iron'=>1720,'crop'=>1550,'time'=>15598),array('wood'=>1970,'clay'=>2465,'iron'=>1945,'crop'=>1755,'time'=>17645),array('wood'=>2190,'clay'=>2745,'iron'=>2165,'crop'=>1955,'time'=>19634),array('wood'=>2405,'clay'=>3015,'iron'=>2380,'crop'=>2145,'time'=>21574),array('wood'=>2620,'clay'=>3280,'iron'=>2585,'crop'=>2335,'time'=>23472),array('wood'=>2825,'clay'=>3540,'iron'=>2790,'crop'=>2520,'time'=>25331),array('wood'=>3030,'clay'=>3795,'iron'=>2995,'crop'=>2700,'time'=>27157),array('wood'=>3230,'clay'=>4045,'iron'=>3190,'crop'=>2880,'time'=>28953),array('wood'=>3425,'clay'=>4295,'iron'=>3385,'crop'=>3055,'time'=>30722),array('wood'=>3620,'clay'=>4540,'iron'=>3580,'crop'=>3230,'time'=>32465),array('wood'=>3815,'clay'=>4780,'iron'=>3770,'crop'=>3400,'time'=>34185),array('wood'=>4005,'clay'=>5015,'iron'=>3955,'crop'=>3570,'time'=>35884),array('wood'=>4190,'clay'=>5250,'iron'=>4140,'crop'=>3735,'time'=>37563),array('wood'=>4375,'clay'=>5485,'iron'=>4325,'crop'=>3900,'time'=>39223),array('wood'=>4560,'clay'=>5715,'iron'=>4505,'crop'=>4065,'time'=>40866));
|
||||
$ab62=array(1=>array('wood'=>905,'clay'=>800,'iron'=>1215,'crop'=>580,'time'=>6150),array('wood'=>1575,'clay'=>1395,'iron'=>2115,'crop'=>1010,'time'=>10708),array('wood'=>2180,'clay'=>1925,'iron'=>2925,'crop'=>1395,'time'=>14811),array('wood'=>2745,'clay'=>2425,'iron'=>3685,'crop'=>1760,'time'=>18643),array('wood'=>3280,'clay'=>2900,'iron'=>4405,'crop'=>2100,'time'=>22287),array('wood'=>3795,'clay'=>3355,'iron'=>5095,'crop'=>2430,'time'=>25787),array('wood'=>4295,'clay'=>3795,'iron'=>5765,'crop'=>2750,'time'=>29171),array('wood'=>4775,'clay'=>4220,'iron'=>6415,'crop'=>3060,'time'=>32460),array('wood'=>5250,'clay'=>4640,'iron'=>7045,'crop'=>3365,'time'=>35667),array('wood'=>5710,'clay'=>5050,'iron'=>7665,'crop'=>3660,'time'=>38804),array('wood'=>6165,'clay'=>5450,'iron'=>8275,'crop'=>3950,'time'=>41878),array('wood'=>6605,'clay'=>5840,'iron'=>8870,'crop'=>4235,'time'=>44897),array('wood'=>7045,'clay'=>6225,'iron'=>9455,'crop'=>4515,'time'=>47866),array('wood'=>7475,'clay'=>6605,'iron'=>10035,'crop'=>4790,'time'=>50790),array('wood'=>7900,'clay'=>6980,'iron'=>10605,'crop'=>5060,'time'=>53672),array('wood'=>8315,'clay'=>7350,'iron'=>11165,'crop'=>5330,'time'=>56516),array('wood'=>8730,'clay'=>7715,'iron'=>11720,'crop'=>5595,'time'=>59325),array('wood'=>9140,'clay'=>8080,'iron'=>12270,'crop'=>5855,'time'=>62100),array('wood'=>9540,'clay'=>8435,'iron'=>12810,'crop'=>6115,'time'=>64845),array('wood'=>9940,'clay'=>8790,'iron'=>13350,'crop'=>6370,'time'=>67561));
|
||||
$ab63=array(1=>array('wood'=>1290,'clay'=>1360,'iron'=>1740,'crop'=>720,'time'=>7080),array('wood'=>2245,'clay'=>2370,'iron'=>3030,'crop'=>1255,'time'=>12327),array('wood'=>3105,'clay'=>3275,'iron'=>4190,'crop'=>1735,'time'=>17050),array('wood'=>3910,'clay'=>4125,'iron'=>5275,'crop'=>2185,'time'=>21463),array('wood'=>4675,'clay'=>4930,'iron'=>6305,'crop'=>2610,'time'=>25657),array('wood'=>5410,'clay'=>5700,'iron'=>7295,'crop'=>3020,'time'=>29686),array('wood'=>6120,'clay'=>6450,'iron'=>8255,'crop'=>3415,'time'=>33582),array('wood'=>6810,'clay'=>7180,'iron'=>9185,'crop'=>3800,'time'=>37368),array('wood'=>7480,'clay'=>7885,'iron'=>10090,'crop'=>4175,'time'=>41061),array('wood'=>8140,'clay'=>8580,'iron'=>10980,'crop'=>4545,'time'=>44672),array('wood'=>8785,'clay'=>9260,'iron'=>11850,'crop'=>4905,'time'=>48211),array('wood'=>9415,'clay'=>9930,'iron'=>12705,'crop'=>5255,'time'=>51687),array('wood'=>10040,'clay'=>10585,'iron'=>13545,'crop'=>5605,'time'=>55105),array('wood'=>10655,'clay'=>11230,'iron'=>14370,'crop'=>5945,'time'=>58470),array('wood'=>11260,'clay'=>11870,'iron'=>15185,'crop'=>6285,'time'=>61788),array('wood'=>11855,'clay'=>12500,'iron'=>15990,'crop'=>6615,'time'=>65062),array('wood'=>12445,'clay'=>13120,'iron'=>16785,'crop'=>6945,'time'=>68296),array('wood'=>13025,'clay'=>13735,'iron'=>17570,'crop'=>7270,'time'=>71491),array('wood'=>13600,'clay'=>14340,'iron'=>18345,'crop'=>7590,'time'=>74651),array('wood'=>14170,'clay'=>14940,'iron'=>19115,'crop'=>7910,'time'=>77778));
|
||||
$ab64=array(1=>array('wood'=>645,'clay'=>575,'iron'=>170,'crop'=>220,'time'=>5880),array('wood'=>1125,'clay'=>1000,'iron'=>295,'crop'=>385,'time'=>10238),array('wood'=>1555,'clay'=>1385,'iron'=>410,'crop'=>530,'time'=>14160),array('wood'=>1955,'clay'=>1745,'iron'=>515,'crop'=>665,'time'=>17825),array('wood'=>2335,'clay'=>2085,'iron'=>615,'crop'=>795,'time'=>21309),array('wood'=>2705,'clay'=>2410,'iron'=>715,'crop'=>920,'time'=>24655),array('wood'=>3060,'clay'=>2725,'iron'=>805,'crop'=>1045,'time'=>27890),array('wood'=>3405,'clay'=>3035,'iron'=>895,'crop'=>1160,'time'=>31035),array('wood'=>3740,'clay'=>3335,'iron'=>985,'crop'=>1275,'time'=>34101),array('wood'=>4070,'clay'=>3630,'iron'=>1075,'crop'=>1390,'time'=>37100),array('wood'=>4390,'clay'=>3915,'iron'=>1160,'crop'=>1500,'time'=>40040),array('wood'=>4710,'clay'=>4200,'iron'=>1240,'crop'=>1605,'time'=>42926),array('wood'=>5020,'clay'=>4475,'iron'=>1325,'crop'=>1710,'time'=>45765),array('wood'=>5325,'clay'=>4750,'iron'=>1405,'crop'=>1815,'time'=>48560),array('wood'=>5630,'clay'=>5020,'iron'=>1485,'crop'=>1920,'time'=>51316),array('wood'=>5925,'clay'=>5285,'iron'=>1560,'crop'=>2020,'time'=>54035),array('wood'=>6220,'clay'=>5545,'iron'=>1640,'crop'=>2120,'time'=>56720),array('wood'=>6515,'clay'=>5805,'iron'=>1715,'crop'=>2220,'time'=>59374),array('wood'=>6800,'clay'=>6065,'iron'=>1790,'crop'=>2320,'time'=>61998),array('wood'=>7085,'clay'=>6315,'iron'=>1870,'crop'=>2415,'time'=>64595));
|
||||
$ab65=array(1=>array('wood'=>2620,'clay'=>2410,'iron'=>2160,'crop'=>1000,'time'=>9480),array('wood'=>4560,'clay'=>4195,'iron'=>3760,'crop'=>1740,'time'=>16506),array('wood'=>6310,'clay'=>5805,'iron'=>5200,'crop'=>2410,'time'=>22830),array('wood'=>7940,'clay'=>7305,'iron'=>6550,'crop'=>3030,'time'=>28738),array('wood'=>9495,'clay'=>8735,'iron'=>7830,'crop'=>3625,'time'=>34355),array('wood'=>10985,'clay'=>10105,'iron'=>9055,'crop'=>4195,'time'=>39749),array('wood'=>12425,'clay'=>11430,'iron'=>10245,'crop'=>4745,'time'=>44966),array('wood'=>13830,'clay'=>12720,'iron'=>11400,'crop'=>5280,'time'=>50036),array('wood'=>15195,'clay'=>13975,'iron'=>12525,'crop'=>5800,'time'=>54980),array('wood'=>16530,'clay'=>15205,'iron'=>13630,'crop'=>6310,'time'=>59815),array('wood'=>17840,'clay'=>16410,'iron'=>14710,'crop'=>6810,'time'=>64554),array('wood'=>19125,'clay'=>17595,'iron'=>15770,'crop'=>7300,'time'=>69208),array('wood'=>20390,'clay'=>18755,'iron'=>16810,'crop'=>7785,'time'=>73784),array('wood'=>21635,'clay'=>19905,'iron'=>17840,'crop'=>8260,'time'=>78291),array('wood'=>22865,'clay'=>21030,'iron'=>18850,'crop'=>8725,'time'=>82733),array('wood'=>24075,'clay'=>22145,'iron'=>19850,'crop'=>9190,'time'=>87117),array('wood'=>25275,'clay'=>23245,'iron'=>20835,'crop'=>9645,'time'=>91447),array('wood'=>26455,'clay'=>24335,'iron'=>21810,'crop'=>10100,'time'=>95725),array('wood'=>27625,'clay'=>25410,'iron'=>22775,'crop'=>10545,'time'=>99957),array('wood'=>28780,'clay'=>26475,'iron'=>23730,'crop'=>10985,'time'=>104144));
|
||||
$ab66=array(1=>array('wood'=>3250,'clay'=>4020,'iron'=>4470,'crop'=>1420,'time'=>11160),array('wood'=>5660,'clay'=>7000,'iron'=>7785,'crop'=>2470,'time'=>19431),array('wood'=>7825,'clay'=>9680,'iron'=>10765,'crop'=>3420,'time'=>26876),array('wood'=>9850,'clay'=>12185,'iron'=>13550,'crop'=>4305,'time'=>33831),array('wood'=>11780,'clay'=>14570,'iron'=>16200,'crop'=>5145,'time'=>40443),array('wood'=>13625,'clay'=>16855,'iron'=>18745,'crop'=>5955,'time'=>46793),array('wood'=>15415,'clay'=>19070,'iron'=>21200,'crop'=>6735,'time'=>52935),array('wood'=>17155,'clay'=>21220,'iron'=>23595,'crop'=>7495,'time'=>58903),array('wood'=>18850,'clay'=>23315,'iron'=>25925,'crop'=>8235,'time'=>64723),array('wood'=>20505,'clay'=>25365,'iron'=>28205,'crop'=>8960,'time'=>70415),array('wood'=>22130,'clay'=>27375,'iron'=>30440,'crop'=>9670,'time'=>75994),array('wood'=>23725,'clay'=>29345,'iron'=>32635,'crop'=>10365,'time'=>81472),array('wood'=>25295,'clay'=>31290,'iron'=>34790,'crop'=>11050,'time'=>86860),array('wood'=>26840,'clay'=>33200,'iron'=>36915,'crop'=>11725,'time'=>92165),array('wood'=>28365,'clay'=>35085,'iron'=>39010,'crop'=>12395,'time'=>97395),array('wood'=>29865,'clay'=>36940,'iron'=>41075,'crop'=>13050,'time'=>102556),array('wood'=>31350,'clay'=>38780,'iron'=>43120,'crop'=>13700,'time'=>107652),array('wood'=>32815,'clay'=>40590,'iron'=>45135,'crop'=>14340,'time'=>112689),array('wood'=>34270,'clay'=>42385,'iron'=>47130,'crop'=>14970,'time'=>117670),array('wood'=>35705,'clay'=>44160,'iron'=>49105,'crop'=>15600,'time'=>122599));
|
||||
$ab67=array(1=>array('wood'=>2355,'clay'=>1375,'iron'=>860,'crop'=>240,'time'=>16200),array('wood'=>4100,'clay'=>2395,'iron'=>1495,'crop'=>420,'time'=>28206),array('wood'=>5670,'clay'=>3310,'iron'=>2070,'crop'=>580,'time'=>39013),array('wood'=>7140,'clay'=>4170,'iron'=>2605,'crop'=>730,'time'=>49109),array('wood'=>8535,'clay'=>4985,'iron'=>3115,'crop'=>870,'time'=>58707),array('wood'=>9875,'clay'=>5765,'iron'=>3605,'crop'=>1005,'time'=>67926),array('wood'=>11170,'clay'=>6520,'iron'=>4080,'crop'=>1140,'time'=>76841),array('wood'=>12430,'clay'=>7255,'iron'=>4540,'crop'=>1265,'time'=>85504),array('wood'=>13660,'clay'=>7975,'iron'=>4990,'crop'=>1390,'time'=>93953),array('wood'=>14860,'clay'=>8675,'iron'=>5425,'crop'=>1515,'time'=>102215),array('wood'=>16035,'clay'=>9365,'iron'=>5855,'crop'=>1635,'time'=>110314),array('wood'=>17190,'clay'=>10040,'iron'=>6280,'crop'=>1750,'time'=>118266),array('wood'=>18330,'clay'=>10700,'iron'=>6695,'crop'=>1870,'time'=>126087),array('wood'=>19450,'clay'=>11355,'iron'=>7100,'crop'=>1980,'time'=>133788),array('wood'=>20550,'clay'=>12000,'iron'=>7505,'crop'=>2095,'time'=>141380),array('wood'=>21640,'clay'=>12635,'iron'=>7905,'crop'=>2205,'time'=>148871),array('wood'=>22715,'clay'=>13265,'iron'=>8295,'crop'=>2315,'time'=>156269),array('wood'=>23780,'clay'=>13885,'iron'=>8685,'crop'=>2425,'time'=>163581),array('wood'=>24830,'clay'=>14500,'iron'=>9070,'crop'=>2530,'time'=>170812),array('wood'=>25870,'clay'=>15105,'iron'=>9450,'crop'=>2635,'time'=>177967));
|
||||
$ab68=array(1=>array('wood'=>1160,'clay'=>1780,'iron'=>805,'crop'=>145,'time'=>28800),array('wood'=>2020,'clay'=>3095,'iron'=>1400,'crop'=>250,'time'=>50144),array('wood'=>2795,'clay'=>4285,'iron'=>1935,'crop'=>345,'time'=>69357),array('wood'=>3515,'clay'=>5390,'iron'=>2435,'crop'=>435,'time'=>87305),array('wood'=>4205,'clay'=>6445,'iron'=>2910,'crop'=>520,'time'=>104368),array('wood'=>4865,'clay'=>7455,'iron'=>3370,'crop'=>600,'time'=>120757),array('wood'=>5500,'clay'=>8435,'iron'=>3810,'crop'=>680,'time'=>136606),array('wood'=>6125,'clay'=>9385,'iron'=>4240,'crop'=>755,'time'=>152007),array('wood'=>6725,'clay'=>10315,'iron'=>4660,'crop'=>830,'time'=>167027),array('wood'=>7320,'clay'=>11220,'iron'=>5070,'crop'=>905,'time'=>181716),array('wood'=>7900,'clay'=>12110,'iron'=>5470,'crop'=>975,'time'=>196113),array('wood'=>8470,'clay'=>12980,'iron'=>5865,'crop'=>1045,'time'=>210251),array('wood'=>9030,'clay'=>13840,'iron'=>6250,'crop'=>1115,'time'=>224154),array('wood'=>9580,'clay'=>14685,'iron'=>6635,'crop'=>1185,'time'=>237845),array('wood'=>10125,'clay'=>15520,'iron'=>7010,'crop'=>1250,'time'=>251342),array('wood'=>10660,'clay'=>16340,'iron'=>7380,'crop'=>1315,'time'=>264660),array('wood'=>11190,'clay'=>17155,'iron'=>7750,'crop'=>1385,'time'=>277812),array('wood'=>11715,'clay'=>17955,'iron'=>8110,'crop'=>1445,'time'=>290811),array('wood'=>12230,'clay'=>18750,'iron'=>8470,'crop'=>1510,'time'=>303665),array('wood'=>12745,'clay'=>19535,'iron'=>8825,'crop'=>1575,'time'=>316385));
|
||||
$ab71=array(1=>array('wood'=>870,'clay'=>1395,'iron'=>970,'crop'=>405,'time'=>6900),array('wood'=>1515,'clay'=>2430,'iron'=>1690,'crop'=>705,'time'=>12014),array('wood'=>2095,'clay'=>3360,'iron'=>2335,'crop'=>975,'time'=>16617),array('wood'=>2635,'clay'=>4230,'iron'=>2940,'crop'=>1230,'time'=>20917),array('wood'=>3155,'clay'=>5055,'iron'=>3515,'crop'=>1470,'time'=>25005),array('wood'=>3650,'clay'=>5850,'iron'=>4065,'crop'=>1700,'time'=>28931),array('wood'=>4125,'clay'=>6615,'iron'=>4600,'crop'=>1920,'time'=>32729),array('wood'=>4590,'clay'=>7365,'iron'=>5120,'crop'=>2140,'time'=>36418),array('wood'=>5045,'clay'=>8090,'iron'=>5625,'crop'=>2350,'time'=>40017),array('wood'=>5490,'clay'=>8800,'iron'=>6120,'crop'=>2555,'time'=>43536),array('wood'=>5925,'clay'=>9500,'iron'=>6605,'crop'=>2760,'time'=>46985),array('wood'=>6350,'clay'=>10185,'iron'=>7080,'crop'=>2955,'time'=>50373),array('wood'=>6770,'clay'=>10855,'iron'=>7550,'crop'=>3150,'time'=>53704),array('wood'=>7185,'clay'=>11520,'iron'=>8010,'crop'=>3345,'time'=>56984),array('wood'=>7595,'clay'=>12175,'iron'=>8465,'crop'=>3535,'time'=>60217),array('wood'=>7995,'clay'=>12820,'iron'=>8915,'crop'=>3720,'time'=>63408),array('wood'=>8390,'clay'=>13455,'iron'=>9355,'crop'=>3905,'time'=>66559),array('wood'=>8785,'clay'=>14085,'iron'=>9795,'crop'=>4090,'time'=>69673),array('wood'=>9175,'clay'=>14710,'iron'=>10230,'crop'=>4270,'time'=>72753),array('wood'=>9555,'clay'=>15325,'iron'=>10655,'crop'=>4450,'time'=>75801));
|
||||
$ab72=array(1=>array('wood'=>1115,'clay'=>765,'iron'=>1915,'crop'=>475,'time'=>7650),array('wood'=>1940,'clay'=>1330,'iron'=>3335,'crop'=>825,'time'=>13319),array('wood'=>2685,'clay'=>1840,'iron'=>4610,'crop'=>1145,'time'=>18423),array('wood'=>3380,'clay'=>2320,'iron'=>5805,'crop'=>1440,'time'=>23190),array('wood'=>4040,'clay'=>2770,'iron'=>6940,'crop'=>1720,'time'=>27723),array('wood'=>4675,'clay'=>3210,'iron'=>8030,'crop'=>1990,'time'=>32076),array('wood'=>5290,'clay'=>3630,'iron'=>9085,'crop'=>2255,'time'=>36286),array('wood'=>5885,'clay'=>4040,'iron'=>10105,'crop'=>2505,'time'=>40377),array('wood'=>6465,'clay'=>4435,'iron'=>11105,'crop'=>2755,'time'=>44367),array('wood'=>7035,'clay'=>4825,'iron'=>12085,'crop'=>2995,'time'=>48268),array('wood'=>7595,'clay'=>5210,'iron'=>13040,'crop'=>3235,'time'=>52093),array('wood'=>8140,'clay'=>5585,'iron'=>13980,'crop'=>3470,'time'=>55848),array('wood'=>8680,'clay'=>5955,'iron'=>14905,'crop'=>3695,'time'=>59541),array('wood'=>9210,'clay'=>6320,'iron'=>15815,'crop'=>3925,'time'=>63178),array('wood'=>9730,'clay'=>6675,'iron'=>16715,'crop'=>4145,'time'=>66763),array('wood'=>10245,'clay'=>7030,'iron'=>17600,'crop'=>4365,'time'=>70300),array('wood'=>10755,'clay'=>7380,'iron'=>18475,'crop'=>4580,'time'=>73794),array('wood'=>11260,'clay'=>7725,'iron'=>19335,'crop'=>4795,'time'=>77247),array('wood'=>11755,'clay'=>8065,'iron'=>20190,'crop'=>5010,'time'=>80661),array('wood'=>12250,'clay'=>8405,'iron'=>21035,'crop'=>5220,'time'=>84040));
|
||||
$ab73=array(1=>array('wood'=>1010,'clay'=>1500,'iron'=>3000,'crop'=>615,'time'=>8400),array('wood'=>1760,'clay'=>2610,'iron'=>5225,'crop'=>1070,'time'=>14625),array('wood'=>2430,'clay'=>3610,'iron'=>7225,'crop'=>1480,'time'=>20229),array('wood'=>3060,'clay'=>4545,'iron'=>9095,'crop'=>1865,'time'=>25464),array('wood'=>3660,'clay'=>5435,'iron'=>10870,'crop'=>2230,'time'=>30441),array('wood'=>4235,'clay'=>6290,'iron'=>12580,'crop'=>2580,'time'=>35221),array('wood'=>4790,'clay'=>7115,'iron'=>14230,'crop'=>2915,'time'=>39844),array('wood'=>5330,'clay'=>7915,'iron'=>15835,'crop'=>3245,'time'=>44335),array('wood'=>5860,'clay'=>8700,'iron'=>17400,'crop'=>3565,'time'=>48716),array('wood'=>6375,'clay'=>9465,'iron'=>18930,'crop'=>3880,'time'=>53000),array('wood'=>6880,'clay'=>10215,'iron'=>20430,'crop'=>4190,'time'=>57200),array('wood'=>7375,'clay'=>10950,'iron'=>21900,'crop'=>4490,'time'=>61323),array('wood'=>7860,'clay'=>11675,'iron'=>23350,'crop'=>4785,'time'=>65378),array('wood'=>8340,'clay'=>12390,'iron'=>24775,'crop'=>5080,'time'=>69372),array('wood'=>8815,'clay'=>13090,'iron'=>26180,'crop'=>5365,'time'=>73308),array('wood'=>9280,'clay'=>13785,'iron'=>27570,'crop'=>5650,'time'=>77193),array('wood'=>9745,'clay'=>14470,'iron'=>28940,'crop'=>5930,'time'=>81029),array('wood'=>10200,'clay'=>15145,'iron'=>30295,'crop'=>6210,'time'=>84820),array('wood'=>10650,'clay'=>15815,'iron'=>31630,'crop'=>6485,'time'=>88569),array('wood'=>11095,'clay'=>16480,'iron'=>32955,'crop'=>6755,'time'=>92279));
|
||||
$ab74=array(1=>array('wood'=>700,'clay'=>575,'iron'=>225,'crop'=>345,'time'=>5880),array('wood'=>1215,'clay'=>1000,'iron'=>385,'crop'=>595,'time'=>10238),array('wood'=>1680,'clay'=>1385,'iron'=>535,'crop'=>825,'time'=>14160),array('wood'=>2115,'clay'=>1745,'iron'=>675,'crop'=>1040,'time'=>17825),array('wood'=>2530,'clay'=>2085,'iron'=>805,'crop'=>1240,'time'=>21309),array('wood'=>2925,'clay'=>2410,'iron'=>935,'crop'=>1435,'time'=>24655),array('wood'=>3310,'clay'=>2725,'iron'=>1055,'crop'=>1625,'time'=>27890),array('wood'=>3680,'clay'=>3035,'iron'=>1175,'crop'=>1810,'time'=>31035),array('wood'=>4045,'clay'=>3335,'iron'=>1290,'crop'=>1985,'time'=>34101),array('wood'=>4400,'clay'=>3630,'iron'=>1405,'crop'=>2160,'time'=>37100),array('wood'=>4750,'clay'=>3915,'iron'=>1515,'crop'=>2330,'time'=>40040),array('wood'=>5090,'clay'=>4200,'iron'=>1625,'crop'=>2500,'time'=>42926),array('wood'=>5430,'clay'=>4475,'iron'=>1730,'crop'=>2665,'time'=>45765),array('wood'=>5760,'clay'=>4750,'iron'=>1840,'crop'=>2830,'time'=>48560),array('wood'=>6085,'clay'=>5020,'iron'=>1940,'crop'=>2990,'time'=>51316),array('wood'=>6410,'clay'=>5285,'iron'=>2045,'crop'=>3145,'time'=>54035),array('wood'=>6730,'clay'=>5545,'iron'=>2145,'crop'=>3305,'time'=>56720),array('wood'=>7045,'clay'=>5805,'iron'=>2245,'crop'=>3460,'time'=>59374),array('wood'=>7355,'clay'=>6065,'iron'=>2345,'crop'=>3610,'time'=>61998),array('wood'=>7660,'clay'=>6315,'iron'=>2445,'crop'=>3765,'time'=>64595));
|
||||
$ab75=array(1=>array('wood'=>3985,'clay'=>3215,'iron'=>2510,'crop'=>930,'time'=>9600),array('wood'=>6940,'clay'=>5600,'iron'=>4370,'crop'=>1620,'time'=>16715),array('wood'=>9595,'clay'=>7740,'iron'=>6045,'crop'=>2240,'time'=>23119),array('wood'=>12080,'clay'=>9745,'iron'=>7610,'crop'=>2820,'time'=>29102),array('wood'=>14440,'clay'=>11650,'iron'=>9095,'crop'=>3370,'time'=>34789),array('wood'=>16710,'clay'=>13480,'iron'=>10525,'crop'=>3900,'time'=>40252),array('wood'=>18900,'clay'=>15250,'iron'=>11905,'crop'=>4410,'time'=>45535),array('wood'=>21035,'clay'=>16970,'iron'=>13250,'crop'=>4910,'time'=>50669),array('wood'=>23110,'clay'=>18645,'iron'=>14555,'crop'=>5395,'time'=>55676),array('wood'=>25145,'clay'=>20285,'iron'=>15835,'crop'=>5870,'time'=>60572),array('wood'=>27135,'clay'=>21890,'iron'=>17090,'crop'=>6335,'time'=>65371),array('wood'=>29090,'clay'=>23470,'iron'=>18325,'crop'=>6790,'time'=>70084),array('wood'=>31015,'clay'=>25025,'iron'=>19535,'crop'=>7240,'time'=>74718),array('wood'=>32910,'clay'=>26550,'iron'=>20730,'crop'=>7680,'time'=>79282),array('wood'=>34780,'clay'=>28060,'iron'=>21905,'crop'=>8115,'time'=>83781),array('wood'=>36620,'clay'=>29545,'iron'=>23065,'crop'=>8545,'time'=>88220),array('wood'=>38440,'clay'=>31015,'iron'=>24210,'crop'=>8970,'time'=>92604),array('wood'=>40240,'clay'=>32465,'iron'=>25345,'crop'=>9390,'time'=>96937),array('wood'=>42020,'clay'=>33900,'iron'=>26465,'crop'=>9805,'time'=>101222),array('wood'=>43780,'clay'=>35320,'iron'=>27575,'crop'=>10215,'time'=>105462));
|
||||
$ab76=array(1=>array('wood'=>4720,'clay'=>3565,'iron'=>7165,'crop'=>1315,'time'=>12150),array('wood'=>8220,'clay'=>6205,'iron'=>12475,'crop'=>2290,'time'=>21154),array('wood'=>11365,'clay'=>8585,'iron'=>17255,'crop'=>3165,'time'=>29260),array('wood'=>14310,'clay'=>10805,'iron'=>21720,'crop'=>3985,'time'=>36832),array('wood'=>17105,'clay'=>12920,'iron'=>25965,'crop'=>4765,'time'=>44030),array('wood'=>19790,'clay'=>14950,'iron'=>30045,'crop'=>5515,'time'=>50944),array('wood'=>22390,'clay'=>16910,'iron'=>33985,'crop'=>6235,'time'=>57631),array('wood'=>24910,'clay'=>18815,'iron'=>37815,'crop'=>6940,'time'=>64128),array('wood'=>27375,'clay'=>20675,'iron'=>41555,'crop'=>7625,'time'=>70464),array('wood'=>29780,'clay'=>22495,'iron'=>45210,'crop'=>8295,'time'=>76661),array('wood'=>32140,'clay'=>24275,'iron'=>48790,'crop'=>8955,'time'=>82735),array('wood'=>34460,'clay'=>26025,'iron'=>52305,'crop'=>9600,'time'=>88700),array('wood'=>36735,'clay'=>27745,'iron'=>55765,'crop'=>10235,'time'=>94565),array('wood'=>38980,'clay'=>29440,'iron'=>59170,'crop'=>10860,'time'=>100341),array('wood'=>41190,'clay'=>31110,'iron'=>62530,'crop'=>11475,'time'=>106035),array('wood'=>43375,'clay'=>32760,'iron'=>65845,'crop'=>12085,'time'=>111653),array('wood'=>45530,'clay'=>34390,'iron'=>69115,'crop'=>12685,'time'=>117202),array('wood'=>47660,'clay'=>36000,'iron'=>72350,'crop'=>13280,'time'=>122686),array('wood'=>49765,'clay'=>37590,'iron'=>75545,'crop'=>13865,'time'=>128109),array('wood'=>51850,'clay'=>39165,'iron'=>78710,'crop'=>14445,'time'=>133475));
|
||||
$ab77=array(1=>array('wood'=>2320,'clay'=>1305,'iron'=>975,'crop'=>240,'time'=>15600),array('wood'=>4040,'clay'=>2270,'iron'=>1700,'crop'=>420,'time'=>27161),array('wood'=>5585,'clay'=>3145,'iron'=>2350,'crop'=>580,'time'=>37568),array('wood'=>7035,'clay'=>3955,'iron'=>2960,'crop'=>730,'time'=>47290),array('wood'=>8405,'clay'=>4730,'iron'=>3540,'crop'=>870,'time'=>56533),array('wood'=>9730,'clay'=>5470,'iron'=>4095,'crop'=>1005,'time'=>65410),array('wood'=>11005,'clay'=>6190,'iron'=>4635,'crop'=>1140,'time'=>73995),array('wood'=>12245,'clay'=>6890,'iron'=>5155,'crop'=>1265,'time'=>82337),array('wood'=>13455,'clay'=>7570,'iron'=>5665,'crop'=>1390,'time'=>90473),array('wood'=>14640,'clay'=>8235,'iron'=>6160,'crop'=>1515,'time'=>98429),array('wood'=>15800,'clay'=>8885,'iron'=>6650,'crop'=>1635,'time'=>106228),array('wood'=>16935,'clay'=>9525,'iron'=>7130,'crop'=>1750,'time'=>113886),array('wood'=>18055,'clay'=>10155,'iron'=>7600,'crop'=>1870,'time'=>121417),array('wood'=>19160,'clay'=>10775,'iron'=>8065,'crop'=>1980,'time'=>128833),array('wood'=>20245,'clay'=>11390,'iron'=>8525,'crop'=>2095,'time'=>136144),array('wood'=>21320,'clay'=>11990,'iron'=>8975,'crop'=>2205,'time'=>143358),array('wood'=>22380,'clay'=>12590,'iron'=>9420,'crop'=>2315,'time'=>150482),array('wood'=>23425,'clay'=>13175,'iron'=>9860,'crop'=>2425,'time'=>157523),array('wood'=>24460,'clay'=>13760,'iron'=>10300,'crop'=>2530,'time'=>164485),array('wood'=>25485,'clay'=>14335,'iron'=>10730,'crop'=>2635,'time'=>171375));
|
||||
$ab78=array(1=>array('wood'=>1415,'clay'=>1465,'iron'=>745,'crop'=>120,'time'=>28800),array('wood'=>2465,'clay'=>2550,'iron'=>1295,'crop'=>210,'time'=>50144),array('wood'=>3410,'clay'=>3525,'iron'=>1795,'crop'=>290,'time'=>69357),array('wood'=>4295,'clay'=>4435,'iron'=>2260,'crop'=>365,'time'=>87305),array('wood'=>5135,'clay'=>5305,'iron'=>2700,'crop'=>435,'time'=>104368),array('wood'=>5940,'clay'=>6135,'iron'=>3125,'crop'=>505,'time'=>120757),array('wood'=>6720,'clay'=>6940,'iron'=>3535,'crop'=>570,'time'=>136606),array('wood'=>7475,'clay'=>7725,'iron'=>3930,'crop'=>635,'time'=>152007),array('wood'=>8215,'clay'=>8485,'iron'=>4320,'crop'=>695,'time'=>167027),array('wood'=>8940,'clay'=>9235,'iron'=>4700,'crop'=>755,'time'=>181716),array('wood'=>9645,'clay'=>9965,'iron'=>5075,'crop'=>815,'time'=>196113),array('wood'=>10340,'clay'=>10685,'iron'=>5440,'crop'=>875,'time'=>210251),array('wood'=>11025,'clay'=>11390,'iron'=>5800,'crop'=>935,'time'=>224154),array('wood'=>11700,'clay'=>12085,'iron'=>6155,'crop'=>990,'time'=>237845),array('wood'=>12365,'clay'=>12770,'iron'=>6500,'crop'=>1045,'time'=>251342),array('wood'=>13020,'clay'=>13445,'iron'=>6845,'crop'=>1105,'time'=>264660),array('wood'=>13665,'clay'=>14115,'iron'=>7185,'crop'=>1160,'time'=>277812),array('wood'=>14305,'clay'=>14775,'iron'=>7525,'crop'=>1210,'time'=>290811),array('wood'=>14935,'clay'=>15430,'iron'=>7855,'crop'=>1265,'time'=>303665),array('wood'=>15565,'clay'=>16075,'iron'=>8185,'crop'=>1320,'time'=>316385));
|
||||
$ab81=array(1=>array('wood'=>835,'clay'=>695,'iron'=>655,'crop'=>405,'time'=>4680),array('wood'=>1455,'clay'=>1210,'iron'=>1140,'crop'=>705,'time'=>8148),array('wood'=>2010,'clay'=>1675,'iron'=>1575,'crop'=>975,'time'=>11270),array('wood'=>2530,'clay'=>2105,'iron'=>1985,'crop'=>1230,'time'=>14187),array('wood'=>3025,'clay'=>2520,'iron'=>2375,'crop'=>1470,'time'=>16960),array('wood'=>3500,'clay'=>2915,'iron'=>2745,'crop'=>1700,'time'=>19623),array('wood'=>3960,'clay'=>3295,'iron'=>3105,'crop'=>1920,'time'=>22199),array('wood'=>4405,'clay'=>3670,'iron'=>3455,'crop'=>2140,'time'=>24701),array('wood'=>4845,'clay'=>4030,'iron'=>3800,'crop'=>2350,'time'=>27142),array('wood'=>5270,'clay'=>4385,'iron'=>4135,'crop'=>2555,'time'=>29529),array('wood'=>5685,'clay'=>4735,'iron'=>4460,'crop'=>2760,'time'=>31868),array('wood'=>6095,'clay'=>5075,'iron'=>4780,'crop'=>2955,'time'=>34166),array('wood'=>6500,'clay'=>5410,'iron'=>5100,'crop'=>3150,'time'=>36425),array('wood'=>6895,'clay'=>5740,'iron'=>5410,'crop'=>3345,'time'=>38650),array('wood'=>7285,'clay'=>6065,'iron'=>5715,'crop'=>3535,'time'=>40843),array('wood'=>7675,'clay'=>6385,'iron'=>6020,'crop'=>3720,'time'=>43007),array('wood'=>8055,'clay'=>6705,'iron'=>6320,'crop'=>3905,'time'=>45145),array('wood'=>8430,'clay'=>7020,'iron'=>6615,'crop'=>4090,'time'=>47257),array('wood'=>8805,'clay'=>7330,'iron'=>6905,'crop'=>4270,'time'=>49346),array('wood'=>9175,'clay'=>7635,'iron'=>7195,'crop'=>4450,'time'=>51413));
|
||||
$ab82=array(1=>array('wood'=>1185,'clay'=>870,'iron'=>515,'crop'=>475,'time'=>5160),array('wood'=>2065,'clay'=>1515,'iron'=>895,'crop'=>825,'time'=>8984),array('wood'=>2855,'clay'=>2095,'iron'=>1240,'crop'=>1145,'time'=>12426),array('wood'=>3590,'clay'=>2635,'iron'=>1560,'crop'=>1440,'time'=>15642),array('wood'=>4295,'clay'=>3155,'iron'=>1865,'crop'=>1720,'time'=>18699),array('wood'=>4970,'clay'=>3650,'iron'=>2160,'crop'=>1990,'time'=>21636),array('wood'=>5620,'clay'=>4125,'iron'=>2445,'crop'=>2255,'time'=>24475),array('wood'=>6255,'clay'=>4590,'iron'=>2720,'crop'=>2505,'time'=>27235),array('wood'=>6870,'clay'=>5045,'iron'=>2985,'crop'=>2755,'time'=>29926),array('wood'=>7475,'clay'=>5490,'iron'=>3250,'crop'=>2995,'time'=>32557),array('wood'=>8070,'clay'=>5925,'iron'=>3505,'crop'=>3235,'time'=>35137),array('wood'=>8650,'clay'=>6350,'iron'=>3760,'crop'=>3470,'time'=>37670),array('wood'=>9225,'clay'=>6770,'iron'=>4010,'crop'=>3695,'time'=>40161),array('wood'=>9785,'clay'=>7185,'iron'=>4255,'crop'=>3925,'time'=>42614),array('wood'=>10340,'clay'=>7595,'iron'=>4495,'crop'=>4145,'time'=>45032),array('wood'=>10890,'clay'=>7995,'iron'=>4735,'crop'=>4365,'time'=>47418),array('wood'=>11430,'clay'=>8390,'iron'=>4970,'crop'=>4580,'time'=>49775),array('wood'=>11965,'clay'=>8785,'iron'=>5200,'crop'=>4795,'time'=>52104),array('wood'=>12495,'clay'=>9175,'iron'=>5430,'crop'=>5010,'time'=>54407),array('wood'=>13020,'clay'=>9555,'iron'=>5660,'crop'=>5220,'time'=>56686));
|
||||
$ab83=array(1=>array('wood'=>1115,'clay'=>1045,'iron'=>1495,'crop'=>650,'time'=>6000),array('wood'=>1940,'clay'=>1820,'iron'=>2605,'crop'=>1130,'time'=>10447),array('wood'=>2685,'clay'=>2515,'iron'=>3600,'crop'=>1565,'time'=>14449),array('wood'=>3380,'clay'=>3170,'iron'=>4530,'crop'=>1970,'time'=>18189),array('wood'=>4040,'clay'=>3785,'iron'=>5420,'crop'=>2355,'time'=>21743),array('wood'=>4675,'clay'=>4380,'iron'=>6270,'crop'=>2725,'time'=>25158),array('wood'=>5290,'clay'=>4955,'iron'=>7090,'crop'=>3085,'time'=>28460),array('wood'=>5885,'clay'=>5515,'iron'=>7890,'crop'=>3430,'time'=>31668),array('wood'=>6465,'clay'=>6060,'iron'=>8670,'crop'=>3770,'time'=>34797),array('wood'=>7035,'clay'=>6595,'iron'=>9435,'crop'=>4100,'time'=>37857),array('wood'=>7595,'clay'=>7115,'iron'=>10180,'crop'=>4425,'time'=>40857),array('wood'=>8140,'clay'=>7630,'iron'=>10915,'crop'=>4745,'time'=>43802),array('wood'=>8680,'clay'=>8135,'iron'=>11635,'crop'=>5060,'time'=>46699),array('wood'=>9210,'clay'=>8630,'iron'=>12345,'crop'=>5370,'time'=>49551),array('wood'=>9730,'clay'=>9120,'iron'=>13045,'crop'=>5675,'time'=>52363),array('wood'=>10245,'clay'=>9605,'iron'=>13740,'crop'=>5975,'time'=>55138),array('wood'=>10755,'clay'=>10080,'iron'=>14420,'crop'=>6270,'time'=>57878),array('wood'=>11260,'clay'=>10550,'iron'=>15095,'crop'=>6565,'time'=>60586),array('wood'=>11755,'clay'=>11020,'iron'=>15765,'crop'=>6855,'time'=>63264),array('wood'=>12250,'clay'=>11480,'iron'=>16425,'crop'=>7140,'time'=>65914));
|
||||
$ab84=array(1=>array('wood'=>1430,'clay'=>1640,'iron'=>2580,'crop'=>790,'time'=>7680),array('wood'=>2490,'clay'=>2855,'iron'=>4490,'crop'=>1375,'time'=>13372),array('wood'=>3445,'clay'=>3950,'iron'=>6215,'crop'=>1900,'time'=>18495),array('wood'=>4335,'clay'=>4970,'iron'=>7820,'crop'=>2395,'time'=>23281),array('wood'=>5180,'clay'=>5945,'iron'=>9350,'crop'=>2865,'time'=>27832),array('wood'=>5995,'clay'=>6875,'iron'=>10820,'crop'=>3310,'time'=>32202),array('wood'=>6785,'clay'=>7780,'iron'=>12240,'crop'=>3745,'time'=>36428),array('wood'=>7550,'clay'=>8655,'iron'=>13615,'crop'=>4170,'time'=>40535),array('wood'=>8295,'clay'=>9510,'iron'=>14965,'crop'=>4580,'time'=>44541),array('wood'=>9025,'clay'=>10350,'iron'=>16280,'crop'=>4985,'time'=>48458),array('wood'=>9740,'clay'=>11170,'iron'=>17570,'crop'=>5380,'time'=>52297),array('wood'=>10440,'clay'=>11975,'iron'=>18835,'crop'=>5765,'time'=>56067),array('wood'=>11130,'clay'=>12765,'iron'=>20080,'crop'=>6150,'time'=>59774),array('wood'=>11810,'clay'=>13545,'iron'=>21305,'crop'=>6525,'time'=>63425),array('wood'=>12480,'clay'=>14315,'iron'=>22515,'crop'=>6895,'time'=>67025),array('wood'=>13140,'clay'=>15070,'iron'=>23710,'crop'=>7260,'time'=>70576),array('wood'=>13795,'clay'=>15820,'iron'=>24885,'crop'=>7620,'time'=>74083),array('wood'=>14440,'clay'=>16560,'iron'=>26050,'crop'=>7975,'time'=>77550),array('wood'=>15080,'clay'=>17290,'iron'=>27205,'crop'=>8330,'time'=>80977),array('wood'=>15710,'clay'=>18015,'iron'=>28345,'crop'=>8680,'time'=>84369));
|
||||
$ab85=array(1=>array('wood'=>3005,'clay'=>2760,'iron'=>2335,'crop'=>755,'time'=>9720),array('wood'=>5230,'clay'=>4805,'iron'=>4065,'crop'=>1315,'time'=>16924),array('wood'=>7235,'clay'=>6645,'iron'=>5625,'crop'=>1820,'time'=>23408),array('wood'=>9110,'clay'=>8365,'iron'=>7080,'crop'=>2290,'time'=>29466),array('wood'=>10890,'clay'=>10000,'iron'=>8460,'crop'=>2735,'time'=>35224),array('wood'=>12600,'clay'=>11575,'iron'=>9790,'crop'=>3165,'time'=>40756),array('wood'=>14255,'clay'=>13090,'iron'=>11075,'crop'=>3580,'time'=>46105),array('wood'=>15860,'clay'=>14565,'iron'=>12325,'crop'=>3985,'time'=>51302),array('wood'=>17430,'clay'=>16005,'iron'=>13540,'crop'=>4380,'time'=>56372),array('wood'=>18960,'clay'=>17415,'iron'=>14735,'crop'=>4765,'time'=>61329),array('wood'=>20460,'clay'=>18795,'iron'=>15900,'crop'=>5140,'time'=>66188),array('wood'=>21940,'clay'=>20150,'iron'=>17045,'crop'=>5510,'time'=>70960),array('wood'=>23390,'clay'=>21480,'iron'=>18175,'crop'=>5875,'time'=>75652),array('wood'=>24815,'clay'=>22795,'iron'=>19285,'crop'=>6235,'time'=>80273),array('wood'=>26225,'clay'=>24085,'iron'=>20380,'crop'=>6590,'time'=>84828),array('wood'=>27615,'clay'=>25365,'iron'=>21460,'crop'=>6940,'time'=>89323),array('wood'=>28985,'clay'=>26625,'iron'=>22525,'crop'=>7285,'time'=>93762),array('wood'=>30345,'clay'=>27870,'iron'=>23580,'crop'=>7625,'time'=>98149),array('wood'=>31685,'clay'=>29100,'iron'=>24620,'crop'=>7960,'time'=>102487),array('wood'=>33010,'clay'=>30320,'iron'=>25650,'crop'=>8295,'time'=>106780));
|
||||
$ab86=array(1=>array('wood'=>4230,'clay'=>4580,'iron'=>5205,'crop'=>1280,'time'=>11700),array('wood'=>7365,'clay'=>7975,'iron'=>9060,'crop'=>2230,'time'=>20371),array('wood'=>10185,'clay'=>11030,'iron'=>12535,'crop'=>3085,'time'=>28176),array('wood'=>12825,'clay'=>13885,'iron'=>15780,'crop'=>3880,'time'=>35468),array('wood'=>15330,'clay'=>16595,'iron'=>18860,'crop'=>4640,'time'=>42400),array('wood'=>17735,'clay'=>19205,'iron'=>21825,'crop'=>5365,'time'=>49058),array('wood'=>20065,'clay'=>21725,'iron'=>24690,'crop'=>6070,'time'=>55496),array('wood'=>22325,'clay'=>24175,'iron'=>27470,'crop'=>6755,'time'=>61753),array('wood'=>24530,'clay'=>26560,'iron'=>30185,'crop'=>7425,'time'=>67855),array('wood'=>26690,'clay'=>28900,'iron'=>32840,'crop'=>8075,'time'=>73822),array('wood'=>28805,'clay'=>31185,'iron'=>35445,'crop'=>8715,'time'=>79671),array('wood'=>30880,'clay'=>33435,'iron'=>38000,'crop'=>9345,'time'=>85414),array('wood'=>32925,'clay'=>35645,'iron'=>40510,'crop'=>9960,'time'=>91063),array('wood'=>34935,'clay'=>37825,'iron'=>42985,'crop'=>10570,'time'=>96625),array('wood'=>36915,'clay'=>39970,'iron'=>45425,'crop'=>11170,'time'=>102108),array('wood'=>38870,'clay'=>42090,'iron'=>47830,'crop'=>11765,'time'=>107518),array('wood'=>40805,'clay'=>44180,'iron'=>50210,'crop'=>12345,'time'=>112861),array('wood'=>42715,'clay'=>46245,'iron'=>52560,'crop'=>12925,'time'=>118142),array('wood'=>44600,'clay'=>48290,'iron'=>54880,'crop'=>13495,'time'=>123364),array('wood'=>46470,'clay'=>50315,'iron'=>57180,'crop'=>14060,'time'=>128532));
|
||||
$ab87=array(1=>array('wood'=>2390,'clay'=>1000,'iron'=>1095,'crop'=>230,'time'=>15900),array('wood'=>4160,'clay'=>1745,'iron'=>1905,'crop'=>400,'time'=>27684),array('wood'=>5755,'clay'=>2410,'iron'=>2635,'crop'=>550,'time'=>38291),array('wood'=>7245,'clay'=>3035,'iron'=>3315,'crop'=>690,'time'=>48200),array('wood'=>8660,'clay'=>3630,'iron'=>3960,'crop'=>825,'time'=>57620),array('wood'=>10020,'clay'=>4200,'iron'=>4585,'crop'=>955,'time'=>66668),array('wood'=>11335,'clay'=>4750,'iron'=>5185,'crop'=>1085,'time'=>75418),array('wood'=>12615,'clay'=>5285,'iron'=>5770,'crop'=>1205,'time'=>83921),array('wood'=>13860,'clay'=>5810,'iron'=>6340,'crop'=>1325,'time'=>92213),array('wood'=>15080,'clay'=>6320,'iron'=>6900,'crop'=>1440,'time'=>100322),array('wood'=>16275,'clay'=>6820,'iron'=>7445,'crop'=>1555,'time'=>108271),array('wood'=>17450,'clay'=>7315,'iron'=>7980,'crop'=>1665,'time'=>116076),array('wood'=>18600,'clay'=>7795,'iron'=>8510,'crop'=>1775,'time'=>123752),array('wood'=>19740,'clay'=>8270,'iron'=>9030,'crop'=>1885,'time'=>131311),array('wood'=>20860,'clay'=>8740,'iron'=>9540,'crop'=>1995,'time'=>138762),array('wood'=>21965,'clay'=>9205,'iron'=>10045,'crop'=>2100,'time'=>146114),array('wood'=>23055,'clay'=>9660,'iron'=>10545,'crop'=>2205,'time'=>153376),array('wood'=>24135,'clay'=>10115,'iron'=>11040,'crop'=>2305,'time'=>160552),array('wood'=>25200,'clay'=>10560,'iron'=>11530,'crop'=>2410,'time'=>167649),array('wood'=>26255,'clay'=>11005,'iron'=>12010,'crop'=>2510,'time'=>174671));
|
||||
$ab88=array(1=>array('wood'=>1100,'clay'=>1590,'iron'=>780,'crop'=>120,'time'=>28800),array('wood'=>1920,'clay'=>2770,'iron'=>1360,'crop'=>210,'time'=>50144),array('wood'=>2655,'clay'=>3835,'iron'=>1880,'crop'=>290,'time'=>69357),array('wood'=>3340,'clay'=>4825,'iron'=>2365,'crop'=>365,'time'=>87305),array('wood'=>3990,'clay'=>5770,'iron'=>2825,'crop'=>435,'time'=>104368),array('wood'=>4620,'clay'=>6675,'iron'=>3270,'crop'=>505,'time'=>120757),array('wood'=>5225,'clay'=>7550,'iron'=>3700,'crop'=>570,'time'=>136606),array('wood'=>5815,'clay'=>8400,'iron'=>4115,'crop'=>635,'time'=>152007),array('wood'=>6390,'clay'=>9230,'iron'=>4525,'crop'=>695,'time'=>167027),array('wood'=>6950,'clay'=>10045,'iron'=>4920,'crop'=>755,'time'=>181716),array('wood'=>7500,'clay'=>10840,'iron'=>5310,'crop'=>815,'time'=>196113),array('wood'=>8045,'clay'=>11620,'iron'=>5695,'crop'=>875,'time'=>210251),array('wood'=>8575,'clay'=>12390,'iron'=>6070,'crop'=>935,'time'=>224154),array('wood'=>9100,'clay'=>13145,'iron'=>6440,'crop'=>990,'time'=>237845),array('wood'=>9615,'clay'=>13890,'iron'=>6805,'crop'=>1045,'time'=>251342),array('wood'=>10125,'clay'=>14625,'iron'=>7170,'crop'=>1105,'time'=>264660),array('wood'=>10625,'clay'=>15355,'iron'=>7525,'crop'=>1160,'time'=>277812),array('wood'=>11125,'clay'=>16070,'iron'=>7875,'crop'=>1210,'time'=>290811),array('wood'=>11615,'clay'=>16780,'iron'=>8225,'crop'=>1265,'time'=>303665),array('wood'=>12100,'clay'=>17485,'iron'=>8570,'crop'=>1320,'time'=>316385));
|
||||
?>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$unitsbytype=array('infantry'=>array(1,2,3,11,12,13,14,21,22,31,32,33,34,41,42,43,44),'cavalry'=>array(4,5,6,15,16,23,24,25,26,35,36,45,46),'siege'=>array(7,8,17,18,27,28,37,38,47,48),'ram'=>array(7,17,27,47),'catapult'=>array(8,18,28,48),'expansion'=>array(9,10,19,20,29,30,39,40,49,50),'scout'=>array(4,14,23,44),'chief'=>array(9,19,29,49));
|
||||
$unitsbytype=array('infantry'=>array(1,2,3,11,12,13,14,21,22,31,32,33,34,41,42,43,44,51,52,61,62,63,71,72,73,74,81,82,83,84),'cavalry'=>array(4,5,6,15,16,23,24,25,26,35,36,45,46,53,54,55,56,64,65,66,75,76,85,86),'siege'=>array(7,8,17,18,27,28,37,38,47,48,57,58,67,68,77,78,87,88),'ram'=>array(7,17,27,47,57,67,77,87),'catapult'=>array(8,18,28,48,58,68,78,88),'expansion'=>array(9,10,19,20,29,30,39,40,49,50,59,60,69,70,79,80,89,90),'scout'=>array(4,14,23,44,52,64,74,82),'chief'=>array(9,19,29,49,59,69,79,89));
|
||||
|
||||
$u1=array('atk'=>40,'di'=>35,'dc'=>50,'wood'=>120,'clay'=>100,'iron'=>150,'crop'=>30,'pop'=>1,'speed'=>6,'time'=>1600,'cap'=>50);
|
||||
$u2=array('atk'=>30,'di'=>65,'dc'=>35,'wood'=>100,'clay'=>130,'iron'=>160,'crop'=>70,'pop'=>1,'speed'=>5,'time'=>1760,'cap'=>20);
|
||||
@@ -72,6 +72,50 @@ $u47=array('atk'=>250,'di'=>120,'dc'=>150,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>
|
||||
$u48=array('atk'=>60,'di'=>45,'dc'=>10,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>5,'speed'=>3,'time'=>0,'cap'=>0);
|
||||
$u49=array('atk'=>80,'di'=>50,'dc'=>50,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>1,'speed'=>5,'time'=>0,'cap'=>0);
|
||||
$u50=array('atk'=>30,'di'=>40,'dc'=>40,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>1,'speed'=>5,'time'=>0,'cap'=>0);
|
||||
//HUN UNITS (TRIBE 6)
|
||||
$u51=array('atk'=>35,'di'=>40,'dc'=>30,'wood'=>130,'clay'=>80,'iron'=>40,'crop'=>40,'pop'=>1,'speed'=>6,'time'=>1120,'cap'=>50);
|
||||
$u52=array('atk'=>0,'di'=>20,'dc'=>10,'wood'=>170,'clay'=>150,'iron'=>20,'crop'=>40,'pop'=>2,'speed'=>19,'time'=>1360,'cap'=>0);
|
||||
$u53=array('atk'=>120,'di'=>30,'dc'=>15,'wood'=>290,'clay'=>370,'iron'=>190,'crop'=>45,'pop'=>2,'speed'=>16,'time'=>2400,'cap'=>75);
|
||||
$u54=array('atk'=>110,'di'=>80,'dc'=>70,'wood'=>320,'clay'=>350,'iron'=>330,'crop'=>50,'pop'=>2,'speed'=>15,'time'=>2480,'cap'=>105);
|
||||
$u55=array('atk'=>180,'di'=>60,'dc'=>40,'wood'=>450,'clay'=>560,'iron'=>610,'crop'=>140,'pop'=>3,'speed'=>14,'time'=>2960,'cap'=>80);
|
||||
$u56=array('atk'=>230,'di'=>90,'dc'=>65,'wood'=>660,'clay'=>750,'iron'=>800,'crop'=>180,'pop'=>4,'speed'=>13,'time'=>3520,'cap'=>70);
|
||||
$u57=array('atk'=>65,'di'=>30,'dc'=>90,'wood'=>1060,'clay'=>330,'iron'=>360,'crop'=>70,'pop'=>3,'speed'=>4,'time'=>4400,'cap'=>0);
|
||||
$u58=array('atk'=>45,'di'=>55,'dc'=>10,'wood'=>950,'clay'=>1280,'iron'=>620,'crop'=>60,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0);
|
||||
$u59=array('atk'=>50,'di'=>40,'dc'=>30,'wood'=>37200,'clay'=>27600,'iron'=>25200,'crop'=>27600,'pop'=>5,'speed'=>5,'time'=>90700,'cap'=>0);
|
||||
$u60=array('atk'=>10,'di'=>80,'dc'=>80,'wood'=>6100,'clay'=>4600,'iron'=>4800,'crop'=>5400,'pop'=>1,'speed'=>5,'time'=>28950,'cap'=>3000);
|
||||
//EGYPTIAN UNITS (TRIBE 7)
|
||||
$u61=array('atk'=>10,'di'=>30,'dc'=>20,'wood'=>45,'clay'=>60,'iron'=>30,'crop'=>30,'pop'=>1,'speed'=>7,'time'=>640,'cap'=>20);
|
||||
$u62=array('atk'=>30,'di'=>55,'dc'=>40,'wood'=>115,'clay'=>100,'iron'=>145,'crop'=>60,'pop'=>1,'speed'=>6,'time'=>1450,'cap'=>45);
|
||||
$u63=array('atk'=>25,'di'=>110,'dc'=>80,'wood'=>170,'clay'=>180,'iron'=>220,'crop'=>80,'pop'=>1,'speed'=>6,'time'=>1760,'cap'=>35);
|
||||
$u64=array('atk'=>0,'di'=>20,'dc'=>10,'wood'=>170,'clay'=>150,'iron'=>20,'crop'=>40,'pop'=>2,'speed'=>16,'time'=>1360,'cap'=>0);
|
||||
$u65=array('atk'=>50,'di'=>110,'dc'=>50,'wood'=>360,'clay'=>330,'iron'=>280,'crop'=>120,'pop'=>2,'speed'=>15,'time'=>2560,'cap'=>50);
|
||||
$u66=array('atk'=>110,'di'=>120,'dc'=>150,'wood'=>450,'clay'=>560,'iron'=>610,'crop'=>180,'pop'=>3,'speed'=>10,'time'=>3120,'cap'=>70);
|
||||
$u67=array('atk'=>55,'di'=>30,'dc'=>95,'wood'=>995,'clay'=>575,'iron'=>340,'crop'=>80,'pop'=>3,'speed'=>4,'time'=>4800,'cap'=>0);
|
||||
$u68=array('atk'=>65,'di'=>55,'dc'=>10,'wood'=>980,'clay'=>1510,'iron'=>660,'crop'=>100,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0);
|
||||
$u69=array('atk'=>40,'di'=>50,'dc'=>50,'wood'=>34000,'clay'=>50000,'iron'=>34000,'crop'=>42000,'pop'=>4,'speed'=>4,'time'=>90700,'cap'=>0);
|
||||
$u70=array('atk'=>0,'di'=>80,'dc'=>80,'wood'=>5040,'clay'=>6510,'iron'=>4830,'crop'=>4620,'pop'=>1,'speed'=>5,'time'=>24800,'cap'=>3000);
|
||||
//SPARTAN UNITS (TRIBE 8)
|
||||
$u71=array('atk'=>50,'di'=>35,'dc'=>30,'wood'=>110,'clay'=>185,'iron'=>110,'crop'=>35,'pop'=>1,'speed'=>6,'time'=>1700,'cap'=>60);
|
||||
$u72=array('atk'=>40,'di'=>85,'dc'=>45,'wood'=>145,'clay'=>95,'iron'=>245,'crop'=>45,'pop'=>1,'speed'=>6,'time'=>1950,'cap'=>40);
|
||||
$u73=array('atk'=>95,'di'=>80,'dc'=>75,'wood'=>130,'clay'=>200,'iron'=>400,'crop'=>65,'pop'=>1,'speed'=>5,'time'=>2200,'cap'=>50);
|
||||
$u74=array('atk'=>0,'di'=>25,'dc'=>12,'wood'=>185,'clay'=>150,'iron'=>35,'crop'=>75,'pop'=>2,'speed'=>16,'time'=>1360,'cap'=>0);
|
||||
$u75=array('atk'=>55,'di'=>120,'dc'=>90,'wood'=>555,'clay'=>445,'iron'=>330,'crop'=>110,'pop'=>2,'speed'=>16,'time'=>2600,'cap'=>110);
|
||||
$u76=array('atk'=>195,'di'=>55,'dc'=>80,'wood'=>660,'clay'=>495,'iron'=>995,'crop'=>165,'pop'=>3,'speed'=>9,'time'=>3450,'cap'=>80);
|
||||
$u77=array('atk'=>65,'di'=>30,'dc'=>85,'wood'=>980,'clay'=>545,'iron'=>390,'crop'=>80,'pop'=>3,'speed'=>4,'time'=>4600,'cap'=>0);
|
||||
$u78=array('atk'=>60,'di'=>55,'dc'=>10,'wood'=>1200,'clay'=>1240,'iron'=>610,'crop'=>80,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0);
|
||||
$u79=array('atk'=>45,'di'=>50,'dc'=>45,'wood'=>33450,'clay'=>30665,'iron'=>36240,'crop'=>27375,'pop'=>4,'speed'=>4,'time'=>90700,'cap'=>0);
|
||||
$u80=array('atk'=>10,'di'=>80,'dc'=>80,'wood'=>5115,'clay'=>5580,'iron'=>6360,'crop'=>4485,'pop'=>1,'speed'=>5,'time'=>26900,'cap'=>3000);
|
||||
//VIKING UNITS (TRIBE 9)
|
||||
$u81=array('atk'=>45,'di'=>30,'dc'=>15,'wood'=>105,'clay'=>85,'iron'=>65,'crop'=>35,'pop'=>1,'speed'=>7,'time'=>960,'cap'=>70);
|
||||
$u82=array('atk'=>0,'di'=>15,'dc'=>8,'wood'=>155,'clay'=>110,'iron'=>45,'crop'=>45,'pop'=>1,'speed'=>10,'time'=>1120,'cap'=>0);
|
||||
$u83=array('atk'=>70,'di'=>35,'dc'=>25,'wood'=>145,'clay'=>135,'iron'=>185,'crop'=>70,'pop'=>1,'speed'=>6,'time'=>1400,'cap'=>55);
|
||||
$u84=array('atk'=>105,'di'=>45,'dc'=>30,'wood'=>190,'clay'=>220,'iron'=>340,'crop'=>90,'pop'=>2,'speed'=>6,'time'=>1960,'cap'=>60);
|
||||
$u85=array('atk'=>100,'di'=>70,'dc'=>55,'wood'=>415,'clay'=>380,'iron'=>305,'crop'=>85,'pop'=>2,'speed'=>12,'time'=>2640,'cap'=>90);
|
||||
$u86=array('atk'=>165,'di'=>95,'dc'=>100,'wood'=>590,'clay'=>640,'iron'=>715,'crop'=>160,'pop'=>3,'speed'=>10,'time'=>3300,'cap'=>75);
|
||||
$u87=array('atk'=>65,'di'=>35,'dc'=>80,'wood'=>1010,'clay'=>415,'iron'=>440,'crop'=>75,'pop'=>3,'speed'=>4,'time'=>4700,'cap'=>0);
|
||||
$u88=array('atk'=>55,'di'=>60,'dc'=>10,'wood'=>930,'clay'=>1350,'iron'=>640,'crop'=>80,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0);
|
||||
$u89=array('atk'=>50,'di'=>45,'dc'=>40,'wood'=>35800,'clay'=>29200,'iron'=>28600,'crop'=>31500,'pop'=>4,'speed'=>5,'time'=>90700,'cap'=>0);
|
||||
$u90=array('atk'=>10,'di'=>80,'dc'=>80,'wood'=>5900,'clay'=>5200,'iron'=>5700,'crop'=>5800,'pop'=>1,'speed'=>5,'time'=>27500,'cap'=>3000);
|
||||
$u99=array('atk'=>0,'di'=>0,'dc'=>0,'wood'=>20,'clay'=>30,'iron'=>10,'crop'=>20,'speed'=>0,'pop'=>0,'time'=>600,'cap'=>0);
|
||||
// Hero data base values and increase per point
|
||||
$h1=array('atk'=>50,'atkp'=>54,'di'=>60,'dip'=>49,'dc'=>85,'dcp'=>62.5);
|
||||
@@ -89,4 +133,29 @@ $h22=array('atk'=>80,'atkp'=>71,'di'=>60,'dip'=>54,'dc'=>35,'dcp'=>38);
|
||||
$h24=array('atk'=>115,'atkp'=>87.5,'di'=>40,'dip'=>42,'dc'=>65,'dcp'=>57);
|
||||
$h25=array('atk'=>55,'atkp'=>57.5,'di'=>190,'dip'=>108.5,'dc'=>90,'dcp'=>60.5);
|
||||
$h26=array('atk'=>175,'atkp'=>121,'di'=>85,'dip'=>55,'dc'=>275,'dcp'=>145);
|
||||
// New tribe heroes - scaled from templates h1/h2/h3/h5/h6 by unit stat ratio
|
||||
//HUN HEROES (TRIBE 6) - no hero for scout u52
|
||||
$h51=array('atk'=>44,'atkp'=>47.5,'di'=>68.5,'dip'=>56,'dc'=>51,'dcp'=>37.5);
|
||||
$h53=array('atk'=>150,'atkp'=>107.5,'di'=>46,'dip'=>33.5,'dc'=>25.5,'dcp'=>17.5);
|
||||
$h54=array('atk'=>137.5,'atkp'=>98.5,'di'=>123,'dip'=>90,'dc'=>119,'dcp'=>82.5);
|
||||
$h55=array('atk'=>225,'atkp'=>147.5,'di'=>101.5,'dip'=>59.5,'dc'=>66.5,'dcp'=>37.5);
|
||||
$h56=array('atk'=>287.5,'atkp'=>188.5,'di'=>152,'dip'=>89,'dc'=>108.5,'dcp'=>61.5);
|
||||
//EGYPTIAN HEROES (TRIBE 7) - no hero for scout u64
|
||||
$h61=array('atk'=>12.5,'atkp'=>13.5,'di'=>51.5,'dip'=>42,'dc'=>34,'dcp'=>25);
|
||||
$h62=array('atk'=>40,'atkp'=>46.5,'di'=>84.5,'dip'=>64,'dc'=>68.5,'dcp'=>54.5);
|
||||
$h63=array('atk'=>33.5,'atkp'=>39,'di'=>169,'dip'=>128,'dc'=>137,'dcp'=>108.5);
|
||||
$h65=array('atk'=>62.5,'atkp'=>45,'di'=>169,'dip'=>123.5,'dc'=>85,'dcp'=>59);
|
||||
$h66=array('atk'=>137.5,'atkp'=>90,'di'=>202.5,'dip'=>118.5,'dc'=>250,'dcp'=>141.5);
|
||||
//SPARTAN HEROES (TRIBE 8) - no hero for scout u74
|
||||
$h71=array('atk'=>62.5,'atkp'=>67.5,'di'=>60,'dip'=>49,'dc'=>51,'dcp'=>37.5);
|
||||
$h72=array('atk'=>53.5,'atkp'=>62,'di'=>131,'dip'=>98.5,'dc'=>77,'dcp'=>61);
|
||||
$h73=array('atk'=>122,'atkp'=>100.5,'di'=>130,'dip'=>114,'dc'=>120,'dcp'=>126);
|
||||
$h75=array('atk'=>69,'atkp'=>49.5,'di'=>184.5,'dip'=>135,'dc'=>153,'dcp'=>106);
|
||||
$h76=array('atk'=>244,'atkp'=>160,'di'=>93,'dip'=>54.5,'dc'=>133.5,'dcp'=>75.5);
|
||||
//VIKING HEROES (TRIBE 9) - no hero for scout u82
|
||||
$h81=array('atk'=>56.5,'atkp'=>61,'di'=>51.5,'dip'=>42,'dc'=>25.5,'dcp'=>19);
|
||||
$h83=array('atk'=>90,'atkp'=>74,'di'=>57,'dip'=>50,'dc'=>40,'dcp'=>42);
|
||||
$h84=array('atk'=>135,'atkp'=>111,'di'=>73,'dip'=>64,'dc'=>48,'dcp'=>50.5);
|
||||
$h85=array('atk'=>125,'atkp'=>89.5,'di'=>107.5,'dip'=>78.5,'dc'=>93.5,'dcp'=>65);
|
||||
$h86=array('atk'=>206.5,'atkp'=>135,'di'=>160.5,'dip'=>94,'dc'=>166.5,'dcp'=>94.5);
|
||||
?>
|
||||
|
||||
@@ -6238,7 +6238,7 @@ References: User ID/Message ID, Mode
|
||||
|
||||
$dbarray = $this->getUnit( $vid );
|
||||
$totalunits = 0;
|
||||
for ( $i = 1; $i <= 50; $i ++ ) {
|
||||
for ( $i = 1; $i <= 90; $i ++ ) {
|
||||
$totalunits += $dbarray[ 'u' . $i ];
|
||||
}
|
||||
|
||||
@@ -6490,6 +6490,72 @@ References: User ID/Message ID, Mode
|
||||
}
|
||||
|
||||
// no need to cache this method
|
||||
|
||||
// ==================== HOSPITAL (raniti + vindecare) ====================
|
||||
|
||||
function getWounded($vid) {
|
||||
list($vid) = $this->escape_input((int)$vid);
|
||||
$result = mysqli_query($this->dblink, "SELECT * FROM " . TB_PREFIX . "hospital WHERE vref = $vid");
|
||||
return $result ? mysqli_fetch_array($result, MYSQLI_ASSOC) : null;
|
||||
}
|
||||
|
||||
function addWounded($vid, array $units, array $amounts) {
|
||||
list($vid) = $this->escape_input((int)$vid);
|
||||
$cols = []; $vals = []; $upd = [];
|
||||
foreach($units as $k => $u) {
|
||||
$u = (int)$u; $a = (int)$amounts[$k];
|
||||
if($a <= 0 || $u < 1 || $u > 90) continue;
|
||||
$cols[] = "u$u"; $vals[] = $a; $upd[] = "u$u = u$u + $a";
|
||||
}
|
||||
if(empty($cols)) return true;
|
||||
$q = "INSERT INTO " . TB_PREFIX . "hospital (vref, " . implode(',', $cols) . ") VALUES ($vid, " . implode(',', $vals) . ") ON DUPLICATE KEY UPDATE " . implode(',', $upd);
|
||||
return mysqli_query($this->dblink, $q);
|
||||
}
|
||||
|
||||
function deductWounded($vid, $unit, $amt) {
|
||||
list($vid, $unit, $amt) = $this->escape_input((int)$vid, (int)$unit, (int)$amt);
|
||||
return mysqli_query($this->dblink, "UPDATE " . TB_PREFIX . "hospital SET u$unit = GREATEST(u$unit - $amt, 0) WHERE vref = $vid");
|
||||
}
|
||||
|
||||
function clearHospital($vid) {
|
||||
list($vid) = $this->escape_input((int)$vid);
|
||||
mysqli_query($this->dblink, "DELETE FROM " . TB_PREFIX . "hospital WHERE vref = $vid");
|
||||
mysqli_query($this->dblink, "DELETE FROM " . TB_PREFIX . "healing WHERE vref = $vid");
|
||||
}
|
||||
|
||||
function getHealing($vid) {
|
||||
list($vid) = $this->escape_input((int)$vid);
|
||||
$result = mysqli_query($this->dblink, "SELECT * FROM " . TB_PREFIX . "healing WHERE vref = $vid ORDER BY id");
|
||||
$rows = [];
|
||||
if($result) while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) $rows[] = $row;
|
||||
return $rows;
|
||||
}
|
||||
|
||||
function getHealingDue($time) {
|
||||
list($time) = $this->escape_input((int)$time);
|
||||
$result = mysqli_query($this->dblink, "SELECT * FROM " . TB_PREFIX . "healing WHERE timestamp2 <= $time AND amt > 0");
|
||||
$rows = [];
|
||||
if($result) while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) $rows[] = $row;
|
||||
return $rows;
|
||||
}
|
||||
|
||||
function healUnit($vid, $unit, $amt, $each) {
|
||||
list($vid, $unit, $amt, $each) = $this->escape_input((int)$vid, (int)$unit, (int)$amt, (int)$each);
|
||||
$now = time();
|
||||
$q = "INSERT INTO " . TB_PREFIX . "healing (vref, unit, amt, timestamp, eachtime, timestamp2) VALUES ($vid, $unit, $amt, $now, $each, " . ($now + $each) . ")";
|
||||
return mysqli_query($this->dblink, $q);
|
||||
}
|
||||
|
||||
function updateHealing($id, $amt, $timestamp2) {
|
||||
list($id, $amt, $timestamp2) = $this->escape_input((int)$id, (int)$amt, (int)$timestamp2);
|
||||
return mysqli_query($this->dblink, "UPDATE " . TB_PREFIX . "healing SET amt = $amt, timestamp2 = $timestamp2 WHERE id = $id");
|
||||
}
|
||||
|
||||
function deleteHealing($id) {
|
||||
list($id) = $this->escape_input((int)$id);
|
||||
return mysqli_query($this->dblink, "DELETE FROM " . TB_PREFIX . "healing WHERE id = $id");
|
||||
}
|
||||
|
||||
function getTraining($vid) {
|
||||
list($vid) = $this->escape_input((int) $vid);
|
||||
|
||||
@@ -6504,24 +6570,16 @@ References: User ID/Message ID, Mode
|
||||
global $technology;
|
||||
|
||||
if(!$mode) {
|
||||
$barracks = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44];
|
||||
// fix by brainiac - THANK YOU
|
||||
$greatbarracks = [61, 62, 63, 71, 72, 73, 74, 81, 82, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104];
|
||||
$stables = [4, 5, 6, 15, 16, 23, 24, 25, 26, 45, 46];
|
||||
$greatstables = [64, 65, 66, 75, 76, 83, 84, 85, 86, 105, 106];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 47, 48];
|
||||
$greatworkshop = [67, 68, 77, 78, 87, 88, 107, 108];
|
||||
$residence = [9, 10, 19, 20, 29, 30, 49, 50];
|
||||
$trapper = [99];
|
||||
// Rutare generica pe tipul unitatii (u1-u90 + offsetul +1000 pentru cladirile mari)
|
||||
global $unitsbytype;
|
||||
$isGreat = $unit > 1000;
|
||||
$baseUnit = $isGreat ? $unit - 1000 : $unit;
|
||||
|
||||
if(in_array($unit, $barracks)) $queued = $technology->getTrainingList(1);
|
||||
elseif(in_array($unit, $stables)) $queued = $technology->getTrainingList(2);
|
||||
elseif(in_array($unit, $workshop)) $queued = $technology->getTrainingList(3);
|
||||
elseif(in_array($unit, $residence)) $queued = $technology->getTrainingList(4);
|
||||
elseif(in_array($unit, $greatbarracks)) $queued = $technology->getTrainingList(5);
|
||||
elseif(in_array($unit, $greatstables)) $queued = $technology->getTrainingList(6);
|
||||
elseif(in_array($unit, $greatworkshop)) $queued = $technology->getTrainingList(7);
|
||||
elseif(in_array($unit, $trapper)) $queued = $technology->getTrainingList(8);
|
||||
if($baseUnit == 99) $queued = $technology->getTrainingList(8);
|
||||
elseif(in_array($baseUnit, $unitsbytype['expansion'])) $queued = $technology->getTrainingList(4);
|
||||
elseif(in_array($baseUnit, $unitsbytype['siege'])) $queued = $technology->getTrainingList($isGreat ? 7 : 3);
|
||||
elseif(in_array($baseUnit, $unitsbytype['cavalry'])) $queued = $technology->getTrainingList($isGreat ? 6 : 2);
|
||||
else $queued = $technology->getTrainingList($isGreat ? 5 : 1);
|
||||
|
||||
$now = time();
|
||||
$uid = $this->getVillageField($vid, "owner");
|
||||
@@ -7524,8 +7582,14 @@ References: User ID/Message ID, Mode
|
||||
$maxslots -= (3 - floor(($palace - 5) / 5));
|
||||
}
|
||||
|
||||
// Command Center (Huni) - sloturi de expansiune ca Residence (nivel 10/20)
|
||||
$commandcenter = $building->getTypeLevel(44);
|
||||
if($commandcenter > 0) {
|
||||
$maxslots -= (3 - floor($commandcenter / 10));
|
||||
}
|
||||
|
||||
// Units at home
|
||||
$q = "SELECT (u10+u20+u30) as R1, (u9+u19+u29) as R2
|
||||
$q = "SELECT (u10+u20+u30+u60+u70+u80+u90) as R1, (u9+u19+u29+u59+u69+u79+u89) as R2
|
||||
FROM " . TB_PREFIX . "units
|
||||
WHERE vref = " . (int)$village->wid;
|
||||
$result = mysqli_query($this->dblink,$q);
|
||||
@@ -7553,14 +7617,14 @@ References: User ID/Message ID, Mode
|
||||
}
|
||||
|
||||
// FIX: Count ALL reinforcements properly (SUM over ALL rows)
|
||||
$q = "SELECT COALESCE(SUM(u10+u20+u30),0) AS s
|
||||
$q = "SELECT COALESCE(SUM(u10+u20+u30+u60+u70+u80+u90),0) AS s
|
||||
FROM " . TB_PREFIX . "enforcement
|
||||
WHERE `from` = " . (int)$village->wid;
|
||||
$result = mysqli_query($this->dblink,$q);
|
||||
$row = mysqli_fetch_array($result, MYSQLI_ASSOC);
|
||||
$settlers += (int)$row['s'];
|
||||
|
||||
$q = "SELECT COALESCE(SUM(u9+u19+u29),0) AS c
|
||||
$q = "SELECT COALESCE(SUM(u9+u19+u29+u59+u69+u79+u89),0) AS c
|
||||
FROM " . TB_PREFIX . "enforcement
|
||||
WHERE `from` = " . (int)$village->wid;
|
||||
$result = mysqli_query($this->dblink,$q);
|
||||
|
||||
@@ -88,6 +88,10 @@ class MyGenerator
|
||||
if ($ref == 1) $speed = 16;
|
||||
elseif ($ref == 2) $speed = 12;
|
||||
elseif ($ref == 3) $speed = 24;
|
||||
elseif ($ref == 6) $speed = 20;
|
||||
elseif ($ref == 7) $speed = 16;
|
||||
elseif ($ref == 8) $speed = 14;
|
||||
elseif ($ref == 9) $speed = 18;
|
||||
elseif ($ref == 300) $speed = 5;
|
||||
else $speed = 1;
|
||||
} else {
|
||||
|
||||
@@ -29,6 +29,10 @@ tz_def('TRIBE2', 'Teutons');
|
||||
tz_def('TRIBE3', 'Gauls');
|
||||
tz_def('TRIBE4', 'Nature');
|
||||
tz_def('TRIBE5', 'Natars');
|
||||
tz_def('TRIBE6', 'Huns');
|
||||
tz_def('TRIBE7', 'Egyptians');
|
||||
tz_def('TRIBE8', 'Spartans');
|
||||
tz_def('TRIBE9', 'Vikings');
|
||||
|
||||
tz_def('HOME', 'Homepage');
|
||||
tz_def('INSTRUCT', 'Instructions');
|
||||
@@ -716,6 +720,50 @@ tz_def('U47', 'War Elephant');
|
||||
tz_def('U48', 'Ballista');
|
||||
tz_def('U49', 'Natarian Emperor');
|
||||
tz_def('U50', 'Natarian Settler');
|
||||
//HUNS (TRIBE 6)
|
||||
tz_def('U51', 'Hun Warrior');
|
||||
tz_def('U52', 'Scout Rider');
|
||||
tz_def('U53', 'Horse Archer');
|
||||
tz_def('U54', 'Steppe Rider');
|
||||
tz_def('U55', 'Hun Lancer');
|
||||
tz_def('U56', 'Elite Rider');
|
||||
tz_def('U57', 'Ram');
|
||||
tz_def('U58', 'Catapult');
|
||||
tz_def('U59', 'Tribal Chief');
|
||||
tz_def('U60', 'Hun Settler');
|
||||
//EGYPTIANS (TRIBE 7)
|
||||
tz_def('U61', 'Armed Slave');
|
||||
tz_def('U62', 'Egyptian Fighter');
|
||||
tz_def('U63', 'Temple Guardian');
|
||||
tz_def('U64', 'Horse Scout');
|
||||
tz_def('U65', 'Chariot');
|
||||
tz_def('U66', 'Royal Chariot');
|
||||
tz_def('U67', 'Ram');
|
||||
tz_def('U68', 'Catapult');
|
||||
tz_def('U69', 'Nomarch');
|
||||
tz_def('U70', 'Egyptian Settler');
|
||||
//SPARTANS (TRIBE 8)
|
||||
tz_def('U71', 'Spartan Hoplite');
|
||||
tz_def('U72', 'Agoge Warrior');
|
||||
tz_def('U73', 'Homoioi');
|
||||
tz_def('U74', 'Perioikoi Scout');
|
||||
tz_def('U75', 'Spartan Rider');
|
||||
tz_def('U76', 'Hippeis');
|
||||
tz_def('U77', 'Ram');
|
||||
tz_def('U78', 'Catapult');
|
||||
tz_def('U79', 'Ephor');
|
||||
tz_def('U80', 'Spartan Settler');
|
||||
//VIKINGS (TRIBE 9)
|
||||
tz_def('U81', 'Viking Raider');
|
||||
tz_def('U82', 'Viking Scout');
|
||||
tz_def('U83', 'Axeman');
|
||||
tz_def('U84', 'Berserker');
|
||||
tz_def('U85', 'Viking Rider');
|
||||
tz_def('U86', 'Huscarl');
|
||||
tz_def('U87', 'Ram');
|
||||
tz_def('U88', 'Catapult');
|
||||
tz_def('U89', 'Jarl');
|
||||
tz_def('U90', 'Viking Settler');
|
||||
|
||||
//INDEX.php
|
||||
tz_def('LOGIN', 'Login');
|
||||
@@ -1314,6 +1362,73 @@ tz_def('GREATWORKSHOP', 'Great Workshop');
|
||||
tz_def('TRAINING_COMMENCE_GREATWORKSHOP', 'Training can commence when great workshop is completed.');
|
||||
tz_def('GREATWORKSHOP_DESC', 'The Great Workshop allows you to build a second Workshop in the same village, but catapults and rams cost 3 times the original amount.<br>Combined with the regular Workshop, you can train your troops twice as fast in one village');
|
||||
|
||||
tz_def('STONEWALL', 'Stone Wall');
|
||||
tz_def('STONEWALL_DESC', 'The Stone Wall protects your village against the attacks of other players. Its solid construction grants a high defence bonus.<br>Tribe-specific: Egyptians only');
|
||||
tz_def('MAKESHIFTWALL', 'Makeshift Wall');
|
||||
tz_def('MAKESHIFTWALL_DESC', 'The Makeshift Wall offers basic protection for your village. It is cheap and quick to build, but grants only a small defence bonus.<br>Tribe-specific: Huns only');
|
||||
tz_def('COMMANDCENTER', 'Command Center');
|
||||
tz_def('COMMANDCENTER_TRAIN_DESC', 'You need at least level 10 to train settlers and chiefs in the Command Center.');
|
||||
tz_def('COMMANDCENTER_CULTURE_DESC', 'Culture points determine how many villages you may found or conquer.');
|
||||
tz_def('COMMANDCENTER_LOYALTY_DESC', 'The Command Center protects the village against enemy chiefs. Current loyalty:');
|
||||
tz_def('COMMANDCENTER_DESC', 'The Command Center is the seat of power of a Hun village. It allows you to train settlers and chiefs and to control your expansion without needing a Residence or Palace.<br>Tribe-specific: Huns only');
|
||||
tz_def('WATERWORKS', 'Waterworks');
|
||||
tz_def('WATERWORKS_DESC', 'The Waterworks increases the bonus given by the oases annexed to this village by 5% per level.<br>Tribe-specific: Egyptians only');
|
||||
tz_def('HOSPITAL', 'Hospital');
|
||||
tz_def('HOSPITAL_DESC', 'The Hospital takes care of your wounded troops. A part of the units lost while defending or attacking can be healed here instead of being lost forever. Higher levels reduce the healing time.');
|
||||
tz_def('DEFENSIVEWALL', 'Defensive Wall');
|
||||
tz_def('DEFENSIVEWALL_DESC', 'The Defensive Wall protects your village against the attacks of other players. Built in the tradition of the great Spartan fortifications, it grants a strong defence bonus.<br>Tribe-specific: Spartans only');
|
||||
tz_def('BIGHOSPITAL', 'Big Hospital');
|
||||
tz_def('BIGHOSPITAL_DESC', 'The Big Hospital is a larger version of the Hospital, allowing even more of your wounded troops to be healed after battle. Higher levels reduce the healing time.<br>Tribe-specific: Spartans and Vikings only');
|
||||
tz_def('BARRICADE', 'Barricade');
|
||||
tz_def('HEALING_TIME_NOW', 'Healing time now');
|
||||
tz_def('WOUNDED_TROOPS', 'Wounded troops');
|
||||
tz_def('NO_WOUNDED', 'There are no wounded troops in the hospital.');
|
||||
tz_def('HEAL_BUTTON', 'Heal');
|
||||
tz_def('HEAL_COST_HINT', 'Healing costs 50% of the unit training cost.');
|
||||
tz_def('HEALING_IN_PROGRESS', 'Healing in progress');
|
||||
tz_def('MANUAL_UDESC_51', "The Hun Warrior is the backbone of the Hun infantry. Cheap and quick to train, he is a decent all-round soldier for early raids and basic defence.");
|
||||
tz_def('MANUAL_UDESC_52', "The Scout Rider spies out enemy villages at great speed. He can only be seen by other scouts and carries no weapons for battle.");
|
||||
tz_def('MANUAL_UDESC_53', "The Horse Archer strikes from the saddle with deadly arrows. A fast raider with a good balance between attack power and carrying capacity.");
|
||||
tz_def('MANUAL_UDESC_54', "The Steppe Rider is a swift skirmisher of the plains. His speed makes him ideal for quick raids on undefended villages.");
|
||||
tz_def('MANUAL_UDESC_55', "The Hun Lancer charges with a heavy lance. A powerful offensive cavalry unit that also holds his ground against enemy horsemen.");
|
||||
tz_def('MANUAL_UDESC_56', "The Elite Rider is the pride of the Hun horde. Extremely strong in attack, he crushes everything in his path, but his training is expensive.");
|
||||
tz_def('MANUAL_UDESC_57', "The Ram is a heavy war machine that batters enemy walls. Protect it well, as it is slow and defenceless on its own.");
|
||||
tz_def('MANUAL_UDESC_58', "The Catapult hurls stones over great distances to destroy enemy buildings and fields. It must be well protected by other troops.");
|
||||
tz_def('MANUAL_UDESC_59', "The Tribal Chief lowers the loyalty of enemy villages with his fearsome presence until they join the Hun horde.");
|
||||
tz_def('MANUAL_UDESC_60', "Settlers are brave subjects who move out to found a new village for the Huns. Three of them are needed, with supplies.");
|
||||
tz_def('MANUAL_UDESC_61', "The Armed Slave is cheap and quick to train. Individually weak, but in great numbers he can overwhelm defences at little cost.");
|
||||
tz_def('MANUAL_UDESC_62', "The Egyptian Fighter is a solid infantry soldier of the Pharaoh, useful both in attack and in the defence of the realm.");
|
||||
tz_def('MANUAL_UDESC_63', "The Temple Guardian protects the holy places of Egypt. An excellent defensive unit against enemy infantry.");
|
||||
tz_def('MANUAL_UDESC_64', "The Horse Scout rides ahead of the army to spy out enemy villages. Only enemy scouts can stop or see him.");
|
||||
tz_def('MANUAL_UDESC_65', "The Chariot races across the battlefield, running down infantry. A strong defensive cavalry unit of the Egyptian army.");
|
||||
tz_def('MANUAL_UDESC_66', "The Royal Chariot carries the elite of the Egyptian army. Devastating in attack and a symbol of the Pharaoh's power.");
|
||||
tz_def('MANUAL_UDESC_67', "The Ram is a heavy war machine that batters enemy walls. Protect it well, as it is slow and defenceless on its own.");
|
||||
tz_def('MANUAL_UDESC_68', "The Catapult hurls stones over great distances to destroy enemy buildings and fields. It must be well protected by other troops.");
|
||||
tz_def('MANUAL_UDESC_69', "The Nomarch persuades enemy villages with gifts and speeches, lowering their loyalty until they join the Egyptian empire.");
|
||||
tz_def('MANUAL_UDESC_70', "Settlers are brave subjects who move out to found a new village for Egypt. Three of them are needed, with supplies.");
|
||||
tz_def('MANUAL_UDESC_71', "The Spartan Hoplite fights in the famous phalanx. An outstanding all-round infantry soldier, strong in attack and defence alike.");
|
||||
tz_def('MANUAL_UDESC_72', "The Agoge Warrior was raised for war since childhood. A cheap, sturdy defender of the Spartan homeland.");
|
||||
tz_def('MANUAL_UDESC_73', "The Homoioi are the equals, full citizens of Sparta. Heavy infantry with tremendous attacking power.");
|
||||
tz_def('MANUAL_UDESC_74', "The Perioikoi Scout observes enemy movements for Sparta. Only enemy scouts can see or stop him.");
|
||||
tz_def('MANUAL_UDESC_75', "The Spartan Rider patrols the borders of Lacedaemon. A fast cavalry unit with balanced combat values.");
|
||||
tz_def('MANUAL_UDESC_76', "The Hippeis are the royal guard of the Spartan kings. Elite cavalry that excels in attack.");
|
||||
tz_def('MANUAL_UDESC_77', "The Ram is a heavy war machine that batters enemy walls. Protect it well, as it is slow and defenceless on its own.");
|
||||
tz_def('MANUAL_UDESC_78', "The Catapult hurls stones over great distances to destroy enemy buildings and fields. It must be well protected by other troops.");
|
||||
tz_def('MANUAL_UDESC_79', "The Ephor speaks with the authority of Sparta, lowering the loyalty of enemy villages until they submit.");
|
||||
tz_def('MANUAL_UDESC_80', "Settlers are brave subjects who move out to found a new village for Sparta. Three of them are needed, with supplies.");
|
||||
tz_def('MANUAL_UDESC_81', "The Viking Raider lives for plunder. Quick to train and always ready to sail out for the next raid.");
|
||||
tz_def('MANUAL_UDESC_82', "The Viking Scout slips unseen into enemy lands to gather information. Only enemy scouts can catch him.");
|
||||
tz_def('MANUAL_UDESC_83', "The Axeman swings his great axe with brutal force. A strong offensive infantry unit of the North.");
|
||||
tz_def('MANUAL_UDESC_84', "The Berserker fights in a battle frenzy, fearing neither pain nor death. Devastating in attack, weak in defence.");
|
||||
tz_def('MANUAL_UDESC_85', "The Viking Rider combines northern toughness with the speed of a horse. A versatile cavalry unit.");
|
||||
tz_def('MANUAL_UDESC_86', "The Huscarl is the sworn bodyguard of the Jarl. Elite heavy cavalry, feared across all the seas.");
|
||||
tz_def('MANUAL_UDESC_87', "The Ram is a heavy war machine that batters enemy walls. Protect it well, as it is slow and defenceless on its own.");
|
||||
tz_def('MANUAL_UDESC_88', "The Catapult hurls stones over great distances to destroy enemy buildings and fields. It must be well protected by other troops.");
|
||||
tz_def('MANUAL_UDESC_89', "The Jarl bends enemy villages to his will, lowering their loyalty until they swear allegiance to the North.");
|
||||
tz_def('MANUAL_UDESC_90', "Settlers are brave subjects who move out to found a new village for the Vikings. Three of them are needed, with supplies.");
|
||||
tz_def('HEALING_TIME_LEVEL', 'Healing time at level');
|
||||
tz_def('BARRICADE_DESC', 'The Barricade protects your village against the attacks of other players. Its layered wooden construction grants a solid defence bonus.<br>Tribe-specific: Vikings only');
|
||||
|
||||
tz_def('BUILDING_MAX_LEVEL_UNDER', 'Building max level under construction');
|
||||
tz_def('BUILDING_BEING_DEMOLISHED', 'Building presently being demolished');
|
||||
tz_def('COSTS_UPGRADING_LEVEL', 'Costs</b> for upgrading to level');
|
||||
@@ -2226,6 +2341,10 @@ tz_def('TZ_THE_LARGEST_GAULS', 'The largest Gauls');
|
||||
tz_def('TZ_THE_LARGEST_PLAYERS', 'The largest players');
|
||||
tz_def('TZ_THE_LARGEST_ROMANS', 'The largest Romans');
|
||||
tz_def('TZ_THE_LARGEST_TEUTONS', 'The largest Teutons');
|
||||
tz_def('TZ_THE_LARGEST_HUNS', 'The largest Huns');
|
||||
tz_def('TZ_THE_LARGEST_EGYPTIANS', 'The largest Egyptians');
|
||||
tz_def('TZ_THE_LARGEST_SPARTANS', 'The largest Spartans');
|
||||
tz_def('TZ_THE_LARGEST_VIKINGS', 'The largest Vikings');
|
||||
tz_def('TZ_THE_LARGEST_VILLAGES', 'The largest villages');
|
||||
tz_def('TZ_THE_MOST_EXPERIENCED_HEROES', 'The most experienced heroes');
|
||||
tz_def('TZ_THE_MOST_SUCCESSFUL_ATTACKERS', 'The most successful attackers');
|
||||
|
||||
@@ -171,9 +171,9 @@ class Market
|
||||
);
|
||||
|
||||
// Merchant carry capacity
|
||||
$this->maxcarry = ($session->tribe == 1)
|
||||
? 500
|
||||
: (($session->tribe == 2) ? 1000 : 750);
|
||||
// Capacitate negustor per trib: 1=500, 2=1000, 3=750, 6=500, 7=750, 8=500, 9=750
|
||||
$carrymap = array(1 => 500, 2 => 1000, 3 => 750, 6 => 500, 7 => 750, 8 => 500, 9 => 750);
|
||||
$this->maxcarry = isset($carrymap[$session->tribe]) ? $carrymap[$session->tribe] : 750;
|
||||
|
||||
$this->maxcarry *= TRADER_CAPACITY;
|
||||
|
||||
|
||||
@@ -102,6 +102,22 @@
|
||||
$this->procRankRaceArray(3);
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
break;
|
||||
case 16:
|
||||
$this->procRankRaceArray(6);
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
break;
|
||||
case 17:
|
||||
$this->procRankRaceArray(7);
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
break;
|
||||
case 18:
|
||||
$this->procRankRaceArray(8);
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
break;
|
||||
case 19:
|
||||
$this->procRankRaceArray(9);
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
break;
|
||||
case 31:
|
||||
$this->procAttRankArray();
|
||||
$this->setStartByRank($session->uid, "userid");
|
||||
@@ -260,7 +276,7 @@
|
||||
|
||||
if($GLOBALS['db']->countUser() > 0){
|
||||
$holder = array();
|
||||
$tribeCondition = SHOW_NATARS ? "(u.tribe <= 5) AND (u.id > 5 OR u.id = 3)" : "u.tribe <= 3 AND u.id > 5";
|
||||
$tribeCondition = SHOW_NATARS ? "(u.tribe <= 9) AND (u.id > 5 OR u.id = 3)" : "u.tribe IN (1,2,3,6,7,8,9) AND u.id > 5";
|
||||
$q = "
|
||||
SELECT
|
||||
u.id AS userid,
|
||||
@@ -352,7 +368,7 @@
|
||||
$holder = array();
|
||||
$q = "SELECT u.id AS userid, u.username, u.apall, COUNT(CASE WHEN v.type != 99 THEN v.wref END) AS totalvillages, COALESCE(SUM(v.pop),0) AS pop
|
||||
FROM " . TB_PREFIX . "users u LEFT JOIN " . TB_PREFIX . "vdata v ON v.owner = u.id
|
||||
WHERE u.apall >= 0 AND u.access < " . (INCLUDE_ADMIN ? 10 : 8) . " AND u.tribe <= 3 AND u.id > 5
|
||||
WHERE u.apall >= 0 AND u.access < " . (INCLUDE_ADMIN ? 10 : 8) . " AND u.tribe IN (1,2,3,6,7,8,9) AND u.id > 5
|
||||
GROUP BY u.id ORDER BY u.apall DESC, pop DESC, u.id DESC";
|
||||
$result = mysqli_query($database->dblink,$q) or die(mysqli_error($database->dblink));
|
||||
$datas = [];
|
||||
@@ -380,7 +396,7 @@
|
||||
$holder = array();
|
||||
$q = "SELECT u.id AS userid, u.username, u.dpall, COUNT(CASE WHEN v.type != 99 THEN v.wref END) AS totalvillages, COALESCE(SUM(v.pop),0) AS pop
|
||||
FROM " . TB_PREFIX . "users u LEFT JOIN " . TB_PREFIX . "vdata v ON v.owner = u.id
|
||||
WHERE u.dpall >= 0 AND u.access < " . (INCLUDE_ADMIN ? 10 : 8) . " AND u.tribe <= 3 AND u.id > 5
|
||||
WHERE u.dpall >= 0 AND u.access < " . (INCLUDE_ADMIN ? 10 : 8) . " AND u.tribe IN (1,2,3,6,7,8,9) AND u.id > 5
|
||||
GROUP BY u.id ORDER BY u.dpall DESC, pop DESC, u.id DESC";
|
||||
$result = mysqli_query($database->dblink,$q) or die(mysqli_error($database->dblink));
|
||||
$datas = [];
|
||||
|
||||
@@ -44,7 +44,7 @@ include_once($autoprefix."GameEngine/Lang/en.php");
|
||||
|
||||
class Technology {
|
||||
|
||||
public $unarray = [1 => U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50 , U99, U0];
|
||||
public $unarray = [1 => U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51, U52, U53, U54, U55, U56, U57, U58, U59, U60, U61, U62, U63, U64, U65, U66, U67, U68, U69, U70, U71, U72, U73, U74, U75, U76, U77, U78, U79, U80, U81, U82, U83, U84, U85, U86, U87, U88, U89, U90 , U99, U0];
|
||||
|
||||
public function grabAcademyRes() {
|
||||
global $village;
|
||||
@@ -93,10 +93,55 @@ class Technology {
|
||||
case "t3":
|
||||
$this->procTrain($post,true);
|
||||
break;
|
||||
case "heal":
|
||||
$this->procHeal($post);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Vindecarea ranitilor din Spital (46) / Spitalul Mare (48).
|
||||
* Cost: 50% din costul de antrenare al unitatii.
|
||||
* Timp per unitate: unit_time x attri (1.0 -> 0.1351) / SPEED.
|
||||
*/
|
||||
private function procHeal($post) {
|
||||
global $building, $database, $village;
|
||||
global $bid46, $bid48;
|
||||
|
||||
$unit = isset($post['hunit']) ? (int)$post['hunit'] : 0;
|
||||
$amt = isset($post['hamt'][$unit]) ? (int)$post['hamt'][$unit] : 0;
|
||||
if($unit < 1 || $unit > 90 || $amt <= 0) return;
|
||||
|
||||
$hospital = $building->getTypeLevel(46);
|
||||
$bighospital = $building->getTypeLevel(48);
|
||||
if($hospital <= 0 && $bighospital <= 0) return;
|
||||
|
||||
// doar raniti existenti in spitalul acestui sat
|
||||
$wounded = $database->getWounded($village->wid);
|
||||
$available = !empty($wounded) && isset($wounded['u'.$unit]) ? (int)$wounded['u'.$unit] : 0;
|
||||
if($available <= 0) return;
|
||||
if($amt > $available) $amt = $available;
|
||||
|
||||
if(!isset($GLOBALS['u'.$unit])) return;
|
||||
$unitdata = $GLOBALS['u'.$unit];
|
||||
|
||||
// cost: jumatate din costul de antrenare
|
||||
$wood = (int)ceil($unitdata['wood'] * $amt / 2);
|
||||
$clay = (int)ceil($unitdata['clay'] * $amt / 2);
|
||||
$iron = (int)ceil($unitdata['iron'] * $amt / 2);
|
||||
$crop = (int)ceil($unitdata['crop'] * $amt / 2);
|
||||
|
||||
$attri = $bighospital > 0 ? $bid48[$bighospital]['attri'] : $bid46[$hospital]['attri'];
|
||||
$each = (int)round($unitdata['time'] * $attri / SPEED);
|
||||
if($each < 1) $each = 1;
|
||||
|
||||
if($database->modifyResource($village->wid, $wood, $clay, $iron, $crop, 0)) {
|
||||
$database->deductWounded($village->wid, $unit, $amt);
|
||||
$database->healUnit($village->wid, $unit, $amt, $each);
|
||||
}
|
||||
}
|
||||
|
||||
public function procTechno($get) {
|
||||
global $village;
|
||||
if(isset($get['a'])) {
|
||||
@@ -118,14 +163,14 @@ class Technology {
|
||||
global $database,$village;
|
||||
$trainingarray = $database->getTraining($village->wid);
|
||||
$listarray = [];
|
||||
$barracks = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44];
|
||||
// fix by brainiac - THANK YOU
|
||||
$greatbarracks = [61, 62, 63, 71, 72, 73, 74, 81, 82, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104];
|
||||
$stables = [4, 5, 6, 15, 16, 23, 24, 25, 26, 45, 46];
|
||||
$greatstables = [64, 65, 66, 75, 76, 83, 84, 85, 86, 105, 106];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 47, 48];
|
||||
$greatworkshop = [67, 68, 77, 78, 87, 88, 107, 108];
|
||||
$residence = [9, 10, 19, 20, 29, 30, 49, 50];
|
||||
$barracks = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 51, 52, 61, 62, 63, 71, 72, 73, 74, 81, 82, 83, 84];
|
||||
$stables = [4, 5, 6, 15, 16, 23, 24, 25, 26, 45, 46, 53, 54, 55, 56, 64, 65, 66, 75, 76, 85, 86];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 47, 48, 57, 58, 67, 68, 77, 78, 87, 88];
|
||||
$residence = [9, 10, 19, 20, 29, 30, 49, 50, 59, 60, 69, 70, 79, 80, 89, 90];
|
||||
// great buildings: offset +1000 (vechiul +60 intra in coliziune cu unitatile reale 51-90)
|
||||
$greatbarracks = array_map(function($u){ return $u + 1000; }, $barracks);
|
||||
$greatstables = array_map(function($u){ return $u + 1000; }, $stables);
|
||||
$greatworkshop = array_map(function($u){ return $u + 1000; }, $workshop);
|
||||
$trapper = [99];
|
||||
|
||||
$categories = [
|
||||
@@ -133,9 +178,9 @@ class Technology {
|
||||
2 => [$stables, 0, null],
|
||||
3 => [$workshop, 0, null],
|
||||
4 => [$residence, 0, null],
|
||||
5 => [$greatbarracks, 60, null],
|
||||
6 => [$greatstables, 60, null],
|
||||
7 => [$greatworkshop, 60, null],
|
||||
5 => [$greatbarracks, 1000, null],
|
||||
6 => [$greatstables, 1000, null],
|
||||
7 => [$greatworkshop, 1000, null],
|
||||
8 => [$trapper, 0, 'Trap'],
|
||||
];
|
||||
|
||||
@@ -218,7 +263,7 @@ class Technology {
|
||||
*/
|
||||
private function addUnits(&$ownunit, $sources, $includeHero = true) {
|
||||
foreach($sources as $src){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
$ownunit['u' . $i] += $src['u' . $i];
|
||||
}
|
||||
if($includeHero) $ownunit['hero'] += $src['hero'];
|
||||
@@ -267,7 +312,7 @@ class Technology {
|
||||
if(!$InVillageOnly){
|
||||
$movement = $database->getVillageMovement($base);
|
||||
if(!empty($movement)){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
for($i = 1; $i <= 90; $i++){
|
||||
if(!isset($ownunit['u'.$i])) $ownunit['u'.$i] = 0;
|
||||
$ownunit['u'.$i] += (isset($movement['u'.$i]) ? $movement['u'.$i] : 0);
|
||||
}
|
||||
@@ -337,6 +382,54 @@ class Technology {
|
||||
|
||||
case 41:
|
||||
case 50: return $session->tribe == 5;
|
||||
|
||||
case 52:
|
||||
case 53:
|
||||
case 54:
|
||||
case 55:
|
||||
case 56:
|
||||
case 57:
|
||||
case 58:
|
||||
case 59: return $session->tribe == 6 && $this->getTech($unit);
|
||||
|
||||
case 51:
|
||||
case 60: return $session->tribe == 6;
|
||||
|
||||
case 62:
|
||||
case 63:
|
||||
case 64:
|
||||
case 65:
|
||||
case 66:
|
||||
case 67:
|
||||
case 68:
|
||||
case 69: return $session->tribe == 7 && $this->getTech($unit);
|
||||
|
||||
case 61:
|
||||
case 70: return $session->tribe == 7;
|
||||
|
||||
case 72:
|
||||
case 73:
|
||||
case 74:
|
||||
case 75:
|
||||
case 76:
|
||||
case 77:
|
||||
case 78:
|
||||
case 79: return $session->tribe == 8 && $this->getTech($unit);
|
||||
|
||||
case 71:
|
||||
case 80: return $session->tribe == 8;
|
||||
|
||||
case 82:
|
||||
case 83:
|
||||
case 84:
|
||||
case 85:
|
||||
case 86:
|
||||
case 87:
|
||||
case 88:
|
||||
case 89: return $session->tribe == 9 && $this->getTech($unit);
|
||||
|
||||
case 81:
|
||||
case 90: return $session->tribe == 9;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -358,7 +451,11 @@ class Technology {
|
||||
(!empty($post['t19']) && !empty($post['t20'])) ||
|
||||
(!empty($post['t29']) && !empty($post['t30'])) ||
|
||||
(!empty($post['t39']) && !empty($post['t40'])) ||
|
||||
(!empty($post['t49']) && !empty($post['t50']))
|
||||
(!empty($post['t49']) && !empty($post['t50'])) ||
|
||||
(!empty($post['t59']) && !empty($post['t60'])) ||
|
||||
(!empty($post['t69']) && !empty($post['t70'])) ||
|
||||
(!empty($post['t79']) && !empty($post['t80'])) ||
|
||||
(!empty($post['t89']) && !empty($post['t90']))
|
||||
)
|
||||
) {
|
||||
$start = ($session->tribe - 1) * 10 + 1;
|
||||
@@ -394,7 +491,7 @@ class Technology {
|
||||
|
||||
if(!$type){
|
||||
$start = 1;
|
||||
$end = 50;
|
||||
$end = 90;
|
||||
}else{
|
||||
$start = ($type - 1) * 10 + 1;
|
||||
$end = $type * 10;
|
||||
@@ -443,7 +540,7 @@ class Technology {
|
||||
$crop = ${'u'.$unit}['crop'] * $amt * ($great ? 3 : 1);
|
||||
|
||||
if($database->modifyResource($village->wid, $wood , $clay, $iron, $crop, 0) && $amt > 0) {
|
||||
$database->trainUnit($village->wid, $unit + ($great ? 60 : 0), $amt, ${'u'.$unit}['pop'], $each, 0);
|
||||
$database->trainUnit($village->wid, $unit + ($great ? 1000 : 0), $amt, ${'u'.$unit}['pop'], $each, 0);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
@@ -454,29 +551,30 @@ class Technology {
|
||||
private function checkTrainingBuilding($unit) {
|
||||
global $building;
|
||||
|
||||
$footies = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 41, 42, 43, 44];
|
||||
$calvary = [4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 37, 38, 47, 48];
|
||||
$special = [9, 10, 19, 20, 29, 30, 39, 40, 49, 50];
|
||||
$footies = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 41, 42, 43, 44, 51, 52, 61, 62, 63, 71, 72, 73, 74, 81, 82, 83, 84];
|
||||
$calvary = [4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46, 53, 54, 55, 56, 64, 65, 66, 75, 76, 85, 86];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 37, 38, 47, 48, 57, 58, 67, 68, 77, 78, 87, 88];
|
||||
$special = [9, 10, 19, 20, 29, 30, 39, 40, 49, 50, 59, 60, 69, 70, 79, 80, 89, 90];
|
||||
$trapper = [99];
|
||||
|
||||
//Check if the player is trying to train troops without the needed buildings
|
||||
// Great Workshop este acum gid 49; Command Center (44) e alternativa hunilor la Residence/Palace
|
||||
if((in_array($unit, $footies) && ($building->getTypeLevel(19) == 0 && $building->getTypeLevel(29) == 0)) ||
|
||||
(in_array($unit, $calvary) && ($building->getTypeLevel(20) == 0 && $building->getTypeLevel(30) == 0)) ||
|
||||
(in_array($unit, $workshop) && ($building->getTypeLevel(21) == 0 && $building->getTypeLevel(42) == 0)) ||
|
||||
(in_array($unit, $special) && ($building->getTypeLevel(25) < 10 && $building->getTypeLevel(26) < 10)) ||
|
||||
(in_array($unit, $workshop) && ($building->getTypeLevel(21) == 0 && $building->getTypeLevel(49) == 0)) ||
|
||||
(in_array($unit, $special) && ($building->getTypeLevel(25) < 10 && $building->getTypeLevel(26) < 10 && $building->getTypeLevel(44) < 10)) ||
|
||||
(in_array($unit, $trapper) && $building->getTypeLevel(36) == 0)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private function getTrainingTime($unit, $great) {
|
||||
global $building, ${'u'.$unit}, $bid19, $bid20, $bid21, $bid25, $bid26, $bid29, $bid30, $bid41, $bid42;
|
||||
global $building, ${'u'.$unit}, $bid19, $bid20, $bid21, $bid25, $bid26, $bid29, $bid30, $bid41, $bid44, $bid49;
|
||||
|
||||
$footies = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 41, 42, 43, 44];
|
||||
$calvary = [4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 37, 38, 47, 48];
|
||||
$special = [9, 10, 19, 20, 29, 30, 39, 40, 49, 50];
|
||||
$footies = [1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 41, 42, 43, 44, 51, 52, 61, 62, 63, 71, 72, 73, 74, 81, 82, 83, 84];
|
||||
$calvary = [4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46, 53, 54, 55, 56, 64, 65, 66, 75, 76, 85, 86];
|
||||
$workshop = [7, 8, 17, 18, 27, 28, 37, 38, 47, 48, 57, 58, 67, 68, 77, 78, 87, 88];
|
||||
$special = [9, 10, 19, 20, 29, 30, 39, 40, 49, 50, 59, 60, 69, 70, 79, 80, 89, 90];
|
||||
$trapper = [99];
|
||||
|
||||
if(in_array($unit, $footies)) {
|
||||
@@ -495,7 +593,7 @@ class Technology {
|
||||
}
|
||||
if(in_array($unit, $workshop)) {
|
||||
if($great) {
|
||||
$each = round(($bid42[$building->getTypeLevel(42)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
$each = round(($bid49[$building->getTypeLevel(49)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
} else {
|
||||
$each = round(($bid21[$building->getTypeLevel(21)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
}
|
||||
@@ -503,8 +601,11 @@ class Technology {
|
||||
if(in_array($unit, $special)) {
|
||||
if($building->getTypeLevel(25) > 0){
|
||||
$each = round(($bid25[$building->getTypeLevel(25)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
} else {
|
||||
} elseif($building->getTypeLevel(26) > 0) {
|
||||
$each = round(($bid26[$building->getTypeLevel(26)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
} else {
|
||||
// Command Center (Huni) - alternativa la Residence/Palace
|
||||
$each = round(($bid44[$building->getTypeLevel(44)]['attri'] / 100) * ${'u'.$unit}['time'] / SPEED);
|
||||
}
|
||||
}
|
||||
if(in_array($unit, $trapper)) {
|
||||
@@ -605,6 +706,65 @@ class Technology {
|
||||
case 22: return $building->getTypeLevel(22) >= 3 && $building->getTypeLevel(12) >= 1;
|
||||
|
||||
case 24: return $building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 3;
|
||||
|
||||
// TRIBE 6-9 (Huns, Egyptians, Spartans, Vikings)
|
||||
// scout de cavalerie (ca 4/23) - Egipteni
|
||||
case 64: return $building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 1;
|
||||
|
||||
// scout de infanterie: Huni (cerinta proiectului) + Spartani (Sentinel: Academie 1 + Fierarie 1)
|
||||
case 52: return $building->getTypeLevel(22) >= 1 && $building->getTypeLevel(15) >= 5;
|
||||
case 74: return $building->getTypeLevel(22) >= 1 && $building->getTypeLevel(12) >= 1;
|
||||
|
||||
// infanterie defensiva (ca 2)
|
||||
case 62:
|
||||
case 72: return $building->getTypeLevel(22) >= 1 && $building->getTypeLevel(13) >= 1;
|
||||
|
||||
// infanterie elita/ofensiva (ca 3)
|
||||
case 73:
|
||||
case 84: return $building->getTypeLevel(22) >= 5 && $building->getTypeLevel(12) >= 1;
|
||||
|
||||
// infanterie de atac (ca 13/33/43)
|
||||
case 63:
|
||||
case 83: return $building->getTypeLevel(22) >= 3 && $building->getTypeLevel(12) >= 1;
|
||||
|
||||
// scout de infanterie (ca 14/34/44)
|
||||
case 82: return $building->getTypeLevel(22) >= 1 && $building->getTypeLevel(15) >= 5;
|
||||
|
||||
// cavalerie usoara de raid (ca 24)
|
||||
case 53: return $building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 3;
|
||||
|
||||
// cavalerie medie (ca 5/25)
|
||||
case 54:
|
||||
case 65:
|
||||
case 85: return $building->getTypeLevel(22) >= 5 && $building->getTypeLevel(20) >= 5;
|
||||
|
||||
// cavalerie defensiva (ca 15/35/45)
|
||||
case 75: return $building->getTypeLevel(22) >= 1 && $building->getTypeLevel(20) >= 3;
|
||||
|
||||
// cavalerie grea/elita (ca 6/16/26)
|
||||
case 55:
|
||||
case 56:
|
||||
case 66:
|
||||
case 76:
|
||||
case 86: return $building->getTypeLevel(22) >= 15 && $building->getTypeLevel(20) >= 10;
|
||||
|
||||
// berbece (ca 7/17/27)
|
||||
case 57:
|
||||
case 67:
|
||||
case 77:
|
||||
case 87: return $building->getTypeLevel(22) >= 10 && $building->getTypeLevel(21) >= 1;
|
||||
|
||||
// catapulta (ca 8/18/28)
|
||||
case 58:
|
||||
case 68:
|
||||
case 78:
|
||||
case 88: return $building->getTypeLevel(22) >= 15 && $building->getTypeLevel(21) >= 10;
|
||||
|
||||
// chief (ca 9/29)
|
||||
case 59:
|
||||
case 69:
|
||||
case 79:
|
||||
case 89: return $building->getTypeLevel(22) >= 20 && $building->getTypeLevel(16) >= 10;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -717,7 +877,8 @@ class Technology {
|
||||
$enforce=$database->getEnforceArray($id, 0, $use_cache);
|
||||
$fail=0;
|
||||
|
||||
for ($i=1; $i<50; $i++) {
|
||||
// extins la u90; nota: bucla veche ($i<50) omitea u50 - corectat
|
||||
for ($i=1; $i<=90; $i++) {
|
||||
if($enforce['u'.$i.'']>0){
|
||||
$fail=1;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ class Units {
|
||||
$u . "7",
|
||||
$u . "8",
|
||||
$u . "9",
|
||||
$u . $session->tribe . "0",
|
||||
$session->tribe . "0",
|
||||
"hero"
|
||||
],
|
||||
[
|
||||
@@ -403,20 +403,21 @@ class Units {
|
||||
|
||||
// fill the array with the invalid buildings
|
||||
if($rallyPointLevel >= 3 && $rallyPointLevel < 5){
|
||||
for($i = 1; $i <= 37; $i++){
|
||||
for($i = 1; $i <= 50; $i++){
|
||||
if(!in_array($i, [10, 11])) $invalidBuildings[] = $i;
|
||||
}
|
||||
}
|
||||
else if($rallyPointLevel >= 5 && $rallyPointLevel < 10){
|
||||
for($i = 12; $i <= 37; $i++) $invalidBuildings[] = $i;
|
||||
for($i = 12; $i <= 50; $i++) $invalidBuildings[] = $i;
|
||||
}
|
||||
else if($rallyPointLevel >= 10){
|
||||
$invalidBuildings = [23, 31, 32, 33, 34, 36];
|
||||
// zidurile nu pot fi tinta directa (31,32,33 + cele noi 42,43,47,50)
|
||||
$invalidBuildings = [23, 31, 32, 33, 34, 36, 42, 43, 47, 50];
|
||||
}
|
||||
|
||||
if(isset($post['ctar1']) && $post['ctar1'] != 0){
|
||||
// check if the player has selected a valid building
|
||||
if($rallyPointLevel < 3 || $data['u8'] == 0 || in_array($post['ctar1'], $invalidBuildings) || $post['ctar1'] < 0 || $post['ctar1'] > 40){
|
||||
if($rallyPointLevel < 3 || $data['u8'] == 0 || in_array($post['ctar1'], $invalidBuildings) || $post['ctar1'] < 0 || $post['ctar1'] > 50){
|
||||
$post['ctar1'] = 0;
|
||||
}
|
||||
}
|
||||
@@ -427,7 +428,7 @@ class Units {
|
||||
$post['ctar2'] = 0;
|
||||
}else{
|
||||
// check if the player has selected a valid building
|
||||
if(in_array($post['ctar2'], $invalidBuildings) || ($post['ctar2'] < 0 || $post['ctar2'] > 40 && $post['ctar2'] != 99)){
|
||||
if(in_array($post['ctar2'], $invalidBuildings) || ($post['ctar2'] < 0 || $post['ctar2'] > 50 && $post['ctar2'] != 99)){
|
||||
$post['ctar2'] = 99;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ class Village {
|
||||
private $infoarray = [];
|
||||
private $production = [];
|
||||
private $oasisowned, $ocounter = [];
|
||||
private $oasisFactor = 0.25;
|
||||
|
||||
// single-load guards
|
||||
private static $loadedWid = null;
|
||||
@@ -128,6 +129,7 @@ class Village {
|
||||
$this->type = $database->getVillageType($this->wid);
|
||||
$this->oasisowned = $database->getOasis($this->wid);
|
||||
$this->ocounter = $this->sortOasis();
|
||||
$this->oasisFactor = $this->getOasisBonusFactor();
|
||||
|
||||
$this->unitarray = $database->getUnit($this->wid);
|
||||
$this->enforcetome = $database->getEnforceVillage($this->wid, 0);
|
||||
@@ -242,7 +244,7 @@ class Village {
|
||||
for ($i = 0; $i < $cnt; $i++) {
|
||||
$wood += $bid1[$this->resarray[$holder[$i]]]['prod'];
|
||||
}
|
||||
$wood += $wood * 0.25 * $this->ocounter[0];
|
||||
$wood += $wood * $this->oasisFactor * $this->ocounter[0];
|
||||
if ($sawmill >= 1) {
|
||||
$wood += $wood / 100 * $bid5[$sawmill]['attri'];
|
||||
}
|
||||
@@ -263,7 +265,7 @@ class Village {
|
||||
for ($i = 0; $i < $cnt; $i++) {
|
||||
$clay += $bid2[$this->resarray[$holder[$i]]]['prod'];
|
||||
}
|
||||
$clay += $clay * 0.25 * $this->ocounter[1];
|
||||
$clay += $clay * $this->oasisFactor * $this->ocounter[1];
|
||||
if ($brick >= 1) {
|
||||
$clay += $clay / 100 * $bid6[$brick]['attri'];
|
||||
}
|
||||
@@ -284,7 +286,7 @@ class Village {
|
||||
for ($i = 0; $i < $cnt; $i++) {
|
||||
$iron += $bid3[$this->resarray[$holder[$i]]]['prod'];
|
||||
}
|
||||
$iron += $iron * 0.25 * $this->ocounter[2];
|
||||
$iron += $iron * $this->oasisFactor * $this->ocounter[2];
|
||||
if ($foundry >= 1) {
|
||||
$iron += $iron / 100 * $bid7[$foundry]['attri'];
|
||||
}
|
||||
@@ -306,7 +308,7 @@ class Village {
|
||||
for ($i = 0; $i < $cnt; $i++) {
|
||||
$crop += $bid4[$this->resarray[$holder[$i]]]['prod'];
|
||||
}
|
||||
$crop += $crop * 0.25 * $this->ocounter[3];
|
||||
$crop += $crop * $this->oasisFactor * $this->ocounter[3];
|
||||
if ($grainmill >= 1 || $bakery >= 1) {
|
||||
$crop += $crop / 100 * (
|
||||
(isset($bid8[$grainmill]['attri']) ? $bid8[$grainmill]['attri'] : 0) +
|
||||
@@ -320,6 +322,24 @@ class Village {
|
||||
/**
|
||||
* OASIS
|
||||
*/
|
||||
/**
|
||||
* Bonusul de baza al oazei (25%) crescut de Waterworks (gid 45, Egipteni):
|
||||
* attri = +5% relativ per nivel, pana la +100% la nivel 20 (0.25 -> 0.50).
|
||||
*/
|
||||
private function getOasisBonusFactor() {
|
||||
global $bid45;
|
||||
$wwLevel = 0;
|
||||
for ($i = 19; $i <= 40; $i++) {
|
||||
if (isset($this->resarray['f'.$i.'t']) && (int)$this->resarray['f'.$i.'t'] == 45) {
|
||||
$wwLevel = max($wwLevel, (int)$this->resarray['f'.$i]);
|
||||
}
|
||||
}
|
||||
if ($wwLevel > 0 && isset($bid45[$wwLevel]['attri'])) {
|
||||
return 0.25 * (1 + $bid45[$wwLevel]['attri']);
|
||||
}
|
||||
return 0.25;
|
||||
}
|
||||
|
||||
private function sortOasis() {
|
||||
$wood = $clay = $iron = $crop = 0;
|
||||
if (!empty($this->oasisowned)) {
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $session, $technology, $village, $database, $generator, $building, $bid19, $id;
|
||||
global $session, $technology, $village, $database, $generator, $building, $bid19, $id, $unitsbytype;
|
||||
|
||||
$tribe = (int)$session->tribe;
|
||||
$units = ($tribe !== 4) ? range(($tribe-1)*10+1, ($tribe-1)*10+4) : range(31, 40);
|
||||
$units = ($tribe !== 4) ? range(($tribe-1)*10+1, $tribe*10) : range(31, 40);
|
||||
|
||||
foreach ($units as $i) {
|
||||
// SKIP INVALID UNITS
|
||||
if ($tribe !== 4 && ($i == 4 || $i == 23 || $i == 24)) continue;
|
||||
// doar infanteria tribului (generic: acopera si triburile 6-9)
|
||||
if ($tribe !== 4 && !in_array($i, $unitsbytype['infantry'])) continue;
|
||||
if (!($technology->getTech($i) || $i % 10 == 1)) continue;
|
||||
|
||||
$unitData = ${'u'.$i};
|
||||
|
||||
@@ -19,15 +19,17 @@
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $session, $technology, $village, $database, $generator, $building, $bid20, $bid41, $id;
|
||||
global $session, $technology, $village, $database, $generator, $building, $bid20, $bid41, $id, $unitsbytype;
|
||||
|
||||
$tribe = (int)$session->tribe;
|
||||
$start = ($tribe - 1) * 10 + 4 - ($tribe == 3 ? 1 : 0) + ($tribe == 2 ? 1 : 0);
|
||||
$end = $tribe * 10 - 4;
|
||||
$start = ($tribe - 1) * 10 + 1;
|
||||
$end = $tribe * 10;
|
||||
$success = 0;
|
||||
$horseTrough = $building->getTypeLevel(41);
|
||||
|
||||
for ($i = $start; $i <= $end; $i++) {
|
||||
// doar cavaleria tribului (generic: acopera si triburile 6-9)
|
||||
if (!in_array($i, $unitsbytype['cavalry'])) continue;
|
||||
if (!$technology->getTech($i)) continue;
|
||||
|
||||
$unitData = ${'u'.$i};
|
||||
|
||||
@@ -47,9 +47,12 @@ $trainlist = $technology->getTrainingList(3);
|
||||
$success = 0;
|
||||
$tribe = (int)$session->tribe;
|
||||
if ($tribe!== 4) {
|
||||
$starts = [1=>7, 2=>17, 3=>27, 5=>47];
|
||||
$start = $starts[$tribe]?? 7;
|
||||
for ($i = $start; $i <= $start+1; $i++) {
|
||||
global $unitsbytype;
|
||||
// unitatile de asediu ale tribului (generic: acopera si triburile 6-9)
|
||||
$siegeUnits = array_values(array_filter($unitsbytype['siege'], function($u) use ($tribe) {
|
||||
return $u > ($tribe - 1) * 10 && $u <= $tribe * 10;
|
||||
}));
|
||||
foreach ($siegeUnits as $i) {
|
||||
if (!$technology->getTech($i)) continue;
|
||||
$unitData = ${'u'.$i};
|
||||
$name = $technology->getUnitName($i);
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : ACADEMY HUNS UNITS ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $technology, $generator, $village, $session, $building, $bid22, $id;
|
||||
|
||||
$acares = $technology->grabAcademyRes();
|
||||
$success = $fail = 0;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr><td><?php echo ACADEMY;?></td><td><?php echo ACTION;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php for ($i = 52; $i <= 59; $i++):
|
||||
if (!($technology->meetRRequirement($i) &&!$technology->getTech($i) &&!$technology->isResearch($i,1))) { $fail++; continue; }
|
||||
$success++;
|
||||
$res = ${'r'.$i};
|
||||
$name = $technology->getUnitName($i);
|
||||
$time = $generator->getTimeFormat(round($res['time'] * ($bid22[$level]['attri']/100) / SPEED));
|
||||
$total_required = (int)($res['wood']+$res['clay']+$res['iron']+$res['crop']);
|
||||
$showNpc = $session->userinfo['gold']>=3 && $building->getTypeLevel(17)>=1 && $village->atotal >= $total_required;
|
||||
?>
|
||||
<tr>
|
||||
<td class="desc">
|
||||
<div class="tit"><img class="unit u<?php echo $i;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>" title="<?php echo htmlspecialchars($name);?>"/><a href="#" onClick="return Popup(<?php echo $i;?>,1);"><?php echo htmlspecialchars($name);?></a></div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" title="<?php echo LUMBER;?>"/><?php echo (int)$res['wood'];?>|
|
||||
<img class="r2" src="img/x.gif" title="<?php echo CLAY;?>"/><?php echo (int)$res['clay'];?>|
|
||||
<img class="r3" src="img/x.gif" title="<?php echo IRON;?>"/><?php echo (int)$res['iron'];?>|
|
||||
<img class="r4" src="img/x.gif" title="<?php echo CROP;?>"/><?php echo (int)$res['crop'];?>|
|
||||
<img class="clock" src="img/x.gif" title="<?php echo DURATION;?>"/><?php echo $time;?>
|
||||
<?php if ($showNpc):?>|<a href="build.php?gid=17&t=3&r1=<?php echo (int)$res['wood'];?>&r2=<?php echo (int)$res['clay'];?>&r3=<?php echo (int)$res['iron'];?>&r4=<?php echo (int)$res['crop'];?>" title="<?php echo NPC_TRADE; ?>"><img class="npc" src="img/x.gif"/></a><?php endif;?>
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) {
|
||||
if ($village->getProd("crop")>0){ $t=$technology->calculateAvaliable(22,$res); echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$t[0]." at ".$t[1]."</span>"; }
|
||||
else echo "<br><span class=\"none\">".CROP_NEGATIVE."</span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="<?php echo ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore||$res['crop']>$village->maxcrop||$res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop||count($acares)>0)?'none':'act';?>">
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<div class=\"none\">".EXPAND_WAREHOUSE."</div>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<div class=\"none\">".EXPAND_GRANARY."</div>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) echo "<div class=\"none\">".TOO_FEW_RESOURCES."</div>";
|
||||
elseif (count($acares)>0) echo RESEARCH_IN_PROGRESS;
|
||||
elseif ($session->access!=BANNED) echo "<a class=\"research\" href=\"build.php?id=".(int)$id."&a=".$i."&c=".$session->mchecker."\">".RESEARCH."</a>";
|
||||
else echo "<a class=\"research\" href=\"banned.php\">".RESEARCH."</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; if ($success===0):?>
|
||||
<tr><td colspan="2"><div class="none" align="center"><?php echo RESEARCH_AVAILABLE;?></div></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($fail>0):?>
|
||||
<p class="switch"><a id="researchFutureLink" href="#" onclick="document.getElementById('researchFuture').classList.toggle('hide'); this.textContent = this.textContent == '<?php echo SHOW_MORE;?>'? '<?php echo HIDE_MORE;?>' : '<?php echo SHOW_MORE;?>'; return false;"><?php echo SHOW_MORE;?></a></p>
|
||||
<table id="researchFuture" class="build_details hide" cellspacing="1" cellpadding="1">
|
||||
<thead><tr><td colspan="2"><?php echo PREREQUISITES;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php if (!$technology->meetRRequirement(52) &&!$technology->getTech(52)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u52" src="img/x.gif" alt="<?php echo U52; ?>"/><a onclick="return Popup(52,1);" href="#"><?php echo U52; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(15,4);"><?php echo MAINBUILDING;?></a> <span><?php echo LEVEL;?> 5</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(53) &&!$technology->getTech(53)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u53" src="img/x.gif" alt="<?php echo U53; ?>"/><a onclick="return Popup(53,1);" href="#"><?php echo U53; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 3</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(54) &&!$technology->getTech(54)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u54" src="img/x.gif" alt="<?php echo U54; ?>"/><a onclick="return Popup(54,1);" href="#"><?php echo U54; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 5</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(55) &&!$technology->getTech(55)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u55" src="img/x.gif" alt="<?php echo U55; ?>"/><a onclick="return Popup(55,1);" href="#"><?php echo U55; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(56) &&!$technology->getTech(56)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u56" src="img/x.gif" alt="<?php echo U56; ?>"/><a onclick="return Popup(56,1);" href="#"><?php echo U56; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(57) &&!$technology->getTech(57)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u57" src="img/x.gif" alt="<?php echo U57; ?>"/><a onclick="return Popup(57,1);" href="#"><?php echo U57; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(58) &&!$technology->getTech(58)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u58" src="img/x.gif" alt="<?php echo U58; ?>"/><a onclick="return Popup(58,1);" href="#"><?php echo U58; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(59) &&!$technology->getTech(59)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u59" src="img/x.gif" alt="<?php echo U59; ?>"/><a onclick="return Popup(59,1);" href="#"><?php echo U59; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(16,4);"><?php echo RALLYPOINT;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 20</span></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (count($acares)>0):?>
|
||||
<table cellpadding="1" cellspacing="1" class="under_progress">
|
||||
<thead><tr><td><?php echo RESEARCHING;?></td><td><?php echo DURATION;?></td><td><?php echo COMPLETE;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($acares as $aca): $unit=(int)substr($aca['tech'],1,2); $name=$technology->getUnitName($unit); $date=$generator->procMtime($aca['timestamp']);?>
|
||||
<tr><td class="desc"><img class="unit u<?php echo $unit;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>"/><?php echo htmlspecialchars($name);?></td><td class="dur"><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($aca['timestamp']-time());?></span></td><td class="fin"><span><?php echo $date[1];?></span><span> <?php echo TZ_HRS; ?></span></td></tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : ACADEMY EGIPTEAN UNITS ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $technology, $generator, $village, $session, $building, $bid22, $id;
|
||||
|
||||
$acares = $technology->grabAcademyRes();
|
||||
$success = $fail = 0;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr><td><?php echo ACADEMY;?></td><td><?php echo ACTION;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php for ($i = 62; $i <= 69; $i++):
|
||||
if (!($technology->meetRRequirement($i) &&!$technology->getTech($i) &&!$technology->isResearch($i,1))) { $fail++; continue; }
|
||||
$success++;
|
||||
$res = ${'r'.$i};
|
||||
$name = $technology->getUnitName($i);
|
||||
$time = $generator->getTimeFormat(round($res['time'] * ($bid22[$level]['attri']/100) / SPEED));
|
||||
$total_required = (int)($res['wood']+$res['clay']+$res['iron']+$res['crop']);
|
||||
$showNpc = $session->userinfo['gold']>=3 && $building->getTypeLevel(17)>=1 && $village->atotal >= $total_required;
|
||||
?>
|
||||
<tr>
|
||||
<td class="desc">
|
||||
<div class="tit"><img class="unit u<?php echo $i;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>" title="<?php echo htmlspecialchars($name);?>"/><a href="#" onClick="return Popup(<?php echo $i;?>,1);"><?php echo htmlspecialchars($name);?></a></div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" title="<?php echo LUMBER;?>"/><?php echo (int)$res['wood'];?>|
|
||||
<img class="r2" src="img/x.gif" title="<?php echo CLAY;?>"/><?php echo (int)$res['clay'];?>|
|
||||
<img class="r3" src="img/x.gif" title="<?php echo IRON;?>"/><?php echo (int)$res['iron'];?>|
|
||||
<img class="r4" src="img/x.gif" title="<?php echo CROP;?>"/><?php echo (int)$res['crop'];?>|
|
||||
<img class="clock" src="img/x.gif" title="<?php echo DURATION;?>"/><?php echo $time;?>
|
||||
<?php if ($showNpc):?>|<a href="build.php?gid=17&t=3&r1=<?php echo (int)$res['wood'];?>&r2=<?php echo (int)$res['clay'];?>&r3=<?php echo (int)$res['iron'];?>&r4=<?php echo (int)$res['crop'];?>" title="<?php echo NPC_TRADE; ?>"><img class="npc" src="img/x.gif"/></a><?php endif;?>
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) {
|
||||
if ($village->getProd("crop")>0){ $t=$technology->calculateAvaliable(22,$res); echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$t[0]." at ".$t[1]."</span>"; }
|
||||
else echo "<br><span class=\"none\">".CROP_NEGATIVE."</span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="<?php echo ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore||$res['crop']>$village->maxcrop||$res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop||count($acares)>0)?'none':'act';?>">
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<div class=\"none\">".EXPAND_WAREHOUSE."</div>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<div class=\"none\">".EXPAND_GRANARY."</div>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) echo "<div class=\"none\">".TOO_FEW_RESOURCES."</div>";
|
||||
elseif (count($acares)>0) echo RESEARCH_IN_PROGRESS;
|
||||
elseif ($session->access!=BANNED) echo "<a class=\"research\" href=\"build.php?id=".(int)$id."&a=".$i."&c=".$session->mchecker."\">".RESEARCH."</a>";
|
||||
else echo "<a class=\"research\" href=\"banned.php\">".RESEARCH."</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; if ($success===0):?>
|
||||
<tr><td colspan="2"><div class="none" align="center"><?php echo RESEARCH_AVAILABLE;?></div></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($fail>0):?>
|
||||
<p class="switch"><a id="researchFutureLink" href="#" onclick="document.getElementById('researchFuture').classList.toggle('hide'); this.textContent = this.textContent == '<?php echo SHOW_MORE;?>'? '<?php echo HIDE_MORE;?>' : '<?php echo SHOW_MORE;?>'; return false;"><?php echo SHOW_MORE;?></a></p>
|
||||
<table id="researchFuture" class="build_details hide" cellspacing="1" cellpadding="1">
|
||||
<thead><tr><td colspan="2"><?php echo PREREQUISITES;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php if (!$technology->meetRRequirement(62) &&!$technology->getTech(62)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u62" src="img/x.gif" alt="<?php echo U62; ?>"/><a onclick="return Popup(62,1);" href="#"><?php echo U62; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(13,4);"><?php echo ARMOURY;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(63) &&!$technology->getTech(63)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u63" src="img/x.gif" alt="<?php echo U63; ?>"/><a onclick="return Popup(63,1);" href="#"><?php echo U63; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 3</span><br><a href="#" onclick="return Popup(12,4);"><?php echo BLACKSMITH;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(64) &&!$technology->getTech(64)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u64" src="img/x.gif" alt="<?php echo U64; ?>"/><a onclick="return Popup(64,1);" href="#"><?php echo U64; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(65) &&!$technology->getTech(65)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u65" src="img/x.gif" alt="<?php echo U65; ?>"/><a onclick="return Popup(65,1);" href="#"><?php echo U65; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 5</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(66) &&!$technology->getTech(66)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u66" src="img/x.gif" alt="<?php echo U66; ?>"/><a onclick="return Popup(66,1);" href="#"><?php echo U66; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(67) &&!$technology->getTech(67)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u67" src="img/x.gif" alt="<?php echo U67; ?>"/><a onclick="return Popup(67,1);" href="#"><?php echo U67; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(68) &&!$technology->getTech(68)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u68" src="img/x.gif" alt="<?php echo U68; ?>"/><a onclick="return Popup(68,1);" href="#"><?php echo U68; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(69) &&!$technology->getTech(69)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u69" src="img/x.gif" alt="<?php echo U69; ?>"/><a onclick="return Popup(69,1);" href="#"><?php echo U69; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(16,4);"><?php echo RALLYPOINT;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 20</span></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (count($acares)>0):?>
|
||||
<table cellpadding="1" cellspacing="1" class="under_progress">
|
||||
<thead><tr><td><?php echo RESEARCHING;?></td><td><?php echo DURATION;?></td><td><?php echo COMPLETE;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($acares as $aca): $unit=(int)substr($aca['tech'],1,2); $name=$technology->getUnitName($unit); $date=$generator->procMtime($aca['timestamp']);?>
|
||||
<tr><td class="desc"><img class="unit u<?php echo $unit;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>"/><?php echo htmlspecialchars($name);?></td><td class="dur"><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($aca['timestamp']-time());?></span></td><td class="fin"><span><?php echo $date[1];?></span><span> <?php echo TZ_HRS; ?></span></td></tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : ACADEMY SPARTAN UNITS ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $technology, $generator, $village, $session, $building, $bid22, $id;
|
||||
|
||||
$acares = $technology->grabAcademyRes();
|
||||
$success = $fail = 0;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr><td><?php echo ACADEMY;?></td><td><?php echo ACTION;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php for ($i = 72; $i <= 79; $i++):
|
||||
if (!($technology->meetRRequirement($i) &&!$technology->getTech($i) &&!$technology->isResearch($i,1))) { $fail++; continue; }
|
||||
$success++;
|
||||
$res = ${'r'.$i};
|
||||
$name = $technology->getUnitName($i);
|
||||
$time = $generator->getTimeFormat(round($res['time'] * ($bid22[$level]['attri']/100) / SPEED));
|
||||
$total_required = (int)($res['wood']+$res['clay']+$res['iron']+$res['crop']);
|
||||
$showNpc = $session->userinfo['gold']>=3 && $building->getTypeLevel(17)>=1 && $village->atotal >= $total_required;
|
||||
?>
|
||||
<tr>
|
||||
<td class="desc">
|
||||
<div class="tit"><img class="unit u<?php echo $i;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>" title="<?php echo htmlspecialchars($name);?>"/><a href="#" onClick="return Popup(<?php echo $i;?>,1);"><?php echo htmlspecialchars($name);?></a></div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" title="<?php echo LUMBER;?>"/><?php echo (int)$res['wood'];?>|
|
||||
<img class="r2" src="img/x.gif" title="<?php echo CLAY;?>"/><?php echo (int)$res['clay'];?>|
|
||||
<img class="r3" src="img/x.gif" title="<?php echo IRON;?>"/><?php echo (int)$res['iron'];?>|
|
||||
<img class="r4" src="img/x.gif" title="<?php echo CROP;?>"/><?php echo (int)$res['crop'];?>|
|
||||
<img class="clock" src="img/x.gif" title="<?php echo DURATION;?>"/><?php echo $time;?>
|
||||
<?php if ($showNpc):?>|<a href="build.php?gid=17&t=3&r1=<?php echo (int)$res['wood'];?>&r2=<?php echo (int)$res['clay'];?>&r3=<?php echo (int)$res['iron'];?>&r4=<?php echo (int)$res['crop'];?>" title="<?php echo NPC_TRADE; ?>"><img class="npc" src="img/x.gif"/></a><?php endif;?>
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) {
|
||||
if ($village->getProd("crop")>0){ $t=$technology->calculateAvaliable(22,$res); echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$t[0]." at ".$t[1]."</span>"; }
|
||||
else echo "<br><span class=\"none\">".CROP_NEGATIVE."</span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="<?php echo ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore||$res['crop']>$village->maxcrop||$res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop||count($acares)>0)?'none':'act';?>">
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<div class=\"none\">".EXPAND_WAREHOUSE."</div>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<div class=\"none\">".EXPAND_GRANARY."</div>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) echo "<div class=\"none\">".TOO_FEW_RESOURCES."</div>";
|
||||
elseif (count($acares)>0) echo RESEARCH_IN_PROGRESS;
|
||||
elseif ($session->access!=BANNED) echo "<a class=\"research\" href=\"build.php?id=".(int)$id."&a=".$i."&c=".$session->mchecker."\">".RESEARCH."</a>";
|
||||
else echo "<a class=\"research\" href=\"banned.php\">".RESEARCH."</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; if ($success===0):?>
|
||||
<tr><td colspan="2"><div class="none" align="center"><?php echo RESEARCH_AVAILABLE;?></div></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($fail>0):?>
|
||||
<p class="switch"><a id="researchFutureLink" href="#" onclick="document.getElementById('researchFuture').classList.toggle('hide'); this.textContent = this.textContent == '<?php echo SHOW_MORE;?>'? '<?php echo HIDE_MORE;?>' : '<?php echo SHOW_MORE;?>'; return false;"><?php echo SHOW_MORE;?></a></p>
|
||||
<table id="researchFuture" class="build_details hide" cellspacing="1" cellpadding="1">
|
||||
<thead><tr><td colspan="2"><?php echo PREREQUISITES;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php if (!$technology->meetRRequirement(72) &&!$technology->getTech(72)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u72" src="img/x.gif" alt="<?php echo U72; ?>"/><a onclick="return Popup(72,1);" href="#"><?php echo U72; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(13,4);"><?php echo ARMOURY;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(73) &&!$technology->getTech(73)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u73" src="img/x.gif" alt="<?php echo U73; ?>"/><a onclick="return Popup(73,1);" href="#"><?php echo U73; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(12,4);"><?php echo BLACKSMITH;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(74) &&!$technology->getTech(74)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u74" src="img/x.gif" alt="<?php echo U74; ?>"/><a onclick="return Popup(74,1);" href="#"><?php echo U74; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(12,4);"><?php echo BLACKSMITH;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(75) &&!$technology->getTech(75)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u75" src="img/x.gif" alt="<?php echo U75; ?>"/><a onclick="return Popup(75,1);" href="#"><?php echo U75; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 3</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(76) &&!$technology->getTech(76)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u76" src="img/x.gif" alt="<?php echo U76; ?>"/><a onclick="return Popup(76,1);" href="#"><?php echo U76; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(77) &&!$technology->getTech(77)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u77" src="img/x.gif" alt="<?php echo U77; ?>"/><a onclick="return Popup(77,1);" href="#"><?php echo U77; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(78) &&!$technology->getTech(78)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u78" src="img/x.gif" alt="<?php echo U78; ?>"/><a onclick="return Popup(78,1);" href="#"><?php echo U78; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(79) &&!$technology->getTech(79)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u79" src="img/x.gif" alt="<?php echo U79; ?>"/><a onclick="return Popup(79,1);" href="#"><?php echo U79; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(16,4);"><?php echo RALLYPOINT;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 20</span></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (count($acares)>0):?>
|
||||
<table cellpadding="1" cellspacing="1" class="under_progress">
|
||||
<thead><tr><td><?php echo RESEARCHING;?></td><td><?php echo DURATION;?></td><td><?php echo COMPLETE;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($acares as $aca): $unit=(int)substr($aca['tech'],1,2); $name=$technology->getUnitName($unit); $date=$generator->procMtime($aca['timestamp']);?>
|
||||
<tr><td class="desc"><img class="unit u<?php echo $unit;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>"/><?php echo htmlspecialchars($name);?></td><td class="dur"><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($aca['timestamp']-time());?></span></td><td class="fin"><span><?php echo $date[1];?></span><span> <?php echo TZ_HRS; ?></span></td></tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : ACADEMY VIKINGS UNITS ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $technology, $generator, $village, $session, $building, $bid22, $id;
|
||||
|
||||
$acares = $technology->grabAcademyRes();
|
||||
$success = $fail = 0;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr><td><?php echo ACADEMY;?></td><td><?php echo ACTION;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php for ($i = 82; $i <= 89; $i++):
|
||||
if (!($technology->meetRRequirement($i) &&!$technology->getTech($i) &&!$technology->isResearch($i,1))) { $fail++; continue; }
|
||||
$success++;
|
||||
$res = ${'r'.$i};
|
||||
$name = $technology->getUnitName($i);
|
||||
$time = $generator->getTimeFormat(round($res['time'] * ($bid22[$level]['attri']/100) / SPEED));
|
||||
$total_required = (int)($res['wood']+$res['clay']+$res['iron']+$res['crop']);
|
||||
$showNpc = $session->userinfo['gold']>=3 && $building->getTypeLevel(17)>=1 && $village->atotal >= $total_required;
|
||||
?>
|
||||
<tr>
|
||||
<td class="desc">
|
||||
<div class="tit"><img class="unit u<?php echo $i;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>" title="<?php echo htmlspecialchars($name);?>"/><a href="#" onClick="return Popup(<?php echo $i;?>,1);"><?php echo htmlspecialchars($name);?></a></div>
|
||||
<div class="details">
|
||||
<img class="r1" src="img/x.gif" title="<?php echo LUMBER;?>"/><?php echo (int)$res['wood'];?>|
|
||||
<img class="r2" src="img/x.gif" title="<?php echo CLAY;?>"/><?php echo (int)$res['clay'];?>|
|
||||
<img class="r3" src="img/x.gif" title="<?php echo IRON;?>"/><?php echo (int)$res['iron'];?>|
|
||||
<img class="r4" src="img/x.gif" title="<?php echo CROP;?>"/><?php echo (int)$res['crop'];?>|
|
||||
<img class="clock" src="img/x.gif" title="<?php echo DURATION;?>"/><?php echo $time;?>
|
||||
<?php if ($showNpc):?>|<a href="build.php?gid=17&t=3&r1=<?php echo (int)$res['wood'];?>&r2=<?php echo (int)$res['clay'];?>&r3=<?php echo (int)$res['iron'];?>&r4=<?php echo (int)$res['crop'];?>" title="<?php echo NPC_TRADE; ?>"><img class="npc" src="img/x.gif"/></a><?php endif;?>
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) {
|
||||
if ($village->getProd("crop")>0){ $t=$technology->calculateAvaliable(22,$res); echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$t[0]." at ".$t[1]."</span>"; }
|
||||
else echo "<br><span class=\"none\">".CROP_NEGATIVE."</span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="<?php echo ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore||$res['crop']>$village->maxcrop||$res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop||count($acares)>0)?'none':'act';?>">
|
||||
<?php
|
||||
if ($res['wood']>$village->maxstore||$res['clay']>$village->maxstore||$res['iron']>$village->maxstore) echo "<div class=\"none\">".EXPAND_WAREHOUSE."</div>";
|
||||
elseif ($res['crop']>$village->maxcrop) echo "<div class=\"none\">".EXPAND_GRANARY."</div>";
|
||||
elseif ($res['wood']>$village->awood||$res['clay']>$village->aclay||$res['iron']>$village->airon||$res['crop']>$village->acrop) echo "<div class=\"none\">".TOO_FEW_RESOURCES."</div>";
|
||||
elseif (count($acares)>0) echo RESEARCH_IN_PROGRESS;
|
||||
elseif ($session->access!=BANNED) echo "<a class=\"research\" href=\"build.php?id=".(int)$id."&a=".$i."&c=".$session->mchecker."\">".RESEARCH."</a>";
|
||||
else echo "<a class=\"research\" href=\"banned.php\">".RESEARCH."</a>";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; if ($success===0):?>
|
||||
<tr><td colspan="2"><div class="none" align="center"><?php echo RESEARCH_AVAILABLE;?></div></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($fail>0):?>
|
||||
<p class="switch"><a id="researchFutureLink" href="#" onclick="document.getElementById('researchFuture').classList.toggle('hide'); this.textContent = this.textContent == '<?php echo SHOW_MORE;?>'? '<?php echo HIDE_MORE;?>' : '<?php echo SHOW_MORE;?>'; return false;"><?php echo SHOW_MORE;?></a></p>
|
||||
<table id="researchFuture" class="build_details hide" cellspacing="1" cellpadding="1">
|
||||
<thead><tr><td colspan="2"><?php echo PREREQUISITES;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php if (!$technology->meetRRequirement(82) &&!$technology->getTech(82)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u82" src="img/x.gif" alt="<?php echo U82; ?>"/><a onclick="return Popup(82,1);" href="#"><?php echo U82; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 1</span><br><a href="#" onclick="return Popup(15,4);"><?php echo MAINBUILDING;?></a> <span><?php echo LEVEL;?> 5</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(83) &&!$technology->getTech(83)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u83" src="img/x.gif" alt="<?php echo U83; ?>"/><a onclick="return Popup(83,1);" href="#"><?php echo U83; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 3</span><br><a href="#" onclick="return Popup(12,4);"><?php echo BLACKSMITH;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(84) &&!$technology->getTech(84)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u84" src="img/x.gif" alt="<?php echo U84; ?>"/><a onclick="return Popup(84,1);" href="#"><?php echo U84; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(12,4);"><?php echo BLACKSMITH;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(85) &&!$technology->getTech(85)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u85" src="img/x.gif" alt="<?php echo U85; ?>"/><a onclick="return Popup(85,1);" href="#"><?php echo U85; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 5</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 5</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(86) &&!$technology->getTech(86)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u86" src="img/x.gif" alt="<?php echo U86; ?>"/><a onclick="return Popup(86,1);" href="#"><?php echo U86; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(20,4);"><?php echo STABLE;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(87) &&!$technology->getTech(87)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u87" src="img/x.gif" alt="<?php echo U87; ?>"/><a onclick="return Popup(87,1);" href="#"><?php echo U87; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 1</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(88) &&!$technology->getTech(88)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u88" src="img/x.gif" alt="<?php echo U88; ?>"/><a onclick="return Popup(88,1);" href="#"><?php echo U88; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 15</span><br><a href="#" onclick="return Popup(21,4);"><?php echo WORKSHOP;?></a> <span><?php echo LEVEL;?> 10</span></td></tr>
|
||||
<?php endif;?>
|
||||
<?php if (!$technology->meetRRequirement(89) &&!$technology->getTech(89)):?>
|
||||
<tr><td class="desc"><div class="tit"><img class="unit u89" src="img/x.gif" alt="<?php echo U89; ?>"/><a onclick="return Popup(89,1);" href="#"><?php echo U89; ?></a></div></td><td class="cond"><a href="#" onclick="return Popup(16,4);"><?php echo RALLYPOINT;?></a> <span><?php echo LEVEL;?> 10</span><br><a href="#" onclick="return Popup(22,4);"><?php echo ACADEMY;?></a> <span><?php echo LEVEL;?> 20</span></td></tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (count($acares)>0):?>
|
||||
<table cellpadding="1" cellspacing="1" class="under_progress">
|
||||
<thead><tr><td><?php echo RESEARCHING;?></td><td><?php echo DURATION;?></td><td><?php echo COMPLETE;?></td></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($acares as $aca): $unit=(int)substr($aca['tech'],1,2); $name=$technology->getUnitName($unit); $date=$generator->procMtime($aca['timestamp']);?>
|
||||
<tr><td class="desc"><img class="unit u<?php echo $unit;?>" src="img/x.gif" alt="<?php echo htmlspecialchars($name);?>"/><?php echo htmlspecialchars($name);?></td><td class="dur"><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($aca['timestamp']-time());?></span></td><td class="fin"><span><?php echo $date[1];?></span><span> <?php echo TZ_HRS; ?></span></td></tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
@@ -21,8 +21,9 @@
|
||||
|
||||
global $session, $technology, $village, $database, $building, $bid29, $generator, $id;
|
||||
|
||||
global $unitsbytype;
|
||||
$start = ($session->tribe - 1) * 10 + 1;
|
||||
$end = ($session->tribe - 1) * 10 + 4;
|
||||
$end = $session->tribe * 10;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
|
||||
for ($i = $start; $i <= $end; $i++):
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
|
||||
global $session, $technology, $village, $database, $building, $bid30, $bid41, $generator, $id;
|
||||
|
||||
$start = ($session->tribe - 1) * 10 + 3;
|
||||
$end = ($session->tribe - 1) * 10 + 6;
|
||||
global $unitsbytype;
|
||||
$start = ($session->tribe - 1) * 10 + 1;
|
||||
$end = $session->tribe * 10;
|
||||
$level = (int)$village->resarray['f'.$id];
|
||||
$horseDrinking = $building->getTypeLevel(41);
|
||||
$success = 0;
|
||||
|
||||
@@ -47,6 +47,26 @@
|
||||
24 => U24,
|
||||
25 => U25,
|
||||
26 => U26,
|
||||
51 => U51,
|
||||
53 => U53,
|
||||
54 => U54,
|
||||
55 => U55,
|
||||
56 => U56,
|
||||
61 => U61,
|
||||
62 => U62,
|
||||
63 => U63,
|
||||
65 => U65,
|
||||
66 => U66,
|
||||
71 => U71,
|
||||
72 => U72,
|
||||
73 => U73,
|
||||
75 => U75,
|
||||
76 => U76,
|
||||
81 => U81,
|
||||
83 => U83,
|
||||
84 => U84,
|
||||
85 => U85,
|
||||
86 => U86,
|
||||
];
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,8 +1,22 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
# T4 hero adventures tab (37_adventures.tpl) - Phase 6 #
|
||||
# POST: t4action=startadv, advid. Countdown spans reuse the existing #
|
||||
# $session->timer JS convention (same as 37.tpl's training timer). #
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : HERO T4 ADVENTURES PAGE ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$t4Adventures = new HeroAdventure();
|
||||
@@ -57,7 +71,15 @@ $t4Now = time();
|
||||
<?php if (count($t4Offers)) { ?>
|
||||
<?php foreach ($t4Offers as $t4Offer) { ?>
|
||||
<tr>
|
||||
<td><?php echo ((int) $t4Offer['difficulty'] === 1) ? HERO_ADV_DIFF_HARD : HERO_ADV_DIFF_NORMAL; ?></td>
|
||||
<td>
|
||||
<?php if ((int)$t4Offer['difficulty'] === 1): ?>
|
||||
<img src="img/hero/dangerGreat.gif" alt="hard" title="<?php echo HERO_ADV_DIFF_HARD; ?>" style="vertical-align:middle; margin-right:4px; width:16px; height:16px;">
|
||||
<?php echo HERO_ADV_DIFF_HARD; ?>
|
||||
<?php else: ?>
|
||||
<img src="img/hero/danger.gif" alt="normal" title="<?php echo HERO_ADV_DIFF_NORMAL; ?>" style="vertical-align:middle; margin-right:4px; width:16px; height:16px;">
|
||||
<?php echo HERO_ADV_DIFF_NORMAL; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?php echo $generator->getTimeFormat((int) $t4Offer['duration']); ?></td>
|
||||
<td><span id="timer<?php echo ++$session->timer; ?>"><?php echo $generator->getTimeFormat(max(0, $t4Offer['expire'] - $t4Now)); ?></span></td>
|
||||
<td style="width:140px;text-align:center;">
|
||||
|
||||
@@ -1,10 +1,22 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
# T4 hero auction tab (37_auction.tpl) - Phase 6 #
|
||||
# POST actions: #
|
||||
# t4action=bid (aucid, maxbid) #
|
||||
# t4action=sell (rowid, qty, price, duration) #
|
||||
# bid_max is only ever shown for the viewer's OWN bids (getMyBids). #
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : HERO T4 AUCTION PAGE ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$t4Auction = new HeroAuction();
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
# T4 hero inventory & equipment tab (37_items.tpl) - Phase 6 #
|
||||
# Inline POST handling (same convention as 37_hero.tpl's rename form): #
|
||||
# t4action=equip|unequip|useitem, rowid, qty #
|
||||
# Law tablets target the CURRENT village ($village->wid). #
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : HERO T4 ITEMS PAGE ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$t4Msg = '';
|
||||
|
||||
@@ -152,7 +152,7 @@ foreach ($heroes as $hero_datarow) {
|
||||
</table>
|
||||
<?php
|
||||
} elseif (!$reviving) {
|
||||
if (in_array($hero_datarow['unit'], [1, 11, 21])) {
|
||||
if (in_array($hero_datarow['unit'], [1, 11, 21, 51, 61, 71, 81])) {
|
||||
// basic unit of the tribe - available without research
|
||||
echo $renderReviveRow($hero_datarow, $name, $wood, $clay, $iron, $crop, $training_time, $id);
|
||||
} else {
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
# T4 hero mansion tab navigation (37_t4nav.tpl) - Phase 6 #
|
||||
# Included by 37.tpl with $t4tab set to 'hero'|'items'|'adventures'|'auction'. #
|
||||
# Silver balance shown on the right; reuses existing anchor styling. #
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : HERO T4 NAV BAR ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Created by : Shadow ##
|
||||
## Designed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
|
||||
$t4HeroItems = new HeroItems();
|
||||
$t4Silver = $t4HeroItems->getSilver($session->uid);
|
||||
$t4Tabs = [
|
||||
|
||||
@@ -67,6 +67,26 @@ $unitData = [
|
||||
24 => $u24 ?? [],
|
||||
25 => $u25 ?? [],
|
||||
26 => $u26 ?? [],
|
||||
51 => $u51 ?? [],
|
||||
53 => $u53 ?? [],
|
||||
54 => $u54 ?? [],
|
||||
55 => $u55 ?? [],
|
||||
56 => $u56 ?? [],
|
||||
61 => $u61 ?? [],
|
||||
62 => $u62 ?? [],
|
||||
63 => $u63 ?? [],
|
||||
65 => $u65 ?? [],
|
||||
66 => $u66 ?? [],
|
||||
71 => $u71 ?? [],
|
||||
72 => $u72 ?? [],
|
||||
73 => $u73 ?? [],
|
||||
75 => $u75 ?? [],
|
||||
76 => $u76 ?? [],
|
||||
81 => $u81 ?? [],
|
||||
83 => $u83 ?? [],
|
||||
84 => $u84 ?? [],
|
||||
85 => $u85 ?? [],
|
||||
86 => $u86 ?? [],
|
||||
];
|
||||
|
||||
// The single source of truth for "which units belong to each tribe", used
|
||||
@@ -79,6 +99,10 @@ $tribeUnits = [
|
||||
1 => [1, 2, 3, 5, 6],
|
||||
2 => [11, 12, 13, 15, 16],
|
||||
3 => [21, 22, 24, 25, 26],
|
||||
6 => [51, 53, 54, 55, 56],
|
||||
7 => [61, 62, 63, 65, 66],
|
||||
8 => [71, 72, 73, 75, 76],
|
||||
9 => [81, 83, 84, 85, 86],
|
||||
];
|
||||
|
||||
// The 2 pre-existing bugs, explicitly identified on the unit (see note above).
|
||||
|
||||