The first release of the refactored version

It's still a work in progress, there are a lot of things that will
change in the final release
This commit is contained in:
iopietro
2018-09-16 17:22:39 +02:00
parent f032523e1c
commit 62d6e19ee9
3503 changed files with 90956 additions and 35819 deletions
+1 -4
View File
@@ -629,9 +629,6 @@ class adm_DB {
if($unitarray) { reset($unitarray); }
$unitarray = $GLOBALS["u".$i];
$speeds[] = $unitarray['speed'];
//echo print_r(array_keys($speeds))."unitspd\n".$i."trib\n";
} else {
$enforce['u'.$i]='0';
}
@@ -662,7 +659,7 @@ class adm_DB {
global $technology, $database;
$isNatar = $database->getVillageField($wid, "natar");
$upkeep = $technology->getUpkeep($this->getAllUnits($wid), 0, $wid);
$upkeep = $database->getUpkeep($this->getAllUnits($wid), 0, $wid);
$production = [];
$production['wood'] = $this->getWoodProd($fdata, $ocounter,$b1);
$production['clay'] = $this->getClayProd($fdata, $ocounter,$b2);
+3 -1
View File
@@ -17,6 +17,8 @@
// # Source code: https://github.com/Shadowss/TravianZ ##
// # ##
// ################################################################################
use TravianZ\Village\Units;
include_once("../GameEngine/Artifacts.php");
include_once("../GameEngine/Units.php");
include_once("../GameEngine/Generator.php");
@@ -74,7 +76,7 @@ class funct
// add ban
break;
case "delOas":
$units->returnTroops($get['did'], 1);
Units::returnTroops($get['did'], 1);
$database->removeOases($get['oid']);
break;
case "logout":