Module:Sprite: Difference between revisions

Jump to navigation Jump to search
actually make gm4Aliases point to the right place .-. (double alias attempt #1.1)
m (I still don't know what type type is)
(actually make gm4Aliases point to the right place .-. (double alias attempt #1.1))
Line 10: Line 10:
Sprite.aliasData = aliasData
Sprite.aliasData = aliasData
local vanillaAliases = mw.loadData( aliasData.vanillaAliases )
local vanillaAliases = mw.loadData( aliasData.vanillaAliases )
local gm4Aliases = mw.loadData( aliasData.vanillaAliases )
local gm4Aliases = mw.loadData( aliasData.gm4Aliases )
local aliases = vanillaAliases
local aliases = vanillaAliases


Line 74: Line 74:
o = {
o = {
__source = require(source),
__source = require(source),
type = type,
}
}
setmetatable(o, {__index = self})
setmetatable(o, {__index = self})
Line 106: Line 105:
name = name,
name = name,
title = title,
title = title,
lore = lore,
lore = lore
type = type
}
}
}
}
Line 135: Line 133:


-- js-modified color title with lore
-- js-modified color title with lore
if tostring(self.__settings.type) == "gm4" then
aliases = gm4Aliases
end
     if aliases[item] then
     if aliases[item] then
if aliases[item].text then
if aliases[item].text then
self.__settings.lore = aliases[item].text
self.__settings.lore = aliases[item].text
end
end


Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564

edits

Navigation menu