Fix milestone onmouseover and add 8th milestone

Fix milestone onmouseover and add 8th milestone
This commit is contained in:
novgorodschi catalin
2026-07-01 11:50:04 +03:00
parent 0edb95203d
commit 40e5942c25
5 changed files with 70 additions and 24 deletions
+5 -1
View File
@@ -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