Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Sandbox/Combat
(view source)
Revision as of 18:42, 24 October 2015
478 bytes added
,
8 years ago
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,060
edits