5,078
edits
(Created page with "return { -- DATA FIELD LABELS [ 'fields' ] = { [ 'category' ] = 'Category', [ 'desc' ] = 'Description', [ 'energy' ] = 'Energy cost', [ 'mythic' ] = 'Mythic', [ 'r...") |
No edit summary |
||
Line 1: | Line 1: | ||
local STRINGS = { | |||
-- DATA FIELD LABELS | -- DATA FIELD LABELS | ||
[ 'fields' ] = { | [ 'fields' ] = { | ||
Line 8: | Line 8: | ||
[ 'rarity' ] = 'Rarity', | [ 'rarity' ] = 'Rarity', | ||
[ 'rp' ] = 'Sale price' | [ 'rp' ] = 'Sale price' | ||
}, | |||
-- CATEGORIES | |||
[ 'categories' ] = { | |||
[ 'powerwep' ] = 'Power weapon' | |||
}, | }, | ||
-- RARITY TIERS | -- RARITY TIERS | ||
Line 15: | Line 19: | ||
[ 'rare' ] = 'Rare', | [ 'rare' ] = 'Rare', | ||
[ 'ultrarare' ] = 'Ultra-Rare', | [ 'ultrarare' ] = 'Ultra-Rare', | ||
[ 'legendary' ] = 'Legendary' | [ 'legendary' ] = 'Legendary', | ||
[ 'mythic' ] = 'Mythic' | |||
}, | }, | ||
-- CURRENCIES | -- CURRENCIES | ||
Line 23: | Line 28: | ||
} | } | ||
} | } | ||
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 |