mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 20:34:21 +00:00
update hero_full.php: finish roman units
This commit is contained in:
@@ -973,7 +973,8 @@ class Automation {
|
||||
if($res!=0){
|
||||
$reference = $database->sendResource($resource[0],$resource[1],$resource[2],$resource[3],$reqMerc,0);
|
||||
$database->modifyResource($from,$resource[0],$resource[1],$resource[2],$resource[3],0);
|
||||
$database->addMovement(0,$from,$to,$reference,micrtime(true),micrtime(true)+$timetaken,$send);
|
||||
$database->addMovement(0,$from,$to,$reference,micrtime(true),microtime(true)+$timetaken,$send);
|
||||
$database->addMovement(0,$from,$to,$reference,microtime(true),microtime(true)+$timetaken,$send);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4411,4 +4412,4 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
}
|
||||
}
|
||||
$automation = new Automation;
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -197,7 +197,7 @@ class Units {
|
||||
header("Location: a2b.php");
|
||||
}else{
|
||||
|
||||
$villageName = "Unoccupied Oasis";
|
||||
$villageName = $database->getOasisField($oid,"name");
|
||||
$speed= 300;
|
||||
$timetaken = $generator->procDistanceTime($coor,$village->coor,INCREASE_SPEED,1);
|
||||
array_push($post, "$id", "$villageName", "2","$timetaken");
|
||||
|
||||
@@ -57,6 +57,7 @@ echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMa
|
||||
<th>
|
||||
</th>
|
||||
<th colspan="4">
|
||||
<?php $routeid=$routeid == 0? $routeid=0:$routeid; ?>
|
||||
<a href="build.php?action=extendRoute&routeid=<?php echo $routeid; ?>">extend</a>*
|
||||
| <a href="build.php?id=<?php echo $id; ?>&t=4&action=editRoute&routeid=<?php echo $routeid; ?>">edit</a>
|
||||
| <a href="build.php?action=delRoute&routeid=<?php echo $routeid; ?>">delete</a>
|
||||
@@ -71,4 +72,4 @@ echo "Trade route to <a href=karte.php?d=".$route['wid']."&c=".$generator->getMa
|
||||
}}else{
|
||||
header("Location: build.php?id=".$_GET['id']."");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -469,7 +469,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
$enough_cp = false;
|
||||
}
|
||||
|
||||
$otext = ($basearray['occupied'] == 1)? "occupied" : "unoccupied";
|
||||
$otext = ($oasis['name']);
|
||||
if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) {
|
||||
$test = "<a href=\"a2b.php?id=".$_GET['d']."&s=1\">» Found new village.</a>";
|
||||
} elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) {
|
||||
@@ -487,7 +487,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
"» Raid $otext oasis. (build a rally point)" :
|
||||
|
||||
|
||||
"<a href=\"a2b.php?z=".$_GET['d']."&o\">» Raid $otext oasis.</a>" :
|
||||
"<a href=\"a2b.php?z=".$_GET['d']."&o\">» Raid $otext.</a>" :
|
||||
"$test"
|
||||
?>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user