private int getRandomDurability(WeaponType type) { return rand.nextInt(type.getType().getMaxDurability() - 40) + 40; }