The charge system is a generic-use component that counts item uses, how ever that is defined, in world event notification terms. It will manage updating usage count in the item name, and save the usage value across multiplayer game sessions (through gold value).
The charge component is not dependent on any other systems or files, but other systems can be dependent on charges.
Other optional features of the charge component:
- initialize with a random number of charges (specifiable min-max)
- replenishable by automatic recharge (specifiable rate)
- replenishable by spending gold at a store
- replenishable by special event (message notification)
- delete its owner Go when the last charge is used
- send notification messages to self upon certain charge states (zero charges, one charge, fully charged)
Certain items in the mod implement the charge component, namely:
- rejuvenation potions
- spellcasting gauntlets