• 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
Manual hardcode categories: Zuiuns, Planes with Anti-Air Resistance, Anti-Installation Dive Bombers, High Altitude Interceptors, Late Model Submarine Torpedoes, Depth Charge types
Line 78: Line 78:  
--equip ID category hardcode section
 
--equip ID category hardcode section
 
local equipment_id = self._equipment:id()
 
local equipment_id = self._equipment:id()
if equipment_id == 154 or equipment_id == 242 or equipment_id == 243 or equipment_id == 244 or equipment_id == 244 or equipment_id == 320 or equipment_icon == 45 or equipment_icon == 46 then
+
if equipment_type == 7 or equipment_type == 8 or equipment_type == 10 or equipment_type == 11 or equipment_type == 25 or equipment_type == 26 or equipment_type == 47 or equipment_type == 57 then --All non-fighter aircraft
table.insert(self._categories, format{"Category:Carrier-based Night Aircraft"})
+
local equipment_aircraft = self._equipment:types()
 +
local equipment_aircraft = equipment_aircraft[5]
 +
if equipment_id == 207 or equipment_aircraft == 32 then --all Zuiuns but id 207 use aircraft_type 32
 +
table.insert(self._categories, format{"Category:Zuiuns"})
 +
end
 +
if equipment_id == 154 or equipment_id == 242 or equipment_id == 243 or equipment_id == 244 or equipment_id == 244 or equipment_id == 320 or equipment_icon == 45 or equipment_icon == 46 then
 +
table.insert(self._categories, format{"Category:Carrier-based Night Aircraft"})
 +
end
 +
if equipment_id == 93 or equipment_id == 94 or equipment_id == 143 or equipment_id == 144 or equipment_id == 343 or equipment_id == 374 or equipment_id == 466 or equipment_id == 481 --Carrier-based Torpedo Bombers
 +
or equipment_id == 99 or equipment_id == 100 or equipment_id == 154 or equipment_id == 319 or equipment_id == 320 or equipment_id == 474 or equipment_id == 475 or equipment_id == 476 or equipment_id == 487 --Carrier-based Dive Bombers
 +
or equipment_id == 79 or equipment_id == 80 or equipment_id == 81 or equipment_id == 237 or equipment_id == 322 or equipment_id == 323 or equipment_id == 490 --Seaplane Bombers
 +
or equipment_id == 199 or equipment_id == 200 --Jet-powered Fighter-Bombers
 +
or equipment_id == 170 or equipment_id == 224 or equipment_id == 388 or equipment_id == 404 or equipment_id == 405 or equipment_id == 406 or equipment_id == 433 or equipment_id == 444 or equipment_id == 453 or equipment_id == 454 or equipment_id == 479 or equipment_id == 484 then --Land-based Attack Aircraft
 +
table.insert(self._categories, format{"Category:Planes with Anti-Air Resistance"})
 +
end
 +
if equipment_type == 8 then
 +
if equipment_id == 64 or equipment_id == 148 or equipment_id == 233 or equipment_id == 277 or equipment_id == 305 or equipment_id == 306 or equipment_id == 319 or equipment_id == 320 or equipment_id == 391 or equipment_id == 392 or equipment_id == 420 or equipment_id == 421 or equipment_id == 474 then
 +
table.insert(self._categories, format{"Category:Anti-Installation Dive Bombers"})
 +
end
 +
end
 +
elseif equipment_id == 350 or equipment_id == 351 or equipment_id == 352 then
 +
table.insert(self._categories, format{"Category:High Altitude Interceptors"})
 +
elseif equipment_id == 213 or equipment_id == 214 or equipment_id == 383 or equipment_id == 441 or equipment_id == 443 or equipment_icon == 457 or equipment_icon == 461 then
 +
table.insert(self._categories, format{"Category:Late Model Submarine Torpedoes"})
 +
elseif equipment_type == 15 then
 +
if equipment_id == 44 or equipment_id == 45 or equipment_id == 287 or equipment_id == 288 or equipment_id == 377 or equipment_id == 472 then
 +
table.insert(self._categories, format{"Category:Depth Charge Projectors"})
 +
elseif equipment_id == 226 or equipment_id == 227 or equipment_id == 378 or equipment_id == 439 or equipment_id == 488 then
 +
table.insert(self._categories, format{"Category:Depth Charge Racks"})
 +
elseif equipment_id == 346 or equipment_id == 347 then
 +
table.insert(self._categories, format{"Category:ASW Mortars"})
 +
else table.insert(self._categories, format{"Category:Uknown-type Depth Charge"}) --Not a category, acts as a notice/warning.
 +
end
 
end
 
end
 
end
 
end
advmod, cssedit, Interface administrators, janitor, Moderators, prechecked, Widget editors
7,373

edits

Navigation menu