Files
siliconsandGitHub 7152e7ff2a power standardization 1/??????? - power scales, SMES/cellrate/APC/powernet/god i'm dying inside (#4103)
* 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
2022-05-26 01:27:14 -07:00

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??