Repair (equipment)

You can repair damaged equipment by visiting a vendor, and paying a fee that depends on the amount of damage the equipment has suffered (this fee may vary depending on the vendor).

When repairing any piece of equipment, there is always some chance to permanently damage it. Currently, this probability does not depend on the vendor, and is given by P(permanent damage) = 1 - (current durability / current maximum durability)

Additionally, the amount of permanent damage taken when repairing is given by max( 1, sqrt( x ) ) where x is the amount of permanent damage already taken by the item.