[MIRROR] afterattack now returns a flag if it's reasonable to suspect the user intends to act on an item [MDB IGNORE] (#18519)

* afterattack now returns a flag if it's reasonable to suspect the user intends to act on an item

* Update _neck.dm

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-07 06:55:38 +00:00
committed by GitHub
co-authored by Mothblocks Zonespace
parent 12c3edc8e3
commit 650d64f6d4
101 changed files with 345 additions and 118 deletions
@@ -501,9 +501,10 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999))
/obj/item/analyzer/hilbertsanalyzer/afterattack(atom/target, mob/user, proximity)
. = ..()
if(istype(target, /obj/item/hilbertshotel))
. |= AFTERATTACK_PROCESSED_ITEM
if(!proximity)
to_chat(user, span_warning("It's to far away to scan!"))
return
return .
var/obj/item/hilbertshotel/sphere = target
if(sphere.activeRooms.len)
to_chat(user, "Currently Occupied Rooms:")
@@ -517,6 +518,7 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999))
to_chat(user, roomnumber)
else
to_chat(user, "No vacated rooms.")
return .
/obj/effect/landmark/lift_id/hilbert
specific_lift_id = HILBERT_TRAM