Welcome to the Kancolle Wiki!
If you have any questions regarding site content, account registration, etc., please visit the
KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:EquipmentData
(view source)
Revision as of 14:24, 12 July 2024
502 bytes added
,
4 months ago
no edit summary
Line 249:
Line 249:
if self._cg then
if self._cg then
return self._cg
return self._cg
−
elseif
self._cg_reference then
+
end
+
local id = self:api_id()
+
if id and id > 1500 then
+
local new_id = require('Module:Data/EnemyEquipmentCG')[id]
+
local reference
+
if new_id and new_id > 1500 then
+
local EnemyEquipment = require('Module:Collection/EnemyEquipment')
+
reference = U.find(EnemyEquipment, new_id - 1000, '_id')
+
end
+
if new_id and new_id <= 1500 then
+
local ShipEquipment = require('Module:Data/Equipment')
+
reference = U.find(ShipEquipment, new_id, '_id')
+
end
+
if reference then
+
return Equipment(reference._name):cg()
+
end
+
end
+
--[[
+
if
self._cg_reference then
Equipment = Equipment or require(self._constructor_module)
Equipment = Equipment or require(self._constructor_module)
return Equipment(self._cg_reference):cg()
return Equipment(self._cg_reference):cg()
end
end
−
local api_id = self:api_id()
+
]]--
−
if
api_id
then
+
if
id
then
−
return Formatting:equipment_cg(
api_id
, self:asset_name())
+
return Formatting:equipment_cg(
id
, self:asset_name())
end
end
return self._cg
return self._cg
がか
cssedit, gkautomate
7,064
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Content Navigation
Kancolle Wiki
Random page
Recent changes
Batch Uploading
Current Mini-event
Naval District Saury Festival
Sortie
Sortie
World 1 (Naval Base Waters)
World 2 (Nansei Island Waters)
World 3 (Northern Waters)
World 7 (South Western Waters)
World 4 (Western Waters)
World 5 (Southern Waters)
World 6 (Central Waters)
Events
Shortcuts
Expeditions
Quests
Ships Maximum Status
Equipment
Construction
Development
Akashi's Improvement Arsenal
Shop
Inventory
Combat Mechanics
Glossary
Drop List
Interviews
Tutorials
How to Register
How To Play
Leveling
Resource Farming
Ship Priority
Equipment Setup
Akashi Upgrades
Event Preparation
Troubleshooting
FAQ
Community
Help
Sandbox
Tools
Upload file
Special pages
Printable version