mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Add player->getOutfit function
This commit is contained in:
parent
03cc09b8c7
commit
ffaa0729ac
@ -1229,6 +1229,13 @@ class OTS_Player extends OTS_Row_DAO
|
|||||||
$this->data['direction'] = (int) $direction;
|
$this->data['direction'] = (int) $direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getOutfit(): string
|
||||||
|
{
|
||||||
|
$hasLookAddons = $this->db->hasColumn('players', 'lookaddons');
|
||||||
|
|
||||||
|
return setting('core.outfit_images_url') . '?id=' . $this->getLookType() . ($hasLookAddons ? '&addons=' . $this->getLookAddons() : '') . '&head=' . $this->getLookHead() . '&body=' . $this->getLookBody() . '&legs=' . $this->getLookLegs() . '&feet=' . $this->getLookFeet();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Body color.
|
* Body color.
|
||||||
*
|
*
|
||||||
|
@ -60,7 +60,7 @@ foreach($posts as &$post) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($config['characters']['outfit']) {
|
if($config['characters']['outfit']) {
|
||||||
$post['outfit'] = setting('core.outfit_images_url') . '?id=' . $player->getLookType() . ($lookaddons ? '&addons=' . $player->getLookAddons() : '') . '&head=' . $player->getLookHead() . '&body=' . $player->getLookBody() . '&legs=' . $player->getLookLegs() . '&feet=' . $player->getLookFeet();
|
$post['outfit'] = $player->getOutfit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$groupName = '';
|
$groupName = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user