mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixup
* Profiler: handle items with invalid enchantments * Profiler: convert (last?) forgotten INSERT IGNORE to ON DUPLICATE KEY UPDATE id=id * Areatrigger: fix null related tabs * LatestComments: fix lv template for replies * Conditions: fixed tab names for locale DE
This commit is contained in:
@@ -533,8 +533,14 @@ class Profiler
|
||||
// cant reasonably get to the castItem from enchantId and slot
|
||||
|
||||
$profSpec = DB::Aowow()->selectCol('SELECT id AS ARRAY_KEY, skillLevel AS "1", skillLine AS "0" FROM ?_itemenchantment WHERE id IN (?a)', $permEnch);
|
||||
foreach ($permEnch as $eId)
|
||||
foreach ($permEnch as $slot => $eId)
|
||||
{
|
||||
if (!isset($profSpec[$eId]))
|
||||
{
|
||||
trigger_error('char #'.$charGuid.' on realm #'.$realmId.' has item in slot #'.$slot.' with invalid perm enchantment #'.CLI::bold($eId), E_USER_WARNING);
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($x = Util::getEnchantmentScore(0, 0, !!$profSpec[$eId][1], $eId))
|
||||
$data['gearscore'] += $x;
|
||||
else if ($profSpec[$eId][0] != 776) // not runeforging
|
||||
|
||||
@@ -314,7 +314,7 @@ class RemoteArenaTeamList extends ArenaTeamList
|
||||
}
|
||||
|
||||
foreach (Util::createSqlBatchInsert($memberData) as $ins)
|
||||
DB::Aowow()->query('INSERT IGNORE INTO ?_profiler_arena_team_member (?#) VALUES '.$ins, array_keys(reset($memberData)));
|
||||
DB::Aowow()->query('INSERT INTO ?_profiler_arena_team_member (?#) VALUES '.$ins.' ON DUPLICATE KEY UPDATE `id` = `id`', array_keys(reset($memberData)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class AreaTriggerPage extends GenericPage
|
||||
// tab: conditions
|
||||
$cnd = new Conditions();
|
||||
$cnd->getBySourceEntry($this->typeId, Conditions::SRC_AREATRIGGER_CLIENT)->prepare();
|
||||
if ($tab = $cnd->toListviewTab());
|
||||
if ($tab = $cnd->toListviewTab())
|
||||
{
|
||||
$this->extendGlobalData($cnd->getJsGlobals());
|
||||
$this->lvTabs[] = $tab;
|
||||
|
||||
@@ -114,7 +114,7 @@ class UtilityPage extends GenericPage
|
||||
$this->lvTabs[] = ['commentpreview', ['data' => $comments]];
|
||||
|
||||
array_walk($replies, fn(&$d) => $d['date'] = date(Util::$dateFormatInternal, $d['date']));
|
||||
$this->lvTabs[] = ['commentpreview', ['data' => $replies]];
|
||||
$this->lvTabs[] = ['replypreview', ['data' => $replies]];
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -4894,8 +4894,8 @@ var LANG = {
|
||||
|
||||
/* AoWoW: start custom */
|
||||
|
||||
tab_conditions: 'Bedingungen',
|
||||
tab_condition_for: 'Bedingung for',
|
||||
tab_conditions: 'Konditionen',
|
||||
tab_condition_for: 'Kondition für',
|
||||
cnd_either: 'Entweder',
|
||||
cnd_or: 'Oder',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user