mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Structure/Types
* move distributed constant values to object * move reused iterators and checks to object
This commit is contained in:
@@ -10,7 +10,7 @@ class RacePage extends GenericPage
|
||||
{
|
||||
use TrDetailPage;
|
||||
|
||||
protected $type = TYPE_RACE;
|
||||
protected $type = Type::CHR_RACE;
|
||||
protected $typeId = 0;
|
||||
protected $tpl = 'detail-page-generic';
|
||||
protected $path = [0, 13];
|
||||
@@ -72,14 +72,14 @@ class RacePage extends GenericPage
|
||||
// leader
|
||||
if ($_ = $this->subject->getField('leader'))
|
||||
{
|
||||
$this->extendGlobalIds(TYPE_NPC, $_);
|
||||
$this->extendGlobalIds(Type::NPC, $_);
|
||||
$infobox[] = Lang::race('racialLeader').Lang::main('colon').'[npc='.$_.']';
|
||||
}
|
||||
|
||||
// start area
|
||||
if ($_ = $this->subject->getField('startAreaId'))
|
||||
{
|
||||
$this->extendGlobalIds(TYPE_ZONE, $_);
|
||||
$this->extendGlobalIds(Type::ZONE, $_);
|
||||
$infobox[] = Lang::race('startZone').Lang::main('colon').'[zone='.$_.']';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user