• 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
Fix format_night_battle() when not a multiple hit attack
Line 520: Line 520:  
function ShipCapabilities:format_night_battle(mode, attack_power)
 
function ShipCapabilities:format_night_battle(mode, attack_power)
 
if mode then
 
if mode then
 +
attack_power = math.floor(attack_power)
 
local multiplier = self._night_battle_attack_counts[mode]
 
local multiplier = self._night_battle_attack_counts[mode]
 
if multiplier then
 
if multiplier then
attack_power = tostring(math.floor(attack_power)) .. " " .. multiplier
+
attack_power = tostring(attack_power) .. " " .. multiplier
 
end
 
end
 
return format{self._attack_template, mode = self._night_battle_modes[mode], attack_power = attack_power}
 
return format{self._attack_template, mode = self._night_battle_modes[mode], attack_power = attack_power}
Anonymous user

Navigation menu