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
+2
View File
@@ -2325,6 +2325,8 @@ tz_def('TZ_MILESTONE_FIRST_WW', 'First to Conquer a Wonder of the World');
tz_def('TZ_MILESTONE_FIRST_WW_PLAN', 'First to Conquer a WW Building Plan');
tz_def('TZ_MILESTONE_FIRST_ALLIANCE', 'First Alliance Founded');
tz_def('TZ_MILESTONE_FIRST_PVP_CONQUEST', 'First Village Conquered from a Player');
tz_def('TZ_MILESTONE_FIVE_VILLAGES', 'First to Found 5 Villages');
tz_def('TZ_MILESTONE_FOUNDED_BY', 'Founded by');
// ===== i18n etape 2 (lot suivant) =====
tz_def('TZ_ACCOUNT_OR_INCREASE_YOUR_RESOURCE', '-Account or increase your resource production.To do so click');
+2
View File
@@ -2615,4 +2615,6 @@ define('TZ_MILESTONE_FIRST_WW', 'Premier à conquérir une Merveille du Monde');
define('TZ_MILESTONE_FIRST_WW_PLAN', 'Premier à conquérir un Plan de Merveille');
define('TZ_MILESTONE_FIRST_ALLIANCE', 'Première alliance fondée');
define('TZ_MILESTONE_FIRST_PVP_CONQUEST', 'Premier village conquis sur un joueur');
define('TZ_MILESTONE_FIVE_VILLAGES', 'Premier à fonder 5 villages');
define('TZ_MILESTONE_FOUNDED_BY', 'Fondée par');
?>
+3 -1
View File
@@ -2602,4 +2602,6 @@ define('TZ_MILESTONE_FIRST_ARTIFACT', 'Primul care a capturat un artefact');
define('TZ_MILESTONE_FIRST_WW', 'Primul care a cucerit un Wonder of the World');
define('TZ_MILESTONE_FIRST_WW_PLAN', 'Primul care a cucerit un Plan WW');
define('TZ_MILESTONE_FIRST_ALLIANCE', 'Prima alianță fondată');
define('TZ_MILESTONE_FIRST_PVP_CONQUEST', 'Primul sat cucerit de la un jucător');
define('TZ_MILESTONE_FIRST_PVP_CONQUEST', 'Primul sat cucerit de la un jucător');
define('TZ_MILESTONE_FIVE_VILLAGES', 'Primul care a fondat 5 sate');
define('TZ_MILESTONE_FOUNDED_BY', 'Fondată de');