Generale fixes

+Fixed a bug that didn't return reinforcements in counquered oasis, if
it was released by the owner, or from the admin panel
+Changed the catapults and rams formulas (still not completed at 100%),
thanks to Kirilloid!
+Changed the Natars' capital default coordinates
This commit is contained in:
iopietro
2018-07-28 15:07:52 +02:00
parent dbd425b1e4
commit f032523e1c
9 changed files with 123 additions and 110 deletions
+6 -3
View File
@@ -18,6 +18,9 @@
// # ##
// ################################################################################
include_once("../GameEngine/Artifacts.php");
include_once("../GameEngine/Units.php");
include_once("../GameEngine/Generator.php");
class funct
{
@@ -28,7 +31,7 @@ class funct
function Act($get)
{
global $admin, $database;
global $admin, $database, $units, $generator;
$artifact = new Artifacts();
@@ -71,8 +74,8 @@ class funct
// add ban
break;
case "delOas":
$database->query('UPDATE ' . TB_PREFIX . 'odata SET conqured = 0, owner = 2, name = "Unoccupied Oasis" WHERE wref = ' . $get['oid']);
// oaza
$units->returnTroops($get['did'], 1);
$database->removeOases($get['oid']);
break;
case "logout":
$this->LogOut();