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 08:02, 21 October 2015
146 bytes added
,
8 years ago
m
no edit summary
Line 218:
Line 218:
if rank and name and ship_table and ship_table._type then
if rank and name and ship_table and ship_table._type then
+
local luck_diff = ship_table._luck - 50
return format{
return format{
table_templates.table_dd_row,
table_templates.table_dd_row,
Line 228:
Line 229:
nb_da = "",
nb_da = "",
nb_ci = "",
nb_ci = "",
−
luck_minus_cap =
ship_table
.
_luck
-
50
,
+
luck_minus_cap =
+
luck_diff == 0 and "0" or
+
luck_diff < 0 and string
.
format("
-
%d", luck_diff) or
+
string.format("+%d", luck_diff)
,
nb_ci_rate = "",
nb_ci_rate = "",
}
}
がか
cssedit, gkautomate
7,060
edits