Skip to content

Commit

Permalink
Remove LibBabble dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Lombra committed Sep 22, 2024
1 parent e1e50bc commit f31c76d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
4 changes: 1 addition & 3 deletions Core/Preview.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
local MogIt,mog = ...;
local L = mog.L;

local LBI = LibStub("LibBabble-Inventory-3.0"):GetUnstrictLookupTable();

local TITANS_GRIP_SPELLID = 46917


Expand Down Expand Up @@ -744,7 +742,7 @@ function mog.view.AddItem(item, preview, forceSlot, setItem)
end
end

if invType == "INVTYPE_2HWEAPON" or invType == "INVTYPE_RANGED" or (invType == "INVTYPE_RANGEDRIGHT" and itemInfo.subType ~= LBI["Wands"]) then
if invType == "INVTYPE_2HWEAPON" or invType == "INVTYPE_RANGED" or (invType == "INVTYPE_RANGEDRIGHT" and itemInfo.subClassID == Enum.ItemWeaponSubclass.Wand) then
-- if any two handed weapon is being equipped, first clear up both hands
mog.view.DelItem("MainHandSlot", preview);
mog.view.DelItem("SecondaryHandSlot", preview);
Expand Down
2 changes: 0 additions & 2 deletions Libs/Embeds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ xsi:schemaLocation="http://www.blizzard.com/wow/ui/
<Script file="LibDataBroker-1.1\LibDataBroker-1.1.lua"/>
<Script file="LibDBIcon-1.0\LibDBIcon-1.0.lua"/>

<Include file="LibBabble-Inventory-3.0\lib.xml"/>

<Include file="Libra\Libra.xml"/>

<Script file="LibItemInfo-1.0\LibItemInfo-1.0.lua"/>
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
**This project is no longer actively maintained. Pull requests are still welcome.**

### Description

MogIt is an in-game catalogue of transmogrification items with the aim of helping players build their own sets!
Expand All @@ -13,4 +13,3 @@ MogIt is an in-game catalogue of transmogrification items with the aim of helpin

- Some items, when added to wishlist or preview, will appear as the base version of the item. There is nothing we can do about that. If you try to link these items from the default wardrobe you will also get the link of the base item, and that's something you could report to Blizzard. (and if they fix that, it should work in MogIt, too)
- Items outside of the catalogue may take into account items that aren't usable by your character (eg wrong class or faction) when indicating collected items.
- Artifacts are still not supported and probably won't be any time soon. (mostly due to API limitations)
3 changes: 0 additions & 3 deletions docmeta.yaml

This file was deleted.

13 changes: 10 additions & 3 deletions pkgmeta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ externals:
Libs/AceDBOptions-3.0: https://repos.wowace.com/wow/ace3/trunk/AceDBOptions-3.0
Libs/LibDataBroker-1.1: https://repos.wowace.com/wow/libdatabroker-1-1
Libs/LibDBIcon-1.0: https://repos.wowace.com/wow/libdbicon-1-0/trunk/LibDBIcon-1.0
Libs/LibBabble-Inventory-3.0: https://repos.wowace.com/wow/libbabble-inventory-3-0/trunk
Libs/Libra: https://github.com/Lombra/Libra.git
Libs/LibItemInfo-1.0: https://github.com/Lombra/LibItemInfo-1.0.git/LibItemInfo-1.0
Libs/Libra:
url: https://github.com/Lombra/Libra.git
curse-slug: libra
Libs/LibItemInfo-1.0:
url: https://github.com/Lombra/LibItemInfo-1.0.git/LibItemInfo-1.0
curse-slug: libiteminfo-1-0

plain-copy:
- Core/*.lua
- Modules/*.lua

ignore:
- pkgmeta.yaml
Expand Down

0 comments on commit f31c76d

Please sign in to comment.