mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
[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:
co-authored by
Mothblocks
Zonespace
parent
12c3edc8e3
commit
650d64f6d4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user