Changes

no edit summary
Line 443: Line 443:  
   data.no = no
 
   data.no = no
 
   data.name = {ship:japanese_name() or "", ship:reading() or "", ship:name() or ""}
 
   data.name = {ship:japanese_name() or "", ship:reading() or "", ship:name() or ""}
   data.class = ship:class():name() or ""
+
  local class = ship:class()
 +
   data.class = class and ship:class():name() or ""
 
   data.type = ship:formatted_type() or ""
 
   data.type = ship:formatted_type() or ""
 
   data.spd = ship:formatted_speed() or ""
 
   data.spd = ship:formatted_speed() or ""
Line 454: Line 455:  
   data.aa = minMaxStats(ship:aa(), ship:aa_max())
 
   data.aa = minMaxStats(ship:aa(), ship:aa_max())
 
   data.luck = minMaxStats(ship:luck(), ship:luck_max())
 
   data.luck = minMaxStats(ship:luck(), ship:luck_max())
   data.evasion = minMaxStats(ship:evasion(), ship:evasion_max())
+
   data.evasion = {ship:evasion() or '', ship:evasion_max() or ''}
   data.asw = minMaxStats(ship:asw(), ship:asw_max())
+
   data.asw = {ship:asw() or '', ship:asw_max() or ''}
   data.los = minMaxStats(ship:los(), ship:los_max())
+
   data.los = {ship:los() or '', ship:los_max() or ''}
 
   data.aircraft = {}
 
   data.aircraft = {}
 
   data.equip = {}
 
   data.equip = {}
Line 511: Line 512:     
local function test()
 
local function test()
   return render({args = {"525"}})
+
   return render({args = {"Brooklyn"}})
 
end
 
end
  
cssedit, gkautomate
7,064

edits