mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 02:24:21 +00:00
some fixes by SalmonPlus
This commit is contained in:
@@ -963,7 +963,8 @@ class Automation {
|
||||
if($enforce['u'.$i]>'0'){
|
||||
$database->modifyEnforce($enforce['id'],$i,round($battlepart[2]*$enforce['u'.$i]),0);
|
||||
$dead[$i]+=round($battlepart[2]*$enforce['u'.$i]);
|
||||
if($dead[$i]!=$enforce['u'.$i]){
|
||||
$checkpoint=round($battlepart[2]*$enforce['u'.$i]);
|
||||
if($checkpoint!=$enforce['u'.$i]){
|
||||
$wrong='1';
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -430,12 +430,13 @@ class Battle {
|
||||
$moralbonus = 1.0;
|
||||
}
|
||||
|
||||
if($involve >= 1000) {
|
||||
$Mfactor = round(2*(1.8592-pow($involve,0.015)),4);
|
||||
}
|
||||
else {
|
||||
$Mfactor = 1.5;
|
||||
}
|
||||
if($involve >= 1000) {
|
||||
$Mfactor = round(2*(1.8592-pow($involve,0.015)),4);
|
||||
}
|
||||
else {
|
||||
$Mfactor = 1.5;
|
||||
}
|
||||
if ($Mfactor < 1.25778){$Mfactor=1.25778;}elseif ($Mfactor > 1.5){$Mfactor=1.5;}
|
||||
// Formule voor het berekenen verloren drives
|
||||
// $type = 1 Raid, 0 Normal
|
||||
if($type == 1)
|
||||
|
||||
@@ -21,4 +21,9 @@ $_GET = array_map('mysql_real_escape_string', $_GET);
|
||||
$_GET = array_map('htmlspecialchars', $_GET);
|
||||
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
|
||||
$_COOKIE = array_map('htmlspecialchars', $_COOKIE);
|
||||
|
||||
$rsargs=$_GET['rsargs'];
|
||||
$_GET = array_map('mysql_real_escape_string', $_GET);
|
||||
$_GET = array_map('htmlspecialchars', $_GET);
|
||||
$_GET['rsargs']=$rsargs;
|
||||
?>
|
||||
Reference in New Issue
Block a user