Module:ItemDistribution/data

return { sources = { ['Story Maps'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map RLIKE '^Sdigit:.*'", descField = [==[CONCAT(, EV.MapGroup, )]==], },		['Paralogue Maps'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'X%'", descField = "CONCAT(, EV.MapGroup, )", },		['Tactics Drills'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'P%'", descField = "CONCAT(, EV.MapName, )", },		['Heroic Ordeals'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'H%'", },		['Chain Challenge'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'ST\\_%'", descField = "CONCAT(, EV.MapGroup, )", },		['Squad Assault'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'SB\\_%'", },		['Special Maps'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'L%' OR EV.Map LIKE 'Q%' OR EV.Map LIKE 'R%' OR EV.Map LIKE 'T%' OR EV.Map LIKE 'U%' OR EV.Map LIKE 'V%'", descField = [==[IF (EV.Map LIKE 'Q%' OR EV.Map LIKE 'R%', CONCAT(, EV.MapGroup, ), 							IF (EV.Map LIKE 'V%', CONCAT(, EV.MapGroup ,), IF (EV.MapGroup = 'Bound Hero Battle', CONCAT(, EV._pageName, ),							CONCAT(, EV.MapGroup, ': ', EV.MapName, ))))]==], },		['Limited Maps'] = { eventTable = 'LimitedMaps', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'I%' AND EV.Map = R.Map", descField = "CONCAT('Limited Hero Battle: ', EV._pageName)", },		['Blessed Gardens'] = { eventTable = 'Maps', timeTable = 'MapDates', rewardTable = 'MapRewards', cond = "EV.Map LIKE 'BG\\_%'", },

['Arena'] = { eventTable = 'ColiseumSeasons', rewardTable = 'ColiseumRewards', cond = "R.Mode='arena'", descField = "CONCAT('Season ', EV.Number, IF(R.StartTime IS NULL, ' Chain rewards', ' rewards'), '')", },		['Arena Assault'] = { eventTable = 'ColiseumSeasons', rewardTable = 'ColiseumRewards', cond = "R.Mode='arena_assault'", descField = "CONCAT('Season ', EV.Number, ' rewards')", },		['Allegiance Battles'] = { eventTable = 'ColiseumSeasons', rewardTable = 'ColiseumRewards', cond = "R.Mode='allegiance_battles'", descField = "CONCAT('Season ', EV.Number, ' rewards')", },		['Resonant Battles'] = { eventTable = 'ColiseumSeasons', rewardTable = 'ColiseumRewards', cond = "R.Mode='resonant_battles'", descField = "CONCAT('Season ', EV.Number, ' rewards')", },

['Voting Gauntlet'] = { eventTable = 'VotingGauntlets', rewardTable = 'VotingGauntletRewards', },		['Tempest Trials'] = { eventTable = 'TempestTrials', rewardTable = 'TempestTrialsRewards', descField = "CONCAT(, EV.FullName, )", },		['Tap Battle'] = { eventTable = 'TapBattles', rewardTable = 'TapBattleRewards', useWikiName = true, descField = "CONCAT(, EV.Name, )", },		['Grand Conquests'] = { eventTable = 'GrandConquests', rewardTable = 'GrandConquestsRewards', },		['Forging Bonds'] = { eventTable = 'ForgingBonds', rewardTable = 'ForgingBondsRewards', useWikiName = true, descField = "CONCAT('Forging Bonds: ', EV.Name, '')", },		['Røkkr Sieges'] = { eventTable = 'RokkrSieges', rewardTable = 'RokkrSiegesRewards', },		['Lost Lore'] = { eventTable = 'LostLore', rewardTable = 'LostLoreRewards', useWikiName = true, descField = "CONCAT('Lost Lore', IF(EV.World = 'World of Heroes', ' Spoils', ), ': ', EV.Name, )", },		['Hall of Forms'] = { eventTable = 'HallOfForms', rewardTable = 'HallOfFormsRewards', },		["Mjölnir's Strike"] = { eventTable = 'MjolnirsStrike', rewardTable = 'MjolnirsStrikeRewards', },		['Frontline Phalanx'] = { eventTable = 'FrontlinePhalanx', rewardTable = 'FrontlinePhalanxRewards', },		['Pawns of Loki'] = { eventTable = 'PawnsOfLoki', rewardTable = 'PawnsOfLokiRewards', },

["Heroes' Path"] = nil, ['Quests'] = { eventTable = 'Quests', rewardTable = 'QuestRewards', cond = "EV.GroupName NOT LIKE '%Feh Pass%'", useWikiName = true, descField = [==[IF (EV.WikiName LIKE '01%', CONCAT('Yearly quests'),						   IF (EV.WikiName LIKE '02%', CONCAT('Monthly quests'), IF (EV.WikiName LIKE '03%', CONCAT('Weekly quests'),						   IF (EV.WikiName LIKE '04%', CONCAT('Daily quests'), CONCAT(, EV.GroupName, )))))]==], },		['Daily Log-In'] = { eventTable = 'LogInBonus', rewardTable = 'LogInBonusRewards', cond = "(EV.Kind='daily' AND EV.Name=R.Name) OR R.Name='Daily Log-In Bonus'", },		['One-Time Log-In'] = { eventTable = 'LogInBonus', rewardTable = 'LogInBonusRewards', cond = "EV.Kind!='daily' AND EV.Name=R.Name", },	},	kinds = { ['Orb'] = { cond = "R.Kind='item' AND R.Item='Orb'", since = { month = os.time {year = 2017, month = 2, day = 1, hour = 0}, day = os.time {year = 2017, month = 2, day = 2, hour = 0}, },		},		['Hero Feather'] = { cond = "R.Kind='item' AND R.Item='Hero Feather'", since = { month = os.time {year = 2017, month = 2, day = 1, hour = 0}, day = os.time {year = 2017, month = 2, day = 2, hour = 0}, },		},		['Sacred Coin'] = { cond = "R.Kind='item' AND R.Item='Sacred Coin'", since = { month = os.time {year = 2017, month = 8, day = 1, hour = 0}, day = os.time {year = 2017, month = 8, day = 14, hour = 0}, },		},		['Refining Stone'] = { cond = "R.Kind='item' AND R.Item='Refining Stone'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Heroic Grail'] = { cond = "R.Kind='item' AND R.Item='Heroic Grail'", since = { month = os.time {year = 2018, month = 11, day = 1, hour = 0}, day = os.time {year = 2018, month = 11, day = 8, hour = 0}, },		},		['Aether Stone'] = { cond = "R.Kind='item' AND R.Item='Aether Stone'", since = { month = os.time {year = 2018, month = 11, day = 1, hour = 0}, day = os.time {year = 2018, month = 11, day = 8, hour = 0}, },		},		['Blessing'] = { cond = "R.Kind='item' AND R.Item LIKE '% Blessing' AND R.Item != 'Light\\'s Blessing'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Fire Blessing'] = { cond = "R.Kind='item' AND R.Item='Fire Blessing'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Water Blessing'] = { cond = "R.Kind='item' AND R.Item='Water Blessing'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Wind Blessing'] = { cond = "R.Kind='item' AND R.Item='Wind Blessing'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Earth Blessing'] = { cond = "R.Kind='item' AND R.Item='Earth Blessing'", since = { month = os.time {year = 2017, month = 11, day = 1, hour = 0}, day = os.time {year = 2017, month = 11, day = 28, hour = 0}, },		},		['Light Blessing'] = { cond = "R.Kind='item' AND R.Item='Light Blessing'", since = { month = os.time {year = 2018, month = 12, day = 1, hour = 0}, day = os.time {year = 2018, month = 12, day = 11, hour = 0}, },		},		['Dark Blessing'] = { cond = "R.Kind='item' AND R.Item='Dark Blessing'", since = { month = os.time {year = 2018, month = 12, day = 1, hour = 0}, day = os.time {year = 2018, month = 12, day = 11, hour = 0}, },		},		['Astra Blessing'] = { cond = "R.Kind='item' AND R.Item='Astra Blessing'", since = { month = os.time {year = 2018, month = 12, day = 1, hour = 0}, day = os.time {year = 2018, month = 12, day = 11, hour = 0}, },		},		['Anima Blessing'] = { cond = "R.Kind='item' AND R.Item='Anima Blessing'", since = { month = os.time {year = 2018, month = 12, day = 1, hour = 0}, day = os.time {year = 2018, month = 12, day = 11, hour = 0}, },		},		['Dragonflower'] = { header = { "Dragonflower" }, cond = "R.Kind='item' AND R.Item LIKE 'Dragonflower%'", since = { month = os.time {year = 2019, month = 2, day = 1, hour = 0}, day = os.time {year = 2019, month = 2, day = 7, hour = 0}, },		},		['Dragonflower (I)'] = { cond = "R.Kind='item' AND R.Item='Dragonflower (I)'", since = { month = os.time {year = 2019, month = 2, day = 1, hour = 0}, day = os.time {year = 2019, month = 2, day = 7, hour = 0}, },		},		['Dragonflower (A)'] = { cond = "R.Kind='item' AND R.Item='Dragonflower (A)'", since = { month = os.time {year = 2019, month = 2, day = 1, hour = 0}, day = os.time {year = 2019, month = 2, day = 7, hour = 0}, },		},		['Dragonflower (C)'] = { cond = "R.Kind='item' AND R.Item='Dragonflower (C)'", since = { month = os.time {year = 2019, month = 2, day = 1, hour = 0}, day = os.time {year = 2019, month = 2, day = 7, hour = 0}, },		},		['Dragonflower (F)'] = { cond = "R.Kind='item' AND R.Item='Dragonflower (F)'", since = { month = os.time {year = 2019, month = 2, day = 1, hour = 0}, day = os.time {year = 2019, month = 2, day = 7, hour = 0}, },		},		['Midgard Gem'] = { cond = "R.Kind='item' AND R.Item='Midgard Gem'", since = { month = os.time {year = 2019, month = 12, day = 1, hour = 0}, day = os.time {year = 2019, month = 12, day = 5, hour = 0}, },		},	   ['Trait Fruit'] = { cond = "R.Kind='item' AND R.Item='Trait Fruit'", since = { month = os.time {year = 2020, month = 9, day = 1, hour = 0}, day = os.time {year = 2020, month = 9, day = 7, hour = 0}, }	   },	    ['Divine Code'] = { cond = "R.Kind='item' AND R.Item LIKE 'Divine Code:%'", since = { month = os.time {year = 2019, month = 12, day = 1, hour = 0}, day = os.time {year = 2019, month = 12, day = 5, hour = 0}, }	   },	    ['Divine Code: Part'] = { cond = "R.Kind='item' AND R.Item LIKE 'Divine Code: Part%'", since = { month = os.time {year = 2019, month = 12, day = 1, hour = 0}, day = os.time {year = 2019, month = 12, day = 5, hour = 0}, }	   },	    ['Divine Code: Ephemera'] = { cond = "R.Kind='item' AND R.Item LIKE 'Divine Code: Ephemera%'", since = { month = os.time {year = 2020, month = 3, day = 1, hour = 0}, day = os.time {year = 2020, month = 3, day = 5, hour = 0}, }	   },	},	sourceOrder = { 'Story Maps', 'Paralogue Maps', 'Tactics Drills', 'Heroic Ordeals', 'Chain Challenge', 'Squad Assault', 'Blessed Gardens', 'Special Maps', 'Limited Maps', 'Arena', 'Arena Assault', 'Allegiance Battles', 'Resonant Battles', 'Voting Gauntlet', 'Tempest Trials', 'Tap Battle', 'Grand Conquests', 'Forging Bonds', 'Røkkr Sieges', 'Lost Lore', 'Hall of Forms', "Mjölnir's Strike", 'Frontline Phalanx', 'Pawns of Loki', 'Quests', "Heroes' Path", 'Daily Log-In', 'One-Time Log-In', } }