Added armor handling to item factory and json.