Changes

no edit summary
Line 65: Line 65:  
| style="width: 88px;" | ${icons.luck} ${labels.luck}
 
| style="width: 88px;" | ${icons.luck} ${labels.luck}
 
| colspan="2" style="width: 66px;" | '''${luck}'''
 
| colspan="2" style="width: 66px;" | '''${luck}'''
 +
|-
 +
| colspan="6" style="text-align: center; background-color: LightSkyBlue;"|'''Resource Consumption'''
 +
|-
 +
| colspan="2" style="width: 88px;" | ${icons.fuel} Fuel
 +
| style="width: 66px;" | '''${fuel}'''
 +
| style="width: 88px;" | ${icons.ammo} Ammo
 +
| colspan="2" style="width: 66px;" | '''${ammo}'''
 
|-
 
|-
 
| colspan="6" style="text-align: center; background-color: LightSkyBlue;"|'''Modernization Bonus'''
 
| colspan="6" style="text-align: center; background-color: LightSkyBlue;"|'''Modernization Bonus'''
 
|-
 
|-
 
| colspan="6" style="text-align: center;"| ${modernization}
 
| colspan="6" style="text-align: center;"| ${modernization}
 +
|-
 +
| colspan="6" style="text-align: center; background-color: LightSkyBlue;"|'''Scrap Value'''
 +
|-
 +
| colspan="6" style="text-align: center;"| ${scrap}
 
|-
 
|-
 
| colspan="5" style="text-align: center; background-color: LightSkyBlue;"|${build_remodel_header}
 
| colspan="5" style="text-align: center; background-color: LightSkyBlue;"|${build_remodel_header}
Line 234: Line 245:  
end
 
end
 
return table.concat(slots)
 
return table.concat(slots)
 +
end
 +
 +
function ShipInfoKai:consumption(ship)
 +
return Formatting:format_stat(ship:fuel()), Formatting:format_stat(ship:ammo())
 
end
 
end
    
function ShipInfoKai:modernization(ship)
 
function ShipInfoKai:modernization(ship)
 
return Formatting:format_modernization_bonuses(ship:modernization())
 
return Formatting:format_modernization_bonuses(ship:modernization())
 +
end
 +
 +
function ShipInfoKai:scrap(ship)
 +
return Formatting:format_resources(ship:scrap())
 
end
 
end
   Line 289: Line 308:  
vars.range = self:range(ship)
 
vars.range = self:range(ship)
 
vars.luck = self:luck(ship)
 
vars.luck = self:luck(ship)
 +
vars.fuel, vars.ammo = self:consumption(ship)
 +
vars.modernization = self:modernization(ship)
 +
vars.scrap = self:scrap(ship)
 
vars.build_remodel_header = self:build_remodel_header(ship)
 
vars.build_remodel_header = self:build_remodel_header(ship)
 
vars.build_remodel_info = self:build_remodel_info(ship)
 
vars.build_remodel_info = self:build_remodel_info(ship)
 
vars.slots = self:slots(ship)
 
vars.slots = self:slots(ship)
 
vars.slot_details = self:slot_details(ship)
 
vars.slot_details = self:slot_details(ship)
vars.modernization = self:modernization(ship)
   
return format(self._template, vars)
 
return format(self._template, vars)
 
end
 
end
    
return ShipInfoKai
 
return ShipInfoKai
Anonymous user