Spellbook and Itembook no longer shared through the engine

main
4n0n 1 year ago
parent f5367327e6
commit 06916f6bc6
  1. 5
      scripts/ExampleModule.lua
  2. 4
      src/_bastion.lua

@ -2,7 +2,10 @@ local Tinkr, Bastion = ...
local ExampleModule = Bastion.Module:New('ExampleModule')
local Player = Bastion.UnitManager:Get('player')
local FlashHeal = Bastion.SpellBook:GetSpell(2061)
-- Create a local spellbook
local SpellBook = Bastion.SpellBook:New()
local FlashHeal = SpellBook:GetSpell(2061)
local AdvancedMath = Bastion:Import('AdvancedMath')

@ -47,11 +47,11 @@ Bastion.EventManager = Bastion.require("EventManager"):New()
---@type Spell
Bastion.Spell = Bastion.require("Spell")
---@type SpellBook
Bastion.SpellBook = Bastion.require("SpellBook"):New()
Bastion.SpellBook = Bastion.require("SpellBook")
---@type Item
Bastion.Item = Bastion.require("Item")
---@type ItemBook
Bastion.ItemBook = Bastion.require("ItemBook"):New()
Bastion.ItemBook = Bastion.require("ItemBook")
---@type AuraTable
Bastion.AuraTable = Bastion.require("AuraTable")
---@type Class

Loading…
Cancel
Save