Documentation
¶
Overview ¶
Regenerates the spell store, sim/<class>/spell_data_auto_gen.go, the hunter's pet_families_auto_gen.go and ammo_auto_gen.go, and the raid buffs from the game files database.
Its own binary, not a mode of gen_db: gen_db imports every class package, so a class file that does not compile stops it. This binary imports sim/core, sim/core/spelldata and sim/common - the item-proc routing in tools/database/gen_effects.go reads the store - so the class files are the generated files it can rewrite without compiling them, and a broken store stops it the same way a broken class file stops gen_db. Neither reaches the tree from here: spelldata_write.go type-checks the rendered files in a staging directory and writes none of them until they build - unless -unchecked says to write them anyway, for a class file whose call sites cannot compile until they move onto what it will state.
go run ./tools/database/gen_spelldata go run ./tools/database/gen_spelldata -classes=druid -racials # those from the database, the rest as committed go run ./tools/database/gen_spelldata -classes=none -shared=false # the items alone go run ./tools/database/gen_spelldata -check go run ./tools/database/gen_spelldata -unchecked go run ./tools/database/gen_spelldata -everyClassSpell -unchecked # a store of every class spell, for tools/spelldata -dump