So I've been doing some bug squashing with the item durability snippet. Turns out I forgot to put in code to affect the buying/selling price of damaged items. Also, fixed a bug with repair and added "price," as well as a couple other things.
I feel like I was a bit sloppy in forgetting some of those things. Sorry about that! Anyways, I uploaded an updated version. Should work fine. Enjoy!