Module:Stats/REQ/H5G/STRINGS: Difference between revisions
From Halopedia, the Halo wiki
< Module:Stats | REQ
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
-- CATEGORIES | -- CATEGORIES | ||
[ 'categories' ] = { | [ 'categories' ] = { | ||
[ 'powerwep' ] = 'Power weapon' | [ 'powerwep' ] = 'Power weapon', | ||
[ 'vehicle' ] = 'Vehicle' | |||
}, | }, | ||
-- RARITY TIERS | -- RARITY TIERS |
Revision as of 08:02, September 24, 2022
Documentation for this module may be created at ModuleDoc:Stats/REQ/H5G/STRINGS
local STRINGS = {
-- DATA FIELD LABELS
[ 'fields' ] = {
[ 'category' ] = 'Category',
[ 'desc' ] = 'Description',
[ 'energy' ] = 'Energy cost',
[ 'mythic' ] = 'Mythic',
[ 'rarity' ] = 'Rarity',
[ 'rp' ] = 'Sale price'
},
-- CATEGORIES
[ 'categories' ] = {
[ 'powerwep' ] = 'Power weapon',
[ 'vehicle' ] = 'Vehicle'
},
-- RARITY TIERS
[ 'rarities' ] = {
[ 'common' ] = 'Common',
[ 'uncommon' ] = 'Uncommon',
[ 'rare' ] = 'Rare',
[ 'ultrarare' ] = 'Ultra-Rare',
[ 'legendary' ] = 'Legendary',
[ 'mythic' ] = 'Mythic'
},
-- CURRENCIES
[ 'currencies' ] = {
[ 'energy' ] = 'REQ energy',
[ 'rp' ] = 'REQ points'
}
}
local p = {}
function p.field( id )
return STRINGS[ 'fields' ][ id ] or 'Unknown field'
end
function p.category( id )
return STRINGS[ 'categories' ][ id ] or 'Unknown category'
end
function p.rarity( id )
return STRINGS[ 'rarities' ][ id ] or 'Unknown rarity'
end
function p.currency( id )
return STRINGS[ 'currencies' ][ id ] or 'Unknown currency'
end
return p