diff --git a/GameEngine/Form.php b/GameEngine/Form.php
index 172f1157..3af3f75f 100755
--- a/GameEngine/Form.php
+++ b/GameEngine/Form.php
@@ -51,6 +51,10 @@ class Form {
return "";
}
}
+
+ public function setValue($field, $value) {
+ $this->valuearray[$field] = $value;
+ }
public function getDiff($field,$cookie) {
if(array_key_exists($field,$this->valuearray) && $this->valuearray[$field] != $cookie) {
diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl
index 97b312b1..68ee8fe2 100644
--- a/Templates/Map/vilview.tpl
+++ b/Templates/Map/vilview.tpl
@@ -5,6 +5,7 @@ $uinfo = $database->getVillage($basearray['id']);
$oasis1 = mysqli_query($GLOBALS['link'],'SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysqli_real_escape_string($GLOBALS['link'],$_GET['d']));
$oasis = mysqli_fetch_assoc($oasis1);
$access=$session->access;
+$oasislink = '';
?>
';
echo '!['.$unarray[$i].' '.$unarray[$i].'](img/x.gif) | ';
echo ''.$unit['u'.$i].' | ';
@@ -469,14 +477,29 @@ if($type==18 or $type==19 or $type==20 or $type==21){
$test = "» ".FNEWVILLAGE." (".$village->unitarray['u'.$session->tribe.'0']."/3 ".SETTLERSAVAIL.")";
}
- echo ($basearray['fieldtype']==0)?
- ($village->resarray['f39']==0)?
- ($basearray['owner'] == $session->uid)?
-
- "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")" :
- "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")" :
- "» ".RAID." $otext" :
- "$test"
+ if ($basearray['fieldtype']==0) {
+ if ($village->resarray['f39']==0) {
+ if ($basearray['owner'] == $session->uid) {
+ echo "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")";
+ } else {
+ echo "» ".RAID." $otext ".OASIS." (".BUILDRALLY.")";
+ }
+ } else {
+ echo "» ".RAID." $otext";
+ }
+
+ if ($oasislink) {
+?>
+
+
+ |
+ » Combat Simulator
+ |
+
$value) {
+ if ($key[0] === 'u' && is_numeric($value)) {
+ $form->setValue('a2_' . substr($key, 1), $value);
+ }
+ }
+
+
+}
+
+$target = isset($_POST['target'])? $_POST['target'] : (!empty($_GET['target']) ? array((int) $_GET['target']) : array());
$tribe = isset($_POST['mytribe'])? $_POST['mytribe'] : $session->tribe;
if(count($target) > 0) {
include("Templates/Simulator/att_".preg_replace("/[^a-zA-Z0-9_-]/","",$tribe).".tpl");