Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:CalcFit
(view source)
Revision as of 19:02, 7 November 2017
132 bytes removed
,
7 years ago
m
no edit summary
Line 35:
Line 35:
accuracy_value = function(ship, target)
accuracy_value = function(ship, target)
−
local accuracy_value_1,
accuracy_value_2
, accuracy_value_3 = Combat2.accuracy_value(ship, target)
+
local accuracy_value_1,
_
, accuracy_value_3 = Combat2.accuracy_value(ship, target)
−
if accuracy_value_1
and accuracy_value_2
and accuracy_value_3 then
+
if accuracy_value_1 and accuracy_value_3 then
−
return string.format(
+
return string.format('<span class="explain" title="%.2f%%
">
%.2f%%</span>', accuracy_value_1, math.floor(accuracy_value_3))
−
'<span class="explain" title="%.2f%%
, %.2f%%,
%.2f
%%">%d
%%</span>',
−
accuracy_value_1
, accuracy_value_2, accuracy_value_3
, math.floor(accuracy_value_3)
−
)
else
else
return "nil"
return "nil"
がか
cssedit, gkautomate
7,064
edits