• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
Add level formatting
Line 157: Line 157:     
function ShipData:remodel_level(raw)
 
function ShipData:remodel_level(raw)
return self:format_stat(self._remodel_level, raw)
+
return self:format_level(self._remodel_level, raw)
 
end
 
end
   Line 218: Line 218:  
function ShipData:range()
 
function ShipData:range()
 
return self:format_range(self._speed)
 
return self:format_range(self._speed)
 +
end
 +
 +
function ShipData:format_level(stat, raw)
 +
return not raw and mw.ustring.format("Level %s", stat) or stat
 
end
 
end
  
Anonymous user

Navigation menu