mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 04:44:21 +00:00
update
This commit is contained in:
@@ -614,10 +614,8 @@ class Automation {
|
||||
$q = "UPDATE ".TB_PREFIX."fdata set f".$indi['field']." = ".$indi['level'].", f".$indi['field']."t = ".$indi['type']." where vref = ".$indi['wid'];
|
||||
if($database->query($q)) {
|
||||
$level = $database->getFieldLevel($indi['wid'],$indi['field']);
|
||||
$pop = $this->getPop($indi['type'],($level-1));
|
||||
$database->modifyPop($indi['wid'],$pop[0],0);
|
||||
$this->recountPop($indi['wid']);
|
||||
$this->procClimbers($database->getVillageField($indi['wid'],'owner'));
|
||||
$database->addCP($indi['wid'],$pop[1]);
|
||||
|
||||
if($indi['type'] == 10) {
|
||||
$max=$database->getVillageField($indi['wid'],"maxstore");
|
||||
|
||||
Reference in New Issue
Block a user