Module:Statistic/Legacy/Squadron

local statistics = {}

--	displayName		|	The name to be displayed in the stat block. |	string --	displayImage	|	The image to be displayed in the stat block. |	string --	displayValue	|	The raw value that is going to be formatted. |	function (accepts the value of the stat, returns number or table of numbers) --	displayUnits	|	The units of the statistic when displayed. |	string or table of strings (note that "%" and Time" have special treatment) --	overview		|	The content of the hover tooltip in the stat block.		|	string (use table.unpack and string.format) --	details			|	The content of the help page.							|	string --	relation		|	The relationship of the statistic vs effectiveness.		|	char or table of chars (either '+', '-' or '') -- -- If tables are used, their size should be equal across displayValue, displayUnits and relation. statistics.basicStatistics = {	["Shield Bypass"] = {		displayName = "Shield Bypass",		displayImage = "Bypass-Stat.png",		displayValue = function(v) return v * 100 end,		displayUnits = "%",		overview = "Ignore %s of enemy shield defense",		details = "This is the proportion by which a weapon's outgoing damage ignores the Defense of enemy shields.",		relation = '+',	},

["Health Damage"] = { displayName = "Health Damage", displayImage = "HealthDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to health", details = "This is the proportion by which a weapon's outgoing damage is amplified against the health of ships, modules, as well as equipped armor and ablative armor.", relation = '+', },

["Shield Damage"] = { displayName = "Shield Damage", displayImage = "ShieldDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to shields", details = "This is the proportion by which a weapon's outgoing damage is amplified against shields.", relation = '+', },

["Ship Damage"] = { displayName = "Ship Damage", displayImage = "ShipDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all ships", details = "This is the proportion by which a squadron's outgoing damage is amplified against all ships.", relation = '+', },

["Module Damage"] = { displayName = "Module Damage", displayImage = "ModuleDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all modules", details = "This is the proportion by which a squadron's outgoing damage is amplified against all modules.", relation = '+', },

["Squadron Damage"] = { displayName = "Squadron Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all squadrons", details = "This is the proportion by which a squadron's outgoing damage is amplified against all squadrons.", relation = '+', },

["Corvette Damage"] = { displayName = "Corvette Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all corvettes", details = "This is the proportion by which a squadron's outgoing damage is amplified against all corvettes.", relation = '+', },

["Frigate Damage"] = { displayName = "Frigate Damage", displayImage = "FrigateDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all frigates", details = "This is the proportion by which a squadron's outgoing damage is amplified against all frigates.", relation = '+', },

["Cruiser Damage"] = { displayName = "Cruiser Damage", displayImage = "CruiserDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all cruisers", details = "This is the proportion by which a squadron's outgoing damage is amplified against all cruisers.", relation = '+', },

["Battlecruiser Damage"] = { displayName = "Battlecruiser Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all battlecruisers", details = "This is the proportion by which a squadron's outgoing damage is amplified against all battlecruisers.", relation = '+', },

["Battleship Damage"] = { displayName = "Battleship Damage", displayImage = "BattleshipDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all battleships", details = "This is the proportion by which a squadron's outgoing damage is amplified against all battleships.", relation = '+', },

["Destroyer Damage"] = { displayName = "Destroyer Damage", displayImage = "DestroyerDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all destroyers", details = "This is the proportion by which a squadron's outgoing damage is amplified against all destroyers.", relation = '+', },

["Cutter Damage"] = { displayName = "Cutter Damage", displayImage = "CutterDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all cutters", details = "This is the proportion by which a squadron's outgoing damage is amplified against all cutters.", relation = '+', },

["Specialist Damage"] = { displayName = "Specialist Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all specialists", details = "This is the proportion by which a squadron's outgoing damage is amplified against all specialists.", relation = '+', },

["Carrier Damage"] = { displayName = "Carrier Damage", displayImage = "CarrierDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all carriers", details = "This is the proportion by which a squadron's outgoing damage is amplified against all carriers.", relation = '+', },

["Dreadnought Damage"] = { displayName = "Dreadnought Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all dreadnoughts", details = "This is the proportion by which a squadron's outgoing damage is amplified against all dreadnoughts.", relation = '+', },

["Flagship Damage"] = { displayName = "Flagship Damage", displayImage = "WeaponSlots-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to all sector flagships", details = "This is the proportion by which a squadron's outgoing damage is amplified against all sector flagships.", relation = '+', },

["Altairian Damage"] = { displayName = "Altairian Damage", displayImage = "AltairianDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to Altairian ships", details = "This is the proportion by which a squadron's outgoing damage is amplified against Altairian Hulls.", relation = '+', },

["Oligarch Damage"] = { displayName = "Oligarch Damage", displayImage = "OligarchDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to Oligarch ships", details = "This is the proportion by which a squadron's outgoing damage is amplified against Oligarch Hulls.", relation = '+', },

["Umbra Damage"] = { displayName = "Umbra Damage", displayImage = "UmbraDamage-Stat.png", displayValue = function(v) return v * 100 end, displayUnits = "%", overview = "Deal %s extra damage to Umbra ships", details = "This is the proportion by which a squadron's outgoing damage is amplified against Umbra Hulls.", relation = '+', },

["Pharmakon Damage"] = { displayName = "Pharmakon Damage", displayImage = "PharmakonDamage-Stat.png", displayUnits = '', overview = "Deal %s extra damage to Pharmakon ships", details = "This is the proportion by which a squadron's outgoing damage is amplified against Pharmakon Hulls.", relation = '+', },

["Energy DPS"] = { displayName = "Energy DPS", displayImage = "En.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Energy Damage per second", details = "This is the amount of Energy Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Explosive DPS"] = { displayName = "Explosive DPS", displayImage = "Ex.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Explosive Damage per second", details = "This is the amount of Explosive Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Kinetic DPS"] = { displayName = "Kinetic DPS", displayImage = "Ki.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Kinetic Damage per second", details = "This is the amount of Kinetic Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Alien DPS"] = { displayName = "Alien DPS", displayImage = "Al.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Alien Damage per second", details = "This is the amount of Alien Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Plasma DPS"] = { displayName = "Plasma DPS", displayImage = "Pl.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Plasma Damage per second", details = "This is the amount of Plasma Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Blight DPS"] = { displayName = "Blight DPS", displayImage = "Bl.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Blight Damage per second", details = "This is the amount of Blight Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Void DPS"] = { displayName = "Void DPS", displayImage = "Vo.png", displayValue = function(v) return v end, displayUnits = "", overview = "Deal an average of %s Void Damage per second", details = "This is the amount of Void Damage a squadron deals throughout the entire firing cycle, divided by the duration of the firing cycle in seconds.", relation = '+', },

["Minimum Scramble"] = { displayName = "Minimum Scramble", displayImage = "Range-Stat.png", displayValue = function(v) return v end, displayUnits = "m", overview = "Can lock onto enemies as close as %s away", details = "This is the minimum distance between a squadron and a target when selecting a new target. Target lock-on is interrupted if it enters the minimum scramble range.", relation = '-', },

["Maximum Scramble"] = { displayName = "Maximum Scramble", displayImage = "Range-Stat.png", displayValue = function(v) return v end, displayUnits = "m", overview = "Can lock onto enemies at most %s away", details = "This is the maximum distance between a squadron and a target when selecting a new target. Target lock-on continues even if it exits the maximum scramble range.", relation = '+', },

["Squadron Speed"] = { displayName = "Squadron Speed", displayImage = "WeaponSpeed-Stat.png", displayValue = function(v) return v end, displayUnits = "m/s", overview = "Squadron travel at %s", details = "This is the linear speed of a squadron.", relation = '+', },

["Flight Time"] = { displayName = "Flight Time", displayImage = "Time-Stat.png", displayValue = function(v) return v end, displayUnits = "s", overview = "Squadrons last for %s", details = "This is the maximum time a squadron can remain outside of its hangar before having to recall for refuelling.", relation = '+', }, }

-- These have no innate values. --	displayName		|	The name to be displayed in the stat block. |	string --	displayImage	|	The image to be displayed in the stat block. |	string --	basicStats		|	The keys of the constituent statistics. |	string or table of strings --	overview		|	The content of the hover tooltip in the stat block. |	function (accepts the formatted values, returns string) statistics.compositeStatistics = { ["Scramble Details"] = { displayName = "Scramble Details", displayImage = "Range-Stat.png", basicStats = { "Minimum Scramble", "Maximum Scramble" }, overview = function(t) return string.format("Can lock on to targets %s-%s away.", t[1], t[2]) end, }, }

return statistics