• 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
Add air power formula
Line 194: Line 194:  
function Combat.accuracy_rate(ship)
 
function Combat.accuracy_rate(ship)
 
     return math.floor(100 * ((math.sqrt(ship._level) - 1) / 45 + ship._luck / 1000))
 
     return math.floor(100 * ((math.sqrt(ship._level) - 1) / 45 + ship._luck / 1000))
 +
end
 +
 +
function Combat.air_power(ship)
 +
    local slot1 = math.floor(10 * math.sqrt(ship._equipment[1].size))
 +
    local slot2 = math.floor(10 * math.sqrt(ship._equipment[2].size))
 +
    local slot3 = math.floor(10 * math.sqrt(ship._equipment[3].size))
 +
    local slot4 = math.floor(10 * math.sqrt(ship._equipment[4].size))
 +
    return {
 +
        slot_all = slot1 + slot2 + slot3 + slot4,
 +
        slot1 = slot1,
 +
        slot2 = slot2,
 +
        slot3 = slot3,
 +
        slot4 = slot4,
 +
    }
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu