code/datums/components/electrified_buckle.dm

ELECTRIC_BUCKLE_SHOCK_STRENGTH_DIVISOR | divide the power in the cable net under parent by this to determine the shock damage |
---|---|
ELECTRIC_BUCKLE_MINUMUM_POWERNET_STRENGTH | it will not shock the mob buckled to parent if its required to use a cable to shock and the cable has less than this power availaible |
/datum/component/electrified_buckle | attach it to any atom/movable that can be buckled to in order to have it shock mobs buckled to it. by default it shocks mobs buckled to parent every shock_loop_time. the parent is supposed to define its behavior with arguments in AddComponent |
Define Details
ELECTRIC_BUCKLE_MINUMUM_POWERNET_STRENGTH
it will not shock the mob buckled to parent if its required to use a cable to shock and the cable has less than this power availaible
ELECTRIC_BUCKLE_SHOCK_STRENGTH_DIVISOR
divide the power in the cable net under parent by this to determine the shock damage