Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipData
(view source)
Revision as of 10:26, 29 November 2016
132 bytes added
,
7 years ago
handle air power for unknown forms
Line 563:
Line 563:
function ShipData:air_power(count_recons)
function ShipData:air_power(count_recons)
local air_power = 0
local air_power = 0
−
for i = 1,
self:
slots_length
()
or 0 do
+
local slots_length = self:slots_length()
+
if not slots_length or slots_length == 0 then
+
air_power = self._as_rating
+
end
+
for i = 1, slots_length or 0 do
local slot_equipment, slot_space = self:slot(i)
local slot_equipment, slot_space = self:slot(i)
if slot_equipment == nil or slot_space == nil then
if slot_equipment == nil or slot_space == nil then
がか
cssedit, gkautomate
7,060
edits