Changes

no edit summary
Line 19: Line 19:  
     end
 
     end
 
     if not success then
 
     if not success then
       data = U.find(EquipmentCollection, name, '_name') or {_name = name}
+
       data = U.find(EquipmentCollection, name, '_name')
       success = true
+
       -- success = true
 
     end
 
     end
 
   end
 
   end
Line 26: Line 26:  
     success, data = U.requireModule('Data/EnemyEquipment/' .. name)
 
     success, data = U.requireModule('Data/EnemyEquipment/' .. name)
 
   end
 
   end
   return data
+
   return data or {_name = name}
 
end
 
end
  
cssedit, gkautomate
6,928

edits