Degrading fixed and expanded

Fixed the majority of the code, added functionality for crystal
equipment and a constant that turns degrading on or off

To do:
Npc dialogue / ability to repair broken or damaged items for a much
lower rate than realscape