Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 11:59, 17 January 2018
676 bytes added
,
6 years ago
Added inefficient check to see if equipment is improved equipment.
Line 204:
Line 204:
equip[i] = equip[i] .. '\'\'-Locked-\'\'</td></tr>'
equip[i] = equip[i] .. '\'\'-Locked-\'\'</td></tr>'
else
else
−
equip[i] = equip[i] .. '[[' .. shipmodule.data[shipNum]["equip"][i] .. ']]</td></tr>'
+
if string.find(shipmodule.data[shipNum]["equip"][i], "%★") then
+
a,b = string.match(shipmodule.data[shipNum]["equip"][i], "^(.+)★(.+)$")
+
equip[i] = equip[i] .. '[[' .. a .. '|' .. a .. '★' .. b .. ']]</td></tr>'
+
else
+
equip[i] = equip[i] .. '[[' .. shipmodule.data[shipNum]["equip"][i] .. ']]</td></tr>'
+
end
end
end
else
else
Line 217:
Line 222:
equip[i] = equip[i] .. '\'\'Locked\'\'</td></tr>'
equip[i] = equip[i] .. '\'\'Locked\'\'</td></tr>'
else
else
−
equip[i] = equip[i] .. '[[' .. shipmodule.data[shipNum]["equip"][i] .. ']]</td></tr>'
+
if string.find(shipmodule.data[shipNum]["equip"][i], "%★") then
+
a,b = string.match(shipmodule.data[shipNum]["equip"][i], "^(.+)★(.+)$")
+
equip[i] = equip[i] .. '[[' .. a .. '|' .. a .. '★' .. b .. ']]</td></tr>'
+
else
+
equip[i] = equip[i] .. '[[' .. shipmodule.data[shipNum]["equip"][i] .. ']]</td></tr>'
+
end
end
end
else
else
Acrone
3,663
edits