Module:Gm4Sprite/Aliases: Difference between revisions

m
Declare variables, watch your scope.
m (Update Metallurgy and Zauber)
m (Declare variables, watch your scope.)
Line 215: Line 215:
for _, cast in ipairs ( obsidianCasts ) do
for _, cast in ipairs ( obsidianCasts ) do
local name = 'Obsidian Cast (' .. cast .. ' Band)'
local name = 'Obsidian Cast (' .. cast .. ' Band)'
local band = "Mundane"
local bandName = cast
local bandName = cast
if bandName == "Thorium Brass" then
if bandName == "Thorium Brass" then
Line 222: Line 223:
end
end
if bandName == "Bismuth" then
if bandName == "Bismuth" then
local band = '#F47989Bi#F5B478sm#F5DD79ut#78F4AEh #79D6F5Ba#8378F5nd'
band = '#F47989Bi#F5B478sm#F5DD79ut#78F4AEh #79D6F5Ba#8378F5nd'
else
else
local band = bandFormat[bandName] .. cast .. ' Band'
band = bandFormat[bandName] .. cast .. ' Band'
end
end
aliases[name] = { title = '&eObsidian Cast', name = name , text = band }
aliases[name] = { title = '&eObsidian Cast', name = name , text = band }
Line 260: Line 261:
for _, shamir in ipairs( shamirs ) do
for _, shamir in ipairs( shamirs ) do
local name = shamir[1] .. ' Shamir'
local name = shamir[1] .. ' Shamir'
local band = "Mundane"
local bandName = shamir[2]
local bandName = shamir[2]
if bandName == "Thorium Brass" then
if bandName == "Thorium Brass" then
Line 267: Line 269:
end
end
if bandName == "Bismuth" then
if bandName == "Bismuth" then
local band = '#F47989Bi#F5B478sm#F5DD79ut#78F4AEh #79D6F5Ba#8378F5nd'
band = '#F47989Bi#F5B478sm#F5DD79ut#78F4AEh #79D6F5Ba#8378F5nd'
else
else
local band = bandFormat[bandName] .. shamir[2] .. ' Band'
band = bandFormat[bandName] .. shamir[2] .. ' Band'
end
end
local shamirName = shamir[1]
local shamirName = shamir[1]
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits