Fix weapon creation and weapon type system.