Line 18: |
Line 18: |
| local eq = U.find(EquipmentCollection, name, '_name') | | local eq = U.find(EquipmentCollection, name, '_name') |
| local success2, equipment_table2 | | local success2, equipment_table2 |
− | if eq and eq._module then | + | if eq and (eq._module or eq._dev) then |
− | success2, equipment_table2 = U.requireModule(eq._module) | + | success2, equipment_table2 = U.requireModule(eq._module or eq._dev and name .. '/Dev') |
| end | | end |
| equipment_table = success2 and equipment_table2 or eq or { _name = name } | | equipment_table = success2 and equipment_table2 or eq or { _name = name } |
| if eq and eq._module then | | if eq and eq._module then |
| equipment_table._module = eq._module | | equipment_table._module = eq._module |
| + | end |
| + | if eq and eq._dev then |
| + | equipment_table._dev = eq._dev |
| end | | end |
| end | | end |
Line 36: |
Line 39: |
| | | |
| function Equipment:get_module(name) | | function Equipment:get_module(name) |
− | return name and mw.ustring.format('Module:%s', equipments[name] and equipments[name]._module or name) or nil | + | return name and mw.ustring.format( |
| + | 'Module:%s', |
| + | equipments[name] and (equipments[name]._module or equipments[name]._dev and name .. '/Dev') or name |
| + | ) or nil |
| end | | end |
| | | |