Summary/Itemsets

* fixed set bonus calculation when using multiple sets in one summary

Localization
 * create more concise error messages when accessing nonexistant locale strings
This commit is contained in:
Sarjuuk
2020-06-06 15:52:27 +02:00
parent 321f28d35c
commit 240024fb10
3 changed files with 8 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ if (!CLI)
$setOut = array(
'id' => $set['id'],
'idbak' => $set['refSetId'],
'name' => (7 - $set['quality']).Util::jsEscape(Util::localizedString($set, 'name')),
'pieces' => [],
'heroic' => !!$set['heroic'], // should be bool
@@ -76,9 +77,6 @@ if (!CLI)
if ($set['contentGroup'])
$setOut['note'] = $set['contentGroup'];
if ($set['id'] < 0)
$setOut['idbak'] = $set['refSetId'];
for ($i = 1; $i < 11; $i++)
if ($set['item'.$i])
$setOut['pieces'][] = $set['item'.$i];

View File

@@ -0,0 +1 @@
UPDATE aowow_dbversion SET `build` = CONCAT(IFNULL(`build`, ''), ' itemsets');