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 ExampleModule = Bastion.Module:New('ExampleModule')
local Player = Bastion.UnitManager:Get('player') 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') local AdvancedMath = Bastion:Import('AdvancedMath')

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

Loading…
Cancel
Save