diff --git a/spells.php b/spells.php index aad09db..db85592 100644 --- a/spells.php +++ b/spells.php @@ -33,6 +33,11 @@ if (user_logged_in() && is_admin($user_data)) { //if (isset($attributes['id'])) unset($attributes['id']); //if (isset($attributes['conjureId'])) unset($attributes['conjureId']); if (isset($attributes['function'])) unset($attributes['function']); + + // Alias attributes + if (isset($attributes['level'])) $attributes['lvl'] = $attributes['level']; + if (isset($attributes['magiclevel'])) $attributes['maglv'] = $attributes['magiclevel']; + // Populate type attributes foreach (array_keys($attributes) as $attr) { if (!in_array($attr, $type_attr[$type])) @@ -67,6 +72,7 @@ if (user_logged_in() && is_admin($user_data)) { $spells[$type][$name][$att] = (isset($attributes[$att])) ? $attributes[$att] : false; } } + // Sort the spell list properly foreach (array_keys($spells) as $type) { usort($spells[$type], function ($a, $b) { @@ -155,12 +161,16 @@ if ($spells) {
![]() |
', $names);
}
- echo implode(', ', $names); } ?> |
@@ -238,6 +257,7 @@ if ($spells) {