mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- Error handling:
* replaced error-suppressions with proper checks * log php errors to db * use __callStatic() to access localization and thus handle erronous keys - Setup: * fixed some erronous filenames when generating icons * increased alpha threshold for spawn maps (should improve spawn points) - disentangled DB::Aowow and DB::World. Aowow should now be able to run with DB::World being on a different server - added missing faction transfer pendants (title/quest/faction/..) - fixed extended costs for specific vendors
This commit is contained in:
@@ -183,7 +183,23 @@ class AchievementPage extends GenericPage
|
||||
|
||||
$this->rewards['text'] = $this->subject->getField('reward', true);
|
||||
|
||||
// todo (low): create pendant from player_factionchange_achievement
|
||||
// factionchange-equivalent
|
||||
if ($pendant = DB::World()->selectCell('SELECT IF(horde_id = ?d, alliance_id, -horde_id) FROM player_factionchange_achievement WHERE alliance_id = ?d OR horde_id = ?d', $this->typeId, $this->typeId, $this->typeId))
|
||||
{
|
||||
$altAcv = new AchievementList(array(['id', abs($pendant)]));
|
||||
if (!$altAcv->error)
|
||||
{
|
||||
$this->transfer = sprintf(
|
||||
Lang::$achievement['_transfer'],
|
||||
$altAcv->id,
|
||||
1, // quality
|
||||
$altAcv->getField('iconString'),
|
||||
$altAcv->getField('name', true),
|
||||
$pendant > 0 ? 'alliance' : 'horde',
|
||||
$pendant > 0 ? Lang::$game['si'][1] : Lang::$game['si'][2]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**************/
|
||||
/* Extra Tabs */
|
||||
|
||||
Reference in New Issue
Block a user