Documentation

Discs & Batteries

Disc tiers, wear, broken discs, and battery charge.

#Disc Tiers

ItemBroken ItemLifetimeVendor Price
anglegrinder_discanglegrinder_disc_broken1x$50
anglegrinder_disc_proanglegrinder_disc_pro_broken2x$100
anglegrinder_disc_eliteanglegrinder_disc_elite_broken4x$200

Each disc keeps its own durability from 0 to 100. Once fitted, the grinder's durability bar shows the disc. The standard disc wears at the base rate, and each other tier's wearMultiplier scales it: 0.5 lasts twice as long.

#Wear & Broken Discs

The integration decides how much a grind wears the disc. How well the cut goes decides how much of that is used; see Pressure Cut.

A disc that reaches 0 breaks. It stays fitted as a broken disc, and the grinder will not cut until it is ejected. Ejecting returns the tier's broken item, which the Hardware Supplier buys back. With brokenItem = false, or brokenDiscItem = false for the standard disc, spent discs are destroyed instead.

#Adding a Disc Tier

Add an entry to discs keyed by the new item name, with its wearMultiplier and brokenItem. Add the disc and its broken item to your inventory, and to the vendor's items, buyback, and wornBuyback lists if he should trade them. New tiers are registered as usable automatically.

Without models and images, the grinder shows the standard disc's models and icons for the new tier.

#Batteries

anglegrinder_battery keeps its charge from 0 to 100. Once attached, the charge shows in the grinder's item description. Every grind drains some of it, set by batteryDrain. The grinder will not start a grind with no battery or a dead one, and a battery that runs out mid-grind stops it.

Detach a battery from the grinder menu to recharge it at the Hardware Supplier. Set batteryDrain = 0 for batteries that never run out, or batteryItem = false to remove batteries entirely.

#Starter Parts

Every new grinder, vendor purchases included, comes with the parts set under starterItems. By default, that is a standard disc and a battery, both at 100. Set an entry to false to sell grinders without that part.