Changes
no edit summary
local ShipData = {}
local BaseData = require("Module:BaseData")
local ShipData = BaseData()
function ShipData:name(type, raw)
function ShipData:name(raw)
return self.format_stat(self._name, raw)
return self:format_stat(self._name, raw)
end
end
function ShipData:japanese_name(raw)
function ShipData:japanese_name(raw)
return self.format_stat(self._japanese_name, raw)
return self:format_stat(self._japanese_name, raw)
end
end
function ShipData:id(raw)
function ShipData:id(raw)
return self.format_stat(self._id, raw)
return self:format_stat(self._id, raw)
end
end
function ShipData:true_id(raw)
function ShipData:true_id(raw)
return self.format_stat(self._true_id, raw)
return self:format_stat(self._true_id, raw)
end
end
function ShipData:rarity(raw)
function ShipData:rarity(raw)
return self.format_rarity(self._rarity, raw)
return self:format_rarity(self._rarity, raw)
end
end
function ShipData:class(raw)
function ShipData:class(raw)
return self.format_stat(self._class, raw)
return self:format_stat(self._class, raw)
end
end
function ShipData:type(raw)
function ShipData:type(raw)
return self.format_type(self._type, raw)
return self:format_type(self._type, raw)
end
end
function ShipData:card(type)
function ShipData:card(raw)
return self._card
return self._format_image(self._card, raw)
end
end
function ShipData:firepower(raw)
function ShipData:firepower(raw)
return self.format_stat(self._firepower, raw)
return self:format_stat(self._firepower, raw)
end
end
function ShipData:firepower_max(raw)
function ShipData:firepower_max(raw)
return self.format_stat(self._firepower_max, raw)
return self:format_stat(self._firepower_max, raw)
end
end
function ShipData:torpedo(raw)
function ShipData:torpedo(raw)
return self.format_stat(self._torpedo, raw)
return self:format_stat(self._torpedo, raw)
end
end
function ShipData:torpedo_max(raw)
function ShipData:torpedo_max(raw)
return self.format_stat(self._torpedo_max, raw)
return self:format_stat(self._torpedo_max, raw)
end
end
function ShipData:aa(raw)
function ShipData:aa(raw)
return self.format_stat(self._aa, raw)
return self:format_stat(self._aa, raw)
end
end
function ShipData:aa_max(raw)
function ShipData:aa_max(raw)
return self.format_stat(self._aa_max, raw)
return self:format_stat(self._aa_max, raw)
end
end
function ShipData:armor(raw)
function ShipData:armor(raw)
return self.format_stat(self._armor, raw)
return self:format_stat(self._armor, raw)
end
end
function ShipData:armor_max(raw)
function ShipData:armor_max(raw)
return self.format_stat(self._armor_max, raw)
return self:format_stat(self._armor_max, raw)
end
end
function ShipData:asw(raw)
function ShipData:asw(raw)
return self.format_stat(self._asw, raw)
return self:format_stat(self._asw, raw)
end
end
function ShipData:asw_max(raw)
function ShipData:asw_max(raw)
return self.format_stat(self._asw_max, raw)
return self:format_stat(self._asw_max, raw)
end
end
function ShipData:evasion(raw)
function ShipData:evasion(raw)
return self.format_stat(self._evasion, raw)
return self:format_stat(self._evasion, raw)
end
end
function ShipData:evasion_max(raw)
function ShipData:evasion_max(raw)
return self.format_stat(self._evasion_max, raw)
return self:format_stat(self._evasion_max, raw)
end
end
function ShipData:los(raw)
function ShipData:los(raw)
return self.format_stat(self._los, raw)
return self:format_stat(self._los, raw)
end
end
function ShipData:los_max(raw)
function ShipData:los_max(raw)
return self.format_stat(self._los_max, raw)
return self:format_stat(self._los_max, raw)
end
end
function ShipData:luck(raw)
function ShipData:luck(raw)
return self.format_stat(self._luck, raw)
return self:format_stat(self._luck, raw)
end
end
function ShipData:luck_max(raw)
function ShipData:luck_max(raw)
return self.format_stat(self._luck_max, raw)
return self:format_stat(self._luck_max, raw)
end
end
function ShipData.speed()
function ShipData.speed()
return self.format_speed(self._speed)
return self:format_speed(self._speed)
end
end
function ShipData.range()
function ShipData.range()
return self.format_range(self._speed)
return self:format_range(self._speed)
end
end
ShipData.format_rarity = ShipData.create_formatter({
ShipData.format_rarity = ShipData.create_formatter({