- 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
mLine 510:
Line 510:
− +
Line 534:
Line 534:
− elseif self:_is_night_aviation_personnel(equipment) then+
− has_night_aviation_personnel = true+
no edit summary
-- Or basic attack power for night battle attack, including night special attack, anti-installation and contact modifiers.
-- Or basic attack power for night battle attack, including night special attack, anti-installation and contact modifiers.
function ShipCapabilities:night_battle(vs_installation, contact)
function ShipCapabilities:night_battle(vs_installation, contact)
local main_guns, secondary_guns, torpedoes, has_night_aviation_personnel, has_planes, firepower, torpedo = 0, 0, 0, false, self._ship:night_aviation_personnel(), self._ship:firepower_leveled(), self._ship:torpedo_leveled()
local main_guns, secondary_guns, torpedoes, has_planes, has_night_aviation_personnel, firepower, torpedo = 0, 0, 0, false, self._ship:night_aviation_personnel(), self._ship:firepower_leveled(), self._ship:torpedo_leveled()
if not firepower or not torpedo then
if not firepower or not torpedo then
return nil
return nil
equipment_torpedo = 0
equipment_torpedo = 0
end
end
elseif self:_is_night_aviation_personnel(equipment) then
has_night_aviation_personnel = true
end
end
if equipment_firepower then
if equipment_firepower then