mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: Palace no longer auto-changes capital
This commit is contained in:
@@ -643,7 +643,7 @@ class Automation {
|
||||
if(file_exists("GameEngine/Prevention/build.txt")) {
|
||||
unlink("GameEngine/Prevention/build.txt");
|
||||
}
|
||||
global $database,$bid18,$bid10,$bid11,$bid38,$bid39,$session;
|
||||
global $database,$bid18,$bid10,$bid11,$bid38,$bid39;
|
||||
$time = time();
|
||||
$array = array();
|
||||
$q = "SELECT * FROM ".TB_PREFIX."bdata where timestamp < $time and master = 0";
|
||||
@@ -688,12 +688,6 @@ class Automation {
|
||||
Automation::updateMax($database->getVillageField($indi['wid'],"owner"));
|
||||
}
|
||||
|
||||
if($indi['type'] == 26 && $level=='1'){
|
||||
// change capital to this city if we finished up building a palace
|
||||
$database->query("UPDATE ".TB_PREFIX."vdata SET capital = 0 WHERE owner = ".(int) $session->uid);
|
||||
$database->query("UPDATE ".TB_PREFIX."vdata SET capital = 1 WHERE owner = ".(int) $session->uid." AND wref = ".(int) $indi['wid']);
|
||||
}
|
||||
|
||||
if($indi['type'] == 38) {
|
||||
$max=$database->getVillageField($indi['wid'],"maxstore");
|
||||
if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; }
|
||||
|
||||
Reference in New Issue
Block a user