Changes

no edit summary
Line 8: Line 8:     
function ShipData:name(raw)
 
function ShipData:name(raw)
if self._suffix then
+
if self:suffix() and (raw or self:display_suffix() ~= false) then
 
return self:base_name() .. " " .. (raw and self:suffix() or self:display_suffix())
 
return self:base_name() .. " " .. (raw and self:suffix() or self:display_suffix())
 
else
 
else
Line 24: Line 24:     
function ShipData:display_suffix()
 
function ShipData:display_suffix()
 +
if self._display_suffix == false then
 +
return self._display_suffix
 +
end
 
return self._display_suffix or self._suffix
 
return self._display_suffix or self._suffix
 
end
 
end
Anonymous user