Module:Sprite: Difference between revisions

It would help if EffectSprite aliases were accessed
(Better nil check)
(It would help if EffectSprite aliases were accessed)
Line 5: Line 5:
local aliasData = {
local aliasData = {
vanillaAliases = [[Module:InventorySlot/Aliases]],
vanillaAliases = [[Module:InventorySlot/Aliases]],
gm4Aliases = [[Module:Gm4Sprite/Aliases]]
gm4Aliases = [[Module:Gm4Sprite/Aliases]],
effectAliases = [[Module:EffectSprite/Aliases]]
}
}


Line 11: Line 12:
local vanillaAliases = mw.loadData( aliasData.vanillaAliases )
local vanillaAliases = mw.loadData( aliasData.vanillaAliases )
local gm4Aliases = mw.loadData( aliasData.gm4Aliases )
local gm4Aliases = mw.loadData( aliasData.gm4Aliases )
local effectAliases = mw.loadData( aliasData.effectAliases )
local aliases
local aliases


Line 128: Line 130:
     if type == "gm4" then
     if type == "gm4" then
         aliases = gm4Aliases
         aliases = gm4Aliases
elseif type == "effect" then
aliases = effectAliases
     else
     else
         aliases = vanillaAliases
         aliases = vanillaAliases
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits