mud/lib/doc/lfun/all/SetDrainRate
2020-09-06 05:43:07 -07:00

37 lines
431 B
Plaintext

SETDRAINRATE
NAME
SetDrainRate()
SYNOPSIS
int SetDrainRate(int i)
DESCRIPTION
Sets how much of a battery's charge is drained per heartbeat of use.
EXAMPLES
For a two-minute battery with a charge of 120 on a mud with a one-second heartbeat: SetDrainRate(1)
LOCATION
/lib/battery
/lib/flashlight
SEE ALSO
GetDrainRate, SetCharge, GetCharge
Author
Cratylus