Module:WeaponData/data

-- local data = {} local factions = {"TR", "NC", "VS", "NSO", "NS"} local weaponList = require("Module:WeaponData").getWeaponList for weaponGroup, weaponGroupList in pairs(weaponList) do	for _, faction in ipairs(factions) do		if weaponGroupList[faction] then for _, weapon in ipairs(weaponGroupList[faction]) do				if pcall(function 					data[weapon] = require("Module:WeaponData/data/" .. weapon)[weapon]				end) then -- error else end -- data[weapon] = require("Module:WeaponData/data/" .. weapon)[weapon] end end end end return data --