Migrate GPS to the new attack chain. (#32241)

* Migrate GPS to the new attack chain.

* Add fingerprint.
This commit is contained in:
Alan
2026-07-24 19:43:03 +00:00
committed by GitHub
parent 455e59f7cf
commit 8475ffd91f
4 changed files with 9 additions and 4 deletions
@@ -11,7 +11,7 @@
gpstag = "Unknown Signal"
/obj/item/gps/ruin/attack_hand(mob/user)
attack_self__legacy__attackchain(user)
ui_interact(user)
/obj/item/gps/ruin/mining_base
gpstag = "Nanotrasen Mining Outpost"
@@ -257,7 +257,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/economy/vending/wallmed/survival_pod,
qdel(src)
/obj/item/gps/computer/attack_hand(mob/user)
attack_self__legacy__attackchain(user)
ui_interact(user)
//Bed
/obj/structure/bed/pod
+1 -1
View File
@@ -20,7 +20,7 @@
gps = new(src)
/obj/item/mod/module/gps/on_use()
gps.attack_self__legacy__attackchain(mod.wearer)
gps.activate_self(mod.wearer)
///Hydraulic Clamp - Lets you pick up and drop crates.
/obj/item/mod/module/clamp
+6 -1
View File
@@ -28,6 +28,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
var/emped = FALSE
/// Turf reference. If set, it will appear in the UI. Used by [/obj/machinery/computer/telescience].
var/turf/locked_location
new_attack_chain = TRUE
/obj/item/gps/Initialize(mapload)
. = ..()
@@ -131,8 +132,12 @@ GLOBAL_LIST_EMPTY(GPS_list)
return data
/obj/item/gps/attack_self__legacy__attackchain(mob/user)
/obj/item/gps/activate_self(mob/user)
if(..())
return ITEM_INTERACT_COMPLETE
add_fingerprint(user)
ui_interact(user)
return ITEM_INTERACT_COMPLETE
/obj/item/gps/ui_state(mob/user)
return GLOB.inventory_state