Changes

m
fixes
Line 70: Line 70:  
table.insert(self._categories, format{"Category:${equipment_type} with 9+ AA stat", equipment_type = Formatting:format_equipment_type_plural(equipment_type)})
 
table.insert(self._categories, format{"Category:${equipment_type} with 9+ AA stat", equipment_type = Formatting:format_equipment_type_plural(equipment_type)})
 
end
 
end
elseif eq_type == 12 or eq_type == 13 or eq_type == 93 then
+
elseif equipment_type == 12 or equipment_type == 13 or equipment_type == 93 then
 
if self._equipment:aa() >= 2 then
 
if self._equipment:aa() >= 2 then
table.insert(self._categories, format{"Category:Air Radar"})
+
table.insert(self._categories, format{"Category:Air Radars"})
 
end
 
end
 
if self._equipment:los() >= 5 then
 
if self._equipment:los() >= 5 then
table.insert(self._categories, format{"Category:Surface Radar"})
+
table.insert(self._categories, format{"Category:Surface Radars"})
 
end
 
end
elseif eq_type == 7 or eq_type == 8 or eq_type == 10 or eq_type == 11 or eq_type == 25 or eq_type == 26 or eq_icon == 47 then
+
elseif 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_icon == 47 then
if eq_type == 25 then
+
if equipment_type == 25 then
 
local equipment_id = self._equipment:id()
 
local equipment_id = self._equipment:id()
 
if equipment_id == 326 or equipment_id == 327 then
 
if equipment_id == 326 or equipment_id == 327 then
advmod, cssedit, janitor, Moderators, prechecked, Widget editors
6,955

edits