Skip to content

Commit 615c203

Browse files
committed
Setup/img-maps
* script cleanup * fixed subzone generation and made color less garish * fixed alphamap generation and alphamapcheck not pointing to the same path * fixed padding UtilityScript args with unexpected var types
1 parent 931a90f commit 615c203

File tree

11 files changed

+139
-340
lines changed

11 files changed

+139
-340
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# cache
55
/cache/template/*
6-
/setup/generated/alphaMaps/*.png
7-
/cache/firstrun
6+
/cache/alphaMaps/*
7+
/cache/setup/*
88

99
# extract from MPQ
1010
/setup/mpqdata/*

includes/game.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static function getPageText($ptId)
244244

245245
private static function alphaMapCheck(int $areaId, array &$set) : bool
246246
{
247-
$file = 'setup/generated/alphaMaps/'.$areaId.'.png';
247+
$file = 'cache/alphaMaps/'.$areaId.'.png';
248248
if (!file_exists($file)) // file does not exist (probably instanced area)
249249
return false;
250250

localization/locale_dede.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@
11511151
'Miscellaneous' => "Diverse",
11521152
'Azeroth' => "Azeroth",
11531153
'CosmicMap' => "Kosmische Karte",
1154+
'floorN' => "%d. Stockwerk"
11541155
),
11551156
'privileges' => array(
11561157
'main' => "Auf unserer Seite könnt Ihr <a href=\"?reputation\">Ruf</a> erringen. Hauptsächlich erringt man Ruf dadurch, dass Eure Kommentare positiv bewertet werden.<br><br>Das heißt, Euer Ruf hängt in gewissem Maße davon ab, wie sehr Ihr der Community beiträgt.<br><br>Mit dem Sammeln von Ruf verdient Ihr Euch auch das Vertrauen der Gemeinschaft ein, und Ihr erhält Privilegien. Unten könnt Ihr eine vollständige Liste einsehen.",

localization/locale_enus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@
11521152
'Miscellaneous' => "Miscellaneous",
11531153
'Azeroth' => "Azeroth",
11541154
'CosmicMap' => "Cosmic Map",
1155+
'floorN' => "Level %d"
11551156
),
11561157
'privileges' => array(
11571158
'main' => "Here on our Site you can generate <a href=\"?reputation\">reputation</a>. The main way to generate it is to get your comments upvotes.<br><br>So, reputation is a rough measure of how much you contributed to the community.<br><br>As you amass reputation you earn the community's trust and you will be granted with additional privileges. You can find a full list below.",

localization/locale_eses.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@
11511151
'Miscellaneous' => "Miscelánea",
11521152
'Azeroth' => "Azeroth",
11531153
'CosmicMap' => "Mapa cósmico",
1154+
'floorN' => "Nivel %d"
11541155
),
11551156
'privileges' => array(
11561157
'main' => "Aquí, en AoWoW, puedes conseguir <a href=\"?reputation\">reputación</a>. La forma principal de conseguirla es conseguir que tus comentarios sean votados de forma positiva.<br /><br />Así pues, la reputación es algo que mide, más o menos, cúanto has contribuido a la comunidad.<br /><br />Conforme consigues reputación, te ganas la confianza de la comunidad y tendrás privilegios adicionales. Puedes encontrar una lista completa debajo.",

localization/locale_frfr.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@
11511151
'Miscellaneous' => "Divers",
11521152
'Azeroth' => "Azeroth",
11531153
'CosmicMap' => "Carte cosmique",
1154+
'floorN' => "Plancher %d"
11541155
),
11551156
'privileges' => array(
11561157
'main' => "Sur AoWoW, vous pouvez accumuler de la <a href=\"?reputation\">réputation</a>. Le principal moyen d'en accumuler est d'avoir un score élevé pour vos commentaires.<br><br>Ainsi, la réputation est une vision sommaire de vos contributions à la communauté.<br><br>En amassant de la réputation, vous gagnez le respect de la communauté et vous obtiendrez certains privilèges. Vous pouvez en trouver la liste complète ci-dessous.",

localization/locale_ruru.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@
11511151
'Miscellaneous' => "Разное",
11521152
'Azeroth' => "Азерот",
11531153
'CosmicMap' => "Звёздная карта",
1154+
'floorN' => "Уровень %d"
11541155
),
11551156
'privileges' => array(
11561157
'main' => "Здесь на AoWoW вы можете зарабатывать <a href=\"?reputation\">репутацию</a>. Основной источник получения репутации — увеличение рейтинга ваших комментариев другими пользователями.<br><br>Репутация примерно измеряет количество вашего вклада в сообщество.<br><br>По мере того, как вы зарабатываете репутацию, вы получаете доверие сообщества и особые привилегии. Полный список привилегий расположен ниже.",

localization/locale_zhcn.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,8 @@
11501150
'Battlegrounds' => "战场",
11511151
'Miscellaneous' => "其他",
11521152
'Azeroth' => "艾泽拉斯",
1153-
'CosmicMap' => "宇宙地图"
1153+
'CosmicMap' => "宇宙地图",
1154+
'floorN' => "[Level %d]"
11541155
),
11551156
'privileges' => array(
11561157
'main' => "在我们的网站上,你可以通过 <a href=\"?reputation\">声望</a>. 来获取特权。获取声望的主要途径是获得评论的赞同。<br><br>因此,声望是衡量你对社区的贡献程度的一个大致指标。<br><br>随着声望的积累,你将获得社区的信任,并被赋予额外的特权。以下是完整的特权列表。",

setup/tools/CLISetup.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public static function run(string $cmd, &$args) : bool
341341
return false;
342342
}
343343

344-
$args = array_pad($args, 4, []);
344+
$args = array_pad($args, 4, null);
345345

346346
$success = $us->run($args);
347347

setup/tools/dbc.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private function read()
483483

484484
$this->writeToDB();
485485

486-
$this->endCLean();
486+
$this->endClean();
487487

488488
return true;
489489
}

0 commit comments

Comments
 (0)