mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Migrate pinpointers to the new attack chain. (#32331)
* Migrate pinpointers to the new attack chain. * Migrate contractor pinpointer as well. * Add the coveted trailing newline. Signed-off-by: Alan <alfalfascout@users.noreply.github.com> * Apply suggestions from CRUNCH review. Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Signed-off-by: Alan <alfalfascout@users.noreply.github.com> * Unscramble GitHub shenanigans. --------- Signed-off-by: Alan <alfalfascout@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
@@ -37,12 +37,15 @@
|
||||
var/turf/there = get_turf(H)
|
||||
return here && there && there.z == here.z
|
||||
|
||||
/obj/item/pinpointer/crew/contractor/attack_self__legacy__attackchain(mob/living/user)
|
||||
if(owner)
|
||||
if(owner != user.mind.current)
|
||||
to_chat(user, SPAN_WARNING("[src] refuses to do anything."))
|
||||
return
|
||||
else
|
||||
/obj/item/pinpointer/crew/contractor/activate_self(mob/living/user)
|
||||
if(!owner)
|
||||
owner = user.mind.current
|
||||
to_chat(user, SPAN_NOTICE("[src] now recognizes you as its sole user."))
|
||||
add_fingerprint(user)
|
||||
return ..()
|
||||
|
||||
if(owner != user.mind.current)
|
||||
to_chat(user, SPAN_WARNING("[src] refuses to do anything!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user