Enchantment/Spells

*  initialize SpellList as null so it can be referenced
This commit is contained in:
Sarjuuk
2025-03-04 00:29:08 +01:00
parent 44bd9f521b
commit efc8b51c8f

View File

@@ -12,9 +12,9 @@ class EnchantmentList extends BaseType
public static $brickFile = 'enchantment'; public static $brickFile = 'enchantment';
public static $dataTable = '?_itemenchantment'; public static $dataTable = '?_itemenchantment';
private $jsonStats = []; private array $jsonStats = [];
private SpellList $relSpells; private ?SpellList $relSpells = null;
private $triggerIds = []; private array $triggerIds = [];
protected $queryBase = 'SELECT ie.*, ie.id AS ARRAY_KEY FROM ?_itemenchantment ie'; protected $queryBase = 'SELECT ie.*, ie.id AS ARRAY_KEY FROM ?_itemenchantment ie';
protected $queryOpts = array( // 502 => Type::ENCHANTMENT protected $queryOpts = array( // 502 => Type::ENCHANTMENT