* define and use some more magic numbers
 * move id-based custom data from spell SetupScript to aowow_setup_custom_data table
 * hide on unused glyph while at it
This commit is contained in:
Sarjuuk
2023-06-08 15:27:49 +02:00
parent 77f81c1bde
commit fcf24b3a45
11 changed files with 118 additions and 33 deletions

View File

@@ -18,11 +18,11 @@ SqlGen::register(new class extends SetupScript
protected $dbcSourceFiles = ['gemproperties', 'itemdisplayinfo', 'spell', 'glyphproperties', 'durabilityquality', 'durabilitycosts'];
private $skill2cat = array(
773 => 11, // inscription
356 => 9, // fishing
186 => 12, // mining
185 => 5, // cooking
171 => 6 // alchemy
SKILL_INSCRIPTION => 11,
SKILL_FISHING => 9,
SKILL_MINING => 12,
SKILL_COOKING => 5,
SKILL_ALCHEMY => 6
);
public function generate(array $ids = []) : bool