Converted dust and armor classes to Scala