mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-31 15:47:14 +00:00
Merge branch 'master' of https://github.com/Shadowss/TravianZ
This commit is contained in:
@@ -48,7 +48,6 @@ if(isset($id))
|
|||||||
91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd
|
91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd
|
||||||
9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3
|
9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3
|
||||||
Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg==";
|
Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg==";
|
||||||
/*
|
|
||||||
class Generator
|
class Generator
|
||||||
{
|
{
|
||||||
public function getMapCheck($wref)
|
public function getMapCheck($wref)
|
||||||
@@ -57,7 +56,6 @@ if(isset($id))
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
$generator = new Generator;
|
$generator = new Generator;
|
||||||
*/
|
|
||||||
if($village and $user)
|
if($village and $user)
|
||||||
{
|
{
|
||||||
include("search2.tpl"); ?>
|
include("search2.tpl"); ?>
|
||||||
|
|||||||
+1
-9
@@ -11,19 +11,11 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
<<<<<<< HEAD
|
|
||||||
include_once("../GameEngine/Database.php");
|
include_once("../GameEngine/Database.php");
|
||||||
include_once("../GameEngine/Admin/database.php");
|
include_once("../GameEngine/Admin/database.php");
|
||||||
include_once("../GameEngine/Data/buidata.php");
|
include_once("../GameEngine/Data/buidata.php");
|
||||||
include_once ("../GameEngine/Lang/" . LANG . ".php");
|
include_once ("../GameEngine/Lang/" . LANG . ".php");
|
||||||
=======
|
|
||||||
include("../GameEngine/Database.php");
|
|
||||||
include("../GameEngine/Admin/database.php");
|
|
||||||
include("../GameEngine/config.php");
|
|
||||||
include("../GameEngine/Data/buidata.php");
|
|
||||||
// TODO: Should we including Session.php here instead?
|
|
||||||
include_once ("../GameEngine/Lang/" . LANG . ".php");
|
|
||||||
>>>>>>> c9cc7c1f0a714bc65502dce1fd28edb31c59e092
|
|
||||||
|
|
||||||
class timeFormatGenerator
|
class timeFormatGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1948,8 +1948,7 @@ class Automation {
|
|||||||
$tblevel = $bdo['f'.$rand];
|
$tblevel = $bdo['f'.$rand];
|
||||||
$tbgid = $bdo['f'.$rand.'t'];
|
$tbgid = $bdo['f'.$rand.'t'];
|
||||||
$tbid = $rand;
|
$tbid = $rand;
|
||||||
$needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$bid25[$residence]['attri']))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5);
|
if ($battlepart[4]>$battlepart[3])
|
||||||
if ($battlepart[4]>$needed_cata)
|
|
||||||
{
|
{
|
||||||
$info_cat = "".$catp_pic.", ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.";
|
$info_cat = "".$catp_pic.", ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.";
|
||||||
$database->setVillageLevel($data['to'],"f".$tbid."",'0');
|
$database->setVillageLevel($data['to'],"f".$tbid."",'0');
|
||||||
@@ -1988,7 +1987,7 @@ class Automation {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$demolish=$battlepart[4]/$needed_cata;
|
$demolish=$battlepart[4]/$battlepart[3];
|
||||||
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-($battlepart[4]*8)));
|
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-($battlepart[4]*8)));
|
||||||
if ($tblevel==$totallvl)
|
if ($tblevel==$totallvl)
|
||||||
$info_cata=" was not damaged.";
|
$info_cata=" was not damaged.";
|
||||||
@@ -2076,8 +2075,7 @@ class Automation {
|
|||||||
$tblevel = $bdo['f'.$rand];
|
$tblevel = $bdo['f'.$rand];
|
||||||
$tbgid = $bdo['f'.$rand.'t'];
|
$tbgid = $bdo['f'.$rand.'t'];
|
||||||
$tbid = $rand;
|
$tbid = $rand;
|
||||||
$needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$bid25[$residence]['attri']))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5);
|
if ($battlepart[4]>$battlepart[3])
|
||||||
if ($battlepart[4]>$needed_cata)
|
|
||||||
{
|
{
|
||||||
$info_cat = "".$catp_pic.", ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.";
|
$info_cat = "".$catp_pic.", ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.";
|
||||||
$database->setVillageLevel($data['to'],"f".$tbid."",'0');
|
$database->setVillageLevel($data['to'],"f".$tbid."",'0');
|
||||||
@@ -2120,7 +2118,7 @@ class Automation {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$demolish=$battlepart[4]/$needed_cata;
|
$demolish=$battlepart[4]/$battlepart[3];
|
||||||
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8)));
|
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8)));
|
||||||
if ($tblevel==$totallvl)
|
if ($tblevel==$totallvl)
|
||||||
$info_cata=" was not damaged.";
|
$info_cata=" was not damaged.";
|
||||||
@@ -2205,8 +2203,7 @@ class Automation {
|
|||||||
$tblevel = $bdo['f'.$rand];
|
$tblevel = $bdo['f'.$rand];
|
||||||
$tbgid = $bdo['f'.$rand.'t'];
|
$tbgid = $bdo['f'.$rand.'t'];
|
||||||
$tbid = $rand;
|
$tbid = $rand;
|
||||||
$needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$bid25[$residence]['attri']))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5);
|
if ($battlepart[4]>$battlepart[3])
|
||||||
if ($battlepart[4]>$needed_cata)
|
|
||||||
{
|
{
|
||||||
$info_cat .= "<br><tbody class=\"goods\"><tr><th>Information</th><td colspan=\"11\">
|
$info_cat .= "<br><tbody class=\"goods\"><tr><th>Information</th><td colspan=\"11\">
|
||||||
<img class=\"unit u".$catp_pic."\" src=\"img/x.gif\" alt=\"Catapult\" title=\"Catapult\" /> ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.</td></tr></tbody>";
|
<img class=\"unit u".$catp_pic."\" src=\"img/x.gif\" alt=\"Catapult\" title=\"Catapult\" /> ".$this->procResType($tbgid,$can_destroy,$isoasis)." destroyed.</td></tr></tbody>";
|
||||||
@@ -2249,7 +2246,7 @@ class Automation {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$demolish=$battlepart[4]/$needed_cata;
|
$demolish=$battlepart[4]/$battlepart[3];
|
||||||
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8)));
|
$totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8)));
|
||||||
if ($tblevel==$totallvl)
|
if ($tblevel==$totallvl)
|
||||||
$info_cata=" was not damaged.";
|
$info_cata=" was not damaged.";
|
||||||
|
|||||||
Reference in New Issue
Block a user