• 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
m
Add base_hp() for subclasses
Line 225: Line 225:  
function ShipInfoKai:image()
 
function ShipInfoKai:image()
 
self._vars.image = ShipCardKai:get{ship = self._ship}
 
self._vars.image = ShipCardKai:get{ship = self._ship}
 +
end
 +
 +
--HP without considering marriage; used directly in EnemyShipInfoKai
 +
function ShipInfoKai:base_hp()
 +
self._vars.hp = Formatting:format_stat(self._ship:hp())
 
end
 
end
    
function ShipInfoKai:hp()
 
function ShipInfoKai:hp()
local hp = Formatting:format_stat(self._ship:hp())
+
self:base_hp()
 
local hp_married = self._ship:hp_married()
 
local hp_married = self._ship:hp_married()
 
if hp_married then
 
if hp_married then
self._vars.hp = Formatting:tooltip(hp, format{self._kekkon_template, value = Formatting:format_stat(hp_married)})
+
self._vars.hp = Formatting:tooltip(self._vars.hp, format{self._kekkon_template, value = Formatting:format_stat(hp_married)})
else
  −
self._vars.hp = hp
   
end
 
end
 
end
 
end
Anonymous user

Navigation menu