add ww tribe image

add ww tribe image
This commit is contained in:
novgorodschi catalin
2026-08-04 07:54:47 +03:00
parent 242fdd959f
commit 10fb3beb0d
99 changed files with 4701 additions and 7 deletions
@@ -50,7 +50,12 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
$psKeep = isset($_POST['plus_stats_keep']) ? (int) $_POST['plus_stats_keep'] : 0;
if ($psKeep < 0 || $psKeep > 3650) { $psKeep = 0; }
// Minunea Lumii cu stil pe trib
$wwImgChoice = (isset($_POST['ww_image']) && $_POST['ww_image'] === 'false')
? 'false' : 'true';
$text = admin_config_template_contents(array(
'%WWIMAGE%' => $wwImgChoice,
'%ALLIANCEBONUSES%' => $abChoice,
'%PLUSSTATS%' => $psChoice,
'%PLUSSTATSHOURS%' => $psHours,
+38
View File
@@ -0,0 +1,38 @@
<?php
/**
* Clasa CSS de trib pentru Minunea Lumii.
*
* Intoarce " wwt<trib>" daca functia e pornita SI tribul chiar are imaginile pe
* disc; altfel sir gol, iar minunea ramane cea originala.
*
* Verificarea pe disc e fallback-ul: daca stergi un folder de imagini, tribul
* revine singur la varianta initiala, fara sa mai atingi codul.
*/
if (!function_exists('tz_ww_tribe_class')) {
function tz_ww_tribe_class($tribe)
{
static $cache = array();
$tribe = (int) $tribe;
if ($tribe <= 0) {
return '';
}
if (isset($cache[$tribe])) {
return $cache[$tribe];
}
if (!defined('NEW_FUNCTION_WW_IMAGE') || !NEW_FUNCTION_WW_IMAGE) {
return $cache[$tribe] = '';
}
$dir = (defined('GP_LOCATE') ? GP_LOCATE : 'gpack/travian_default/')
. 'img/g/ww/t' . $tribe;
return $cache[$tribe] = (is_dir($dir) && is_file($dir . '/g40_0.png'))
? ' wwt' . $tribe
: '';
}
}
+6
View File
@@ -4342,3 +4342,9 @@ tz_def('HERO_COL_IMAGE', 'Image');
tz_def('HERO_COL_NAME', 'Item name');
tz_def('HERO_COL_TIER', 'Tier (bonus)');
tz_def('HERO_COL_ACTION', 'Action');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - stil pe trib
//////////////////////////////////////////////////////////////////////////////////////////////////////
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.');
File diff suppressed because it is too large Load Diff
+6
View File
@@ -4285,3 +4285,9 @@ tz_def('HERO_COL_IMAGE', 'Image');
tz_def('HERO_COL_NAME', 'Nom de l\'objet');
tz_def('HERO_COL_TIER', 'Niveau (bonus)');
tz_def('HERO_COL_ACTION', 'Action');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - stil pe trib
//////////////////////////////////////////////////////////////////////////////////////////////////////
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.');
+6
View File
@@ -4082,3 +4082,9 @@ tz_def('HERO_COL_IMAGE', 'Imagine');
tz_def('HERO_COL_NAME', 'Numele itemului');
tz_def('HERO_COL_TIER', 'Nivel (bonus)');
tz_def('HERO_COL_ACTION', 'Actiune');
//////////////////////////////////////////////////////////////////////////////////////////////////////
// MINUNEA LUMII - stil pe trib
//////////////////////////////////////////////////////////////////////////////////////////////////////
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.');