Tile - YChargeable - Deplete
Jump to navigation Jump to search
static deplete(target: YEntity, amount: number): void;
Amount of charge to be removed
Allows to decrease charge from target entity.
- Works for "chargeable" items (e.g Mining drill).
- Works also for engines.
- Power cells cannot be recharged from a script, only depleted.
- Entering negative number as amount will inverse the instruction effect.