mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Migrate GPS to the new attack chain. (#32241)
* Migrate GPS to the new attack chain. * Add fingerprint.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user