mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 05:41:01 +00:00
A small fix of newsbox 2
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$textArray = ["Natars Spawn", "WW Spawn", "WW Plan Spawn"];
|
$textArray = [["Natars Spawn", "WW Spawn", "WW Plan Spawn"], ["Natars Tribe", "WW Village", "Construction Plan"]];
|
||||||
$newTextArray = ["Natars Tribe", "WW Village", "Construction Plan"];
|
|
||||||
$spawnTimeArray = [NATARS_SPAWN_TIME, NATARS_WW_SPAWN_TIME, NATARS_WW_BUILDING_PLAN_SPAWN_TIME];
|
$spawnTimeArray = [NATARS_SPAWN_TIME, NATARS_WW_SPAWN_TIME, NATARS_WW_BUILDING_PLAN_SPAWN_TIME];
|
||||||
$areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned(), $database->areArtifactsSpawned(true)];
|
$areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned(), $database->areArtifactsSpawned(true)];
|
||||||
|
|
||||||
@@ -12,8 +11,8 @@ $areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned
|
|||||||
<tr>
|
<tr>
|
||||||
<td><b>
|
<td><b>
|
||||||
<?php
|
<?php
|
||||||
if($areSpawned[$i]) echo $newTextArray[$i];
|
if($areSpawned[$i]) echo $textArray[1][$i];
|
||||||
else echo $textArray[$i];
|
else echo $textArray[0][$i];
|
||||||
?></b></td>
|
?></b></td>
|
||||||
<td><b>: <font color="Red"><?php
|
<td><b>: <font color="Red"><?php
|
||||||
if($areSpawned[$i]) echo "Released";
|
if($areSpawned[$i]) echo "Released";
|
||||||
|
|||||||
Reference in New Issue
Block a user