mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
* cbt * AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA * fsadffsda sad * sadfasd * jhn * dsfa * saf * safsad * sda
20 lines
604 B
Plaintext
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)
|