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 12:04, 21 October 2015
114 bytes added
,
8 years ago
Use new CI rate formula
Line 152:
Line 152:
-- * CI rate formula.
-- * CI rate formula.
−
-- old formula
+
local cut_in_types = {
−
function cut_in_rate(luck)
+
torpedo = { k = 70, cap = 60 },
−
if luck <=
50
then
+
mixed = { k = 70, cap = 70 },
−
return math.floor(
0
.
85
* luck)
+
main = { k = 50, cap = 55 }
+
}
+
+
function cut_in_rate(luck
, t
)
+
if luck <=
t.cap
then
+
return math.floor(
math.sqrt(t
.
k
* luck
)
)
else
else
−
return
math.floor
(
0
.
85 * 50 + math.sqrt(luck - 50)
)
+
return
cut_in_rate
(
t
.
cap, t
)
end
end
end
end
Line 184:
Line 189:
!<span title="Maximal damage from cut-in">Cut-In</span>
!<span title="Maximal damage from cut-in">Cut-In</span>
!${luck_minus_cap}
!${luck_minus_cap}
−
!<span title="
Cut
-in rate (only luck dependent part, no bonuses)">Cut-In Rate</span>
+
!<span title="
Torpedo cut
-in rate (only luck dependent part, no bonuses)">Cut-In Rate</span>
${rows}|}]],
${rows}|}]],
がか
cssedit, gkautomate
6,928
edits