added test flag on weapon durability
reimplemented permadeath