When the party returns to town from the Dungeon, they must refill any ammunition and consumable items (torches, rations, etc.), and they must pay 50% the cost of their weapons and armour to maintain them (or have them maintained). This process is referred to as Upkeep. (Adjust to taste for your campaign world, if you think 50% is too much or your adventurers are not so cash flush.)
For each visit to town after the first, weapons and armour start degrading by -1. The weapons never actually “break,” but infinitely get worse over time. If the weapons or armour have a penalty of -5 or more, it will be the full cost of to repair it to normal (unless they have a really good relationship with the blacksmith!)
Magic weapons and armour obviously never degrade in this way. They never even get dirty, tarnished or otherwise damaged.