mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
* Voidwalker Balancing, Fixes and Additions * Update declarations.dm --------- Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
17 lines
437 B
Plaintext
17 lines
437 B
Plaintext
/// Element for only letting a living pull other livings
|
|
/datum/element/only_pull_living
|
|
|
|
/datum/element/only_pull_living/Attach(datum/target)
|
|
. = ..()
|
|
|
|
if(!isliving(target))
|
|
return ELEMENT_INCOMPATIBLE
|
|
|
|
RegisterSignal(target, COMSIG_LIVING_TRY_PULL, PROC_REF(try_pull))
|
|
|
|
/datum/element/only_pull_living/proc/try_pull(mob/living/owner, atom/movable/pulled)
|
|
SIGNAL_HANDLER
|
|
|
|
if(!isliving(pulled))
|
|
return COMSIG_LIVING_CANCEL_PULL
|