FANDOM


--[[Category:Flower Knight description modules]]
--<nowiki> (nowiki tags prevent categories from showing up in the wiki)
--This module specifies info that typically never changes.
 
-- badText is a replacement for unknown values.
local badText = '<span style="color:red">XX</span>[[Category:Bad value]]'
 
local p = {
 
-- Specifies the max level for a given [rarity][evolution_stage].
-- The evolution stages are 1: pre-evolved, 2: evolved, 3: bloomed.
maxLevel = {
	[6] = {60,70,80},
	[5] = {60,70,80},
	[4] = {50,60},
	[3] = {50,60},
	[2] = {50,60},
	Other = {badText, badText},
},
 
attrNameToID = {
    slash = 1,
    blunt = 2,
    pierce = 3,
    magic = 4,
},
attrIDToName = {
    'slash',
    'blunt',
    'pierce',
    'magic',
},
 
-- Stores info related to attack types.
typeIDtoInfo = {
	{name='Slash', color='red', webColor='#F09898', icon='[[File:Slash_icon.png|25px|link=]]'},
	{name='Blunt', color='blue', webColor='#80AFFF', icon='[[File:Blunt_icon.png|25px|link=]]'},
	{name='Pierce', color='yellow', webColor='#FFD571', icon='[[File:Pierce_icon.png|25px|link=]]'},
	{name='Magic', color='purple', webColor='#D69BFF', icon='[[File:Magic_icon.png|25px|link=]]'},
	Other = {name=badText, color='gray', webColor='#CCC', icon=''},
},
 
-- Maps a character rarity to a style.
rarityToStyle = {
	[2] = 'background:#00A550; border:outset 2px #00A550;',
	[3] = 'background:#CD7F32; border:outset 2px #B87333;',
	[4] = 'background:repeating-linear-gradient(90deg, #E5E4E2, silver); border:outset 2px #C0C0C0;',
	[5] = 'background:repeating-linear-gradient(90deg, gold, #FFBC00); border:outset 2px #DAA520;',
	[6] = 'background:repeating-linear-gradient(90deg, red, orange, yellow, springgreen, cyan, deepskyblue, violet); border:outset 2px pink;',
	Other = 'background:#CCC[[Category:Invalid rarity]]'
},
 
-- Maps the master data Nation ID to a readable nation string.
-- Deprecated. Use nation_id_to_info.
nationIDtoName = {
    [1] = 'Winter Rose',
    [2] = 'Banana Ocean',
    [3] = 'Blossom Hill',
    [4] = 'Bergamot Valley',
    [5] = 'Lily Wood',
    [7] = 'Lotus Lake',
    Other = badText,
},
-- Describes a nation based on the master data ID.
-- style refers to a CSS class that may or may not be defined in Wikia.css.
nation_id_to_info = {
    [1] = {name='Winter Rose', short='WR', filename='icon_winterrose_day.png', petalname="Winter_rose_petal_icon.png", style="nation_wr"},
    [2] = {name='Banana Ocean', short='BO', filename='icon_bananaocean_dusk.png', petalname="Banana_ocean_petal_icon.png", style="nation_bo"},
    [3] = {name='Blossom Hill', short='BH', filename='icon_blossomhill_night2.png', petalname="Blossom_hill_petal_icon.png", style="nation_bh"},
    [4] = {name='Bergamot Valley', short='BV', filename='icon_bergamotvalley_day.png', petalname="Bergamot_valley_petal_icon.png", style="nation_bv"},
    [5] = {name='Lily Wood', short='LW', filename='icon_lilywood_night2.png', petalname="Lily_Wood_petal_icon.png", style="nation_lw"},
    [7] = {name='Lotus Lake', short='LL', filename='icon_lotuslake.png', petalname="Lotus_lake_petal_icon.png", style="nation_ll"},
},
nationNameToID = {
    ['Winter Rose'] = 1,
    ['Banana Ocean'] = 2,
    ['Blossom Hill'] = 3,
    ['Bergamot Valley'] = 4,
    ['Lily Wood'] = 5,
    ['Lotus Lake'] = 7,
},
 
-- Maps the master data Nation ID to a short, readable nation string.
nationIDtoNameShort = {
	[1] = '<span class="ttip" title="Winter Rose">WR</span>',
	[2] = '<span class="ttip" title="Banana Ocean">BO</span>',
	[3] = '<span class="ttip" title="Blossom Hill">BH</span>',
	[4] = '<span class="ttip" title="Bergamot Valley">BV</span>',
	[5] = '<span class="ttip" title="Lily Wood">LW</span>',
	[7] = '<span class="ttip" title="Lotus Lake">LL</span>',
	Other = badText,
},
 
-- Stores info related to gifts.
-- The character's in-game favorite gift ID is used to index this.
giftIDtoInfo = {
	{name='Jewels', icon='500103.png'},
	{name='Stuffed Animals', icon='500203.png'},
	{name='Cake', icon='500303.png'},
	{name='Books', icon='500403.png'},
	Other = {name=badText, icon=badText},
},
 
-- A list of valid image formats for characters.
validImageFormats = {
	'portrait',
	'icon',
},
}
 
return p
 
--</nowiki>
Community content is available under CC-BY-SA unless otherwise noted.