Setup/Spawns

* implement SpawnedByDefault from TC
 * maybe fix a longstanding issue where multiple parent areas per instanced map lead to wrong spawn points
    map  should be                  can also be
    36   The Deadmines              The Great Sea, Unused Ironcladcove
    109  The Temple of Atal'Hakkar  Sunken Temple
    540  The Shattered Halls        Hellfire Citadel
    560  Old Hillsbrad Foothills    Hyjal Past
    631  Icecrown Citadel           The Frost Queen's Lair, Putricide's Laboratory of Alchemical Horrors and Fun, The Crimson Hall, The Frozen Throne, The Sanctum of Blood
This commit is contained in:
Sarjuuk
2024-05-28 19:52:46 +02:00
parent a87b869896
commit f422c4ecfb
21 changed files with 160 additions and 103 deletions

View File

@@ -630,8 +630,13 @@ trait spawnHelper
$opts = $menu = $tt = $info = [];
$footer = '';
if ($s['respawn'])
$info[1] = '<span class="q0">'.Lang::npc('respawnIn').Lang::main('colon').Lang::formatTime($s['respawn'] * 1000, 'game', 'timeAbbrev', true).'</span>';
if ($s['respawn'] > 0)
$info[1] = '<span class="q0">'.Lang::npc('respawnIn', [Lang::formatTime($s['respawn'] * 1000, 'game', 'timeAbbrev', true)]).'</span>';
else if ($s['respawn'] < 0)
{
$info[1] = '<span class="q0">'.Lang::npc('despawnAfter', [Lang::formatTime(-$s['respawn'] * 1000, 'game', 'timeAbbrev', true)]).'</span>';
$opts['type'] = 4; // make pip purple
}
if (User::isInGroup(U_GROUP_STAFF))
{