Module:Gm4Sprite/Aliases: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(fix concatenation error (hopefully))
(Added all items from Bat Grenades to SCUBA Gear)
Line 1: Line 1:
local aliases = {
local aliases = {
    'Bat Grenades',
    ['Bat Leather'] = { name = 'Bat Leather', text = '&o&5Would make for a very strange,/very tiny jacket' },


'Boots of Ostara',
'Boots of Ostara',
Line 5: Line 8:


'Heart Canisters',
'Heart Canisters',
['Heart Canister Tier 1'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 1', text = '&5Tier 1' },
['Heart Canister Tier 1'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 1', text = '&5Tier 1' },
['Heart Canister Tier 2'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 2', text = '&5Tier 2' },
['Heart Canister Tier 2'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 2', text = '&5Tier 2' },
 
    'Lightning Rods',
    ['Lightning Rod'] = { title = '&bLightning Rod', name = 'Lightning Rod', text = '&o&5Throw for boom!'},


'Metallurgy - Ores',
'Metallurgy - Ores',
Line 14: Line 20:
['Thorianite Lump'] = { name = 'Thorianite Lump', text = '&7Contains &8Thorium' },
['Thorianite Lump'] = { name = 'Thorianite Lump', text = '&7Contains &8Thorium' },


'Scuba Gear',
'SCUBA Gear',
['SCUBA Helmet'] = { title = '&o&eSCUBA Helmet', name = 'SCUBA Helmet', text = '/&7When on head:/&c-0.5 Attack Speed/&9+2 Armour'}
['SCUBA Helmet'] = { title = '&eSCUBA Helmet', name = 'SCUBA Helmet', text = '/&7When on head:/&c-0.5 Attack Speed/&9+2 Armour'},
['SCUBA Tank']  = { name = 'SCUBA Tank', text = '/&7When on chest:/&9+4 Armour/&c-0.01 Movement Speed'},
['Flippers']    = { name = 'Flippers', text = '/&7When on feet:/&9+1 Armour/&c-0.04 Movement Speed'},
}
}


local yellowTooltips = {
local yellowTooltips = {
    'Enderpuff',
'Crystal of Fire Resistance',
'Crystal of Fire Resistance',
'Crystal of Regeneration',
'Crystal of Regeneration',
Line 29: Line 38:
aliases[name] = { title = '&e', name = name }
aliases[name] = { title = '&e', name = name }
end
end


-- Obsidian Casts
-- Obsidian Casts
Line 59: Line 67:
{ 'Lumos',      'Thorium Brass'},
{ 'Lumos',      'Thorium Brass'},
{ 'Moneo',      'Aluminium'},
{ 'Moneo',      'Aluminium'},
{ 'Percurro',    'Thorium Brass'}
{ 'Percurro',    'Thorium Brass'},
}
}



Revision as of 10:44, 11 August 2020

Documentation for this module may be created at Module:Gm4Sprite/Aliases/doc

local aliases = {

    'Bat Grenades',
    ['Bat Leather'] = { name = 'Bat Leather', text = '&o&5Would make for a very strange,/very tiny jacket' },

	'Boots of Ostara',
	['Boots of Ostara']	= { name = 'Boots of Ostara', text = '&o&5Brings Abundance Beneath You!'},

	'Heart Canisters',
	['Heart Canister Tier 1'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 1', text = '&5Tier 1' },
	['Heart Canister Tier 2'] = { title = '&eHeart Canister', name = 'Heart Canister Tier 2', text = '&5Tier 2' },

    'Lightning Rods',
    ['Lightning Rod'] = { title = '&bLightning Rod', name = 'Lightning Rod', text = '&o&5Throw for boom!'},

	'Metallurgy - Ores',
	['Baryte Lump'] 	= { name = 'Baryte Lump', text = '&7Contains &fBarium' },
	['Bauxite Lump'] 	= { name = 'Bauxite Lump', text = '&7Contains &cAluminium' },
	['Malachite Lump'] 	= { name = 'Malachite Lump', text = '&7Contains &6Copper' },
	['Thorianite Lump']	= { name = 'Thorianite Lump', text = '&7Contains &8Thorium' },

	'SCUBA Gear',
	['SCUBA Helmet'] = { title = '&eSCUBA Helmet', name = 'SCUBA Helmet', text = '/&7When on head:/&c-0.5 Attack Speed/&9+2 Armour'},
	['SCUBA Tank']   = { name = 'SCUBA Tank', text = '/&7When on chest:/&9+4 Armour/&c-0.01 Movement Speed'},
	['Flippers']     = { name = 'Flippers', text = '/&7When on feet:/&9+1 Armour/&c-0.04 Movement Speed'},
}

local yellowTooltips = {
    'Enderpuff',
	'Crystal of Fire Resistance',
	'Crystal of Regeneration',
	'Crystal of Resistance',
	'Crystal of Speed',
	'Relocator'
}

for _, name in ipairs ( yellowTooltips ) do
	aliases[name] = { title = '&e', name = name }
end

-- Obsidian Casts
local bandFormat = {
    Aluminium = 'c',
    Barimium = 'd',
    Barium = 'f',
    Copper = '6',
    Thorium = '8',
    Thorium_Brass = '2',
}

local shamirs = { 
	{ 'Arborenda',   'Barium'},
	{ 'Conduction',  'Thorium'},
	{ 'Defuse',      'Aluminium'},
	{ 'Ender Bolt',  'Thorium'},
	{ 'Forterra',    'Copper'},
	{ 'Gemini',      'Barimium'},
	{ 'Hypexperia',  'Copper'},
	{ 'Levity',      'Aluminium'},
	{ 'Musical',     'Barimium'},
	{ 'Sensus',      'Barium'},
	{ 'Spiraculum',  'Thorium Brass'},
	{ 'Tinker',      'Thorium Brass'},
	{ 'Corripio',    'Copper'},
	{ 'Fulcio',      'Barimium'},
	{ 'Helious',     'Aluminium'},
	{ 'Lumos',       'Thorium Brass'},
	{ 'Moneo',       'Aluminium'},
	{ 'Percurro',    'Thorium Brass'},
}

for _, shamir in ipairs( shamirs ) do
	local name = shamir[1] .. ' Shamir'
    local bandName = shamir[2]
    if bandName == "Thorium Brass" then
        bandName = "Thorium_Brass"
    end
    local band = '&' .. bandFormat[bandName] .. shamir[2]
	local shamirName = shamir[1]
	aliases[name] = { title = '&eObsidian Cast', name = name, text = band .. '/&bShamir/&7' .. shamirName }
end


local obsidianCasts = {
	'Aluminium',
	'Barium',
	'Barimium',
	'Copper',
	'Thorium',
	'Thorium Brass',
}

for _, cast in ipairs ( obsidianCasts ) do
	local name = 'Obsidian Cast (' .. cast .. ' Band)'
    local bandName = cast
    if bandName == "Thorium Brass" then
        bandName = "Thorium_Brass"
    end
    local band = '&' .. bandFormat[bandName] .. cast .. ' Band'
	aliases[name] = { title = '&eObsidian Cast', name = name , text = band }
end

return aliases