mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-19 04:36:48 +01:00
* start * about ready for conversions * oh boy * oh boy * powernet procs * draw power, surplus, avil, smes * cellrate, smes * cellrate, smes * more * wacky * aa * there we go * Wild! * ix * more * why * between needs to die * smart * oh no * fear * f * fixes * i hate parentheses * i hate parentheses * fixes * calc moment * *pawstamp* * acter * i hate myself too thank you * a * wack * cheat factors * that * fix * recomp * epic js moment * fix
32 lines
773 B
Plaintext
32 lines
773 B
Plaintext
/**
|
|
* Attempt to drain power from this atom
|
|
*
|
|
* *Uses universal units.*
|
|
*
|
|
* @params
|
|
* - actor - thing draining, can be null
|
|
* - amount - amount to drain in kilojoules
|
|
* - flags
|
|
*
|
|
* @return Amount drained
|
|
*/
|
|
/atom/proc/drain_energy(datum/actor, amount, flags)
|
|
return 0
|
|
|
|
/**
|
|
* checks if we support generic power draining
|
|
*
|
|
* @params
|
|
* - actor - thing draining, can be null
|
|
* - flags
|
|
*
|
|
* @return TRUE/FALSE
|
|
*/
|
|
/atom/proc/can_drain_energy(datum/actor, flags)
|
|
return FALSE
|
|
|
|
// below may be bad ideas, idk yet. COMSIG_USE_CELL_UNITS? COMSIG_GENERIC_USE_POWER? COMSIG_GENERIC_USE_ENERGY?
|
|
// TODO: generic use_power() proc with scales.
|
|
// TODO: generic use_energy() proc with scales.
|
|
// TODO: machinery components for backup batteries?? apc link?? grid link??
|