mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 07:11:02 +00:00
Fix milestone onmouseover and add 8th milestone
Fix milestone onmouseover and add 8th milestone
This commit is contained in:
@@ -3829,9 +3829,13 @@ class Automation {
|
||||
// Checked right after the new village row exists, so the
|
||||
// COUNT below already includes it.
|
||||
if (defined('NEW_FUNCTIONS_MILESTONES') && NEW_FUNCTIONS_MILESTONES) {
|
||||
if ($database->countVillages($to['owner']) == 2) {
|
||||
$villageCount = $database->countVillages($to['owner']);
|
||||
if ($villageCount == 2) {
|
||||
$database->recordMilestoneIfFirst('second_village', $to['owner'], $data['to']);
|
||||
}
|
||||
if ($villageCount == 5) {
|
||||
$database->recordMilestoneIfFirst('five_villages', $to['owner'], $data['to']);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
// here must come movement from returning settlers
|
||||
|
||||
Reference in New Issue
Block a user