Example #1
0
        private static void GenerateConsumables()
        {
            var path = "../../../dbc/";

            var spell  = Path.Join(path, "spell.csv");
            var foods  = Spell.Extract(spell, "Restores $o1 health over $d");
            var waters = Spell.Extract(spell, "Restores $o1 mana over $d");

            var itemEffect = Path.Join(path, "itemeffect.csv");

            Consumable.Extract(itemEffect, foods, Path.Join(path, "foods.json"));
            Consumable.Extract(itemEffect, waters, Path.Join(path, "waters.json"));
        }