Changes
no edit summary
function ShipData:remodel_cost(raw)
function ShipData:remodel_cost(raw)
if raw then
if raw then
return {
return self._remodel_ammo, self._remodel_steel
else
else
return mw.ustring.format("%s %d %s %d", self:format_image(ResourceIcons.ammo), self:format_stat(self._remodel_ammo), self:format_image(ResourceIcons.steel), self:format_stat(self._remodel_steel))
return mw.ustring.format("%s %d %s %d", self:format_image(ResourceIcons.ammo), self:format_stat(self._remodel_ammo), self:format_image(ResourceIcons.steel), self:format_stat(self._remodel_steel))
return mw.ustring.format("%s %s", self:format_image(ResourceIcons.blueprint, "36px"), self._remodel_blueprint and "✓" or "✗")
return mw.ustring.format("%s %s", self:format_image(ResourceIcons.blueprint, "36px"), self._remodel_blueprint and "✓" or "✗")
end
end
end
function ShipData:fuel(raw)
return self:format_stat(self._fuel, raw)
end
function ShipData:ammo(raw)
return self:format_stat(self._ammo, raw)
end
end