• 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
support simplified naming scheme in CG functions
Line 143: Line 143:  
function ShipData:is_pillbox()
 
function ShipData:is_pillbox()
 
return self._pillbox
 
return self._pillbox
 +
end
 +
 +
function ShipData:simple_naming()
 +
return self._simple_naming
 
end
 
end
   Line 212: Line 216:  
return Ship:create_from_reference(self._cg_reference, self):cg()
 
return Ship:create_from_reference(self._cg_reference, self):cg()
 
end
 
end
api_id = self:api_id()
+
local api_id, simple_naming = self:api_id(), self:simple_naming()
 
if api_id then
 
if api_id then
return Formatting:ship_cg(api_id, self:unique_name(), self:type(), self._cg_extension)
+
return Formatting:ship_cg(api_id, self:unique_name(), self:type(), self._cg_extension, simple_naming)
 
end
 
end
 
return self._cg
 
return self._cg
Line 226: Line 230:  
return Ship:create_from_reference(self._cg_damaged_reference, self):cg_damaged()
 
return Ship:create_from_reference(self._cg_damaged_reference, self):cg_damaged()
 
end
 
end
api_id = self:api_id()
+
local api_id, simple_naming = self:api_id(), self:simple_naming()
 
if api_id then
 
if api_id then
return Formatting:ship_cg_damaged(api_id, self:unique_name(), self:type(), self._cg_damaged_extension)
+
return Formatting:ship_cg_damaged(api_id, self:unique_name(), self:type(), self._cg_damaged_extension, simple_naming)
 
end
 
end
 
return self._cg_damaged
 
return self._cg_damaged
cssedit, gkautomate
7,064

edits

Navigation menu