Module:Summary hero

From Deadlock Wiki
Revision as of 22:00, 6 October 2024 by Mixorio (talk | contribs) (Created page with "function setDefault (t, d) local mt = {__index = function () return d end} setmetatable(t, mt) end local Summary = { --hero_(.*)_role ['English'] = { ["Abrams"] = "Charges into close combat", ["Bebop"] = "Hooks an enemy for a knockout combo", ["Calico"] = "Wreaks havoc from the sidelines", ["Dynamo"] = "Locks down the enemy team", ["Grey Talon"] = "Delivers long range skill-shots", ["Haze"] = "Sneaks in and sprays bullets", ["Holliday"] = "Bounces about dispen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Summary hero/doc

function setDefault (t, d)
    local mt = {__index = function () return d end}
    setmetatable(t, mt)
end


local Summary = { --hero_(.*)_role
 ['English'] = {
["Abrams"] = "Charges into close combat",
["Bebop"] = "Hooks an enemy for a knockout combo",
["Calico"] = "Wreaks havoc from the sidelines",
["Dynamo"] = "Locks down the enemy team",
["Grey Talon"] = "Delivers long range skill-shots",
["Haze"] = "Sneaks in and sprays bullets",
["Holliday"] = "Bounces about dispensing trick shots",
["Infernus"] = "Lights up enemies and watches them burn",
["Ivy"] = "Sets up a power duo with a lucky ally",
["Kali"] = "None",
["Kelvin"] = "Freezes enemies in their tracks",
["Lady Geist"] = "Sacrifices health then drains it back",
["Lash"] = "Dives down to stomp his foes",
["McGinnis"] = "Controls the battle with combat turrets",
["Mirage"] = "Times his shots and catches fleeing targets",
["Mo & Krill"] = "Burrows underneath his enemies",
["Paradox"] = "Manipulates Space and Time",
["Pocket"] = "Infiltrates and disrupts the backline",
["Seven"] = "Electrocutes crowds of enemies",
["Shiv"] = "Bleeds out enemies, then goes in for a kill",
["Vindicta"] = "Snipes the unsuspecting",
["Viscous"] = "Rolls around deflecting bullets",
["Warden"] = "Weakens his enemies and chases them down",
["Wraith"] = "Melts isolated targets",
["Wrecker"] = "Salvages scrap to create weapons",
["Yamato"] = "Delivers charged attacks with finesse",
	},
	['Russian'] = {
["Abrams"] = "Рвётся в ближний бой",
["Bebop"] = "Цепляет врагов крюком, а затем добивает",
["Calico"] = "Wreaks havoc from the sidelines",
["Dynamo"] = "Сдерживает вражескую команду",
["Grey Talon"] = "Точно стреляет издалека",
["Haze"] = "Подкрадывается и решетит пулями",
["Holliday"] = "Bounces about dispensing trick shots",
["Infernus"] = "Поджигает врагов и наблюдает за их мучениями",
["Ivy"] = "Отличная напарница для везучих союзников",
["Kali"] = "None",
["Kelvin"] = "Замораживает врагов намертво",
["Lady Geist"] = "Жертвует здоровьем, но потом забирает его у врагов",
["Lash"] = "Атакует с воздуха и топчет врагов",
["McGinnis"] = "Контролирует бой с помощью боевых турелей",
["Mirage"] = "Совершает точные выстрелы и ловит убегающих врагов",
["Mo & Krill"] = "Копают под своих врагов",
["Paradox"] = "Манипулирует пространством и временем",
["Pocket"] = "Проникает в тыл врага и наводит хаос",
["Seven"] = "Поражает током толпы врагов",
["Shiv"] = "Изматывает, а затем добивает врагов",
["Vindicta"] = "Отстреливает жертв издалека",
["Viscous"] = "Катается по полю боя и отражает пули",
["Warden"] = "Ослабляет и преследует врагов",
["Wraith"] = "Изолирует и уничтожает цели",
["Wrecker"] = "Salvages scrap to create weapons",
["Yamato"] = "Изящно выполняет мощные атаки",
	}
}
local p = {}

function p.getdesc(frame)
	setDefault(Summary, "Unknown hero "..frame.args[1].." provided for Template:Summary_hero")
	return Summary[frame.args[2]][frame.args[1]]
end

return p