Files
Aurora.3/code/datums/components/turf_click/turf_hand.dm
T
FluffyandGitHub 4538e2a7cc Fix indentations (#17481)
* cbt

* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* fsadffsda sad

* sadfasd

* jhn

* dsfa

* saf

* safsad

* sda
2023-10-05 10:15:58 +00:00

20 lines
604 B
Plaintext

/*
This component is used on airlocks and cult runes.
When a mob [attack_hand]s a turf, it will look for objects in itself containing this component.
If such is found, it will call attack_hand on that atom
When multiple of these components are in the tile, the one with the highest priority wins it.
*/
/datum/component/turf_hand
var/priority = 1
var/atom/our_owner
/datum/component/turf_hand/Initialize(var/priority = 1)
..()
if(isatom(parent))
our_owner = parent
src.priority = priority
/datum/component/turf_hand/proc/OnHandInterception(var/mob/user)
return our_owner.attack_hand(user)