* fixed misc php8 errors that went unnoticed as php7 warnings before
 * added lost areatrigger generator to Setup script
 * updated readme with working TCDB info and php 8.0 support
This commit is contained in:
Sarjuuk
2021-10-24 19:32:33 +02:00
parent 57864d2544
commit 6819c1b1f2
4 changed files with 8 additions and 7 deletions

View File

@@ -142,7 +142,7 @@ class FactionPage extends GenericPage
case 'creature_rate': $buff .= '[tr][td]'.Lang::game('npcs') .Lang::main('colon').'[/td]'; break;
case 'spell_rate': $buff .= '[tr][td]'.Lang::game('spells') .Lang::main('colon').'[/td]'; break;
default:
continue;
continue 2;
}
$buff .= '[td width=35px align=right][span class=q'.($v < 1 ? '10]' : '2]+').intVal(($v - 1) * 100).'%[/span][/td][/tr]';

View File

@@ -253,7 +253,7 @@ class ZonePage extends GenericPage
$this->extendGlobalData($started->getJSGlobals());
if (($tpl['A'] != -1) & ($_ = $started->getSOMData(SIDE_ALLIANCE)))
if (($tpl['A'] != -1) && ($_ = $started->getSOMData(SIDE_ALLIANCE)))
$addToSOM('alliancequests', array(
'coords' => [[$spawn['posX'], $spawn['posY']]],
'level' => $spawn['floor'],
@@ -264,7 +264,7 @@ class ZonePage extends GenericPage
'quests' => array_values($_)
));
if (($tpl['H'] != -1) & ($_ = $started->getSOMData(SIDE_HORDE)))
if (($tpl['H'] != -1) && ($_ = $started->getSOMData(SIDE_HORDE)))
$addToSOM('hordequests', array(
'coords' => [[$spawn['posX'], $spawn['posY']]],
'level' => $spawn['floor'],
@@ -350,7 +350,7 @@ class ZonePage extends GenericPage
$this->extendGlobalData($started->getJSGlobals());
if (($tpl['A'] != -1) & ($_ = $started->getSOMData(SIDE_ALLIANCE)))
if (($tpl['A'] != -1) && ($_ = $started->getSOMData(SIDE_ALLIANCE)))
$addToSOM('alliancequests', array(
'coords' => [[$spawn['posX'], $spawn['posY']]],
'level' => $spawn['floor'],
@@ -363,7 +363,7 @@ class ZonePage extends GenericPage
'quests' => array_values($_)
));
if (($tpl['H'] != -1) & ($_ = $started->getSOMData(SIDE_HORDE)))
if (($tpl['H'] != -1) && ($_ = $started->getSOMData(SIDE_HORDE)))
$addToSOM('hordequests', array(
'coords' => [[$spawn['posX'], $spawn['posY']]],
'level' => $spawn['floor'],