Fix Huns Loiality Regeneration & WW cannot be change to capital

Fix Huns Loiality Regeneration & WW cannot be change to capital
This commit is contained in:
novgorodschi catalin
2026-08-04 09:40:41 +03:00
parent 2972556067
commit a584c68153
6 changed files with 78 additions and 8 deletions
@@ -87,12 +87,28 @@ trait AutomationVillageUpkeep {
$array = $database->getProfileVillages(0, 6);
if(!empty($array)) {
foreach($array as $loyalty) {
if (($t25_level = $this->getTypeLevel(25, $loyalty['wref'])) >= 1) {
$value = $t25_level;
}elseif(($t26_level = $this->getTypeLevel(26, $loyalty['wref'])) >= 1){
$value = $t26_level;
/**
* Cladirile care regenereaza loialitatea.
*
* BUG REPARAT: se verificau doar Resedinta (25) si Palatul (26).
* Hunii nu au niciuna din ele - au Centrul de Comanda (44), care
* le tine locul. Satele lor nu-si mai regenerau loialitatea
* niciodata, deci ramaneau vesnic vulnerabile la cucerire.
*
* Restul jocului trateaza deja gid 44 ca resedinta - vezi
* AutomationBattleResolution, unde se calculeaza sloturile de
* expansiune - doar aici lipsea.
*/
$value = 0;
foreach (array(25, 26, 44) as $loyaltyBuilding) {
$lvl = $this->getTypeLevel($loyaltyBuilding, $loyalty['wref']);
if ($lvl >= 1) {
$value = $lvl;
break;
}
}
else $value = 0;
if($value > 0){
$newloyalty = min(100, $loyalty['loyalty'] + $value * (time() - $loyalty['lastupdate2']) / 3600);
+5
View File
@@ -4350,3 +4350,8 @@ tz_def('HERO_COL_ACTION', 'Action');
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('ADM_WW_IMAGE', 'Per-tribe World Wonder');
tz_def('ADM_WW_IMAGE_TIP', 'Each tribe sees its own World Wonder artwork, both on the village map and on the construction page. Tribes without artwork on disk keep the original image regardless of this setting.');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - satul nu poate fi capitala
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('TZ_WW_NO_CAPITAL', 'The World Wonder village cannot become your capital.');
+5
View File
@@ -4293,3 +4293,8 @@ tz_def('HERO_COL_ACTION', 'Action');
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('ADM_WW_IMAGE', 'Merveille par tribu');
tz_def('ADM_WW_IMAGE_TIP', 'Chaque tribu voit sa propre Merveille du Monde, sur la carte du village et sur la page de construction. Les tribus sans images gardent l\'image d\'origine, quel que soit ce reglage.');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - satul nu poate fi capitala
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('TZ_WW_NO_CAPITAL', 'Le village de la Merveille du Monde ne peut pas devenir votre capitale.');
+6 -1
View File
@@ -2178,7 +2178,7 @@ tz_def('TZ_IN_THE_VILLAGE_YOU_CAN_BUILD_BUILD', 'În sat poți construi clădiri
tz_def('TZ_IRON_25_5_GOLD', 'Fier +25% (5 aur)');
tz_def('TZ_ISO_YY_MM_DD_24H', 'ISO (aa/ll/zz 24h)');
tz_def('TZ_ITALIAN', 'Italiană');
tz_def('TZ_SPANISH', 'Spaniola');
tz_def('TZ_SPANISH', 'Spaniolă');
tz_def('TZ_I_ACTIVATED_PLUS_BUT_PRODUCTION_DI', 'Am activat Plus, dar producția nu a crescut.');
tz_def('TZ_JOIN_AN_ALLIANCE', 'Alătură-te unei alianțe');
tz_def('TZ_JOIN_AN_ALLIANCE_OR_FOUND_ONE_ON_Y', 'Alătură-te unei alianțe sau întemeiază una proprie.');
@@ -4090,3 +4090,8 @@ tz_def('HERO_COL_ACTION', 'Actiune');
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('ADM_WW_IMAGE', 'Minune pe trib');
tz_def('ADM_WW_IMAGE_TIP', 'Fiecare trib isi vede propria Minune a Lumii, atat pe harta satului cat si in pagina de constructie. Triburile fara imagini pe disc raman pe imaginea originala, indiferent de setare.');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - satul nu poate fi capitala
//////////////////////////////////////////////////////////////////////////////////////////////////////
tz_def('TZ_WW_NO_CAPITAL', 'Satul Minunii Lumii nu poate deveni capitala.');