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:36, 30 April 2023
341 bytes added
,
1 year ago
Abyssal equip IDs 500+ -> 510+. Temp code added, now supports abyssal equip with 1500+ IDs & still supports IDs 510+.
Line 254:
Line 254:
local api_id = self:api_id()
local api_id = self:api_id()
if api_id then
if api_id then
−
if api_id >
500
then
+
if api_id >
510
then
--Abyssal equipment need shifting by 1000, final number should be 1500
local equipment_type = self:type()
local equipment_type = self:type()
if equipment_type < 6
if equipment_type < 6
Line 261:
Line 261:
Equipment = Equipment or require(self._constructor_module)
Equipment = Equipment or require(self._constructor_module)
EquipmentFrom = EquipmentFrom or require("Module:Collection/EquipmentByApiId")
EquipmentFrom = EquipmentFrom or require("Module:Collection/EquipmentByApiId")
−
return Equipment(EquipmentFrom[api_id - 500]):cg()
+
--return Equipment(EquipmentFrom[api_id - 1500]):cg()
+
--temp code while awaiting full abyssal ID shift:
+
if api_id < 1500 then
+
return Equipment(EquipmentFrom[api_id - 500]):cg()
+
else
+
return Equipment(EquipmentFrom[api_id - 1500]):cg()
+
end
+
--end temp
end
end
end
end
Chocolatecravinghobo
advmod, cssedit,
Interface administrators
, janitor,
Moderators
, prechecked,
Widget editors
7,361
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