mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
pAIs can use their GPS again
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
return format_text ? format_text(A.name) : A.name
|
return format_text ? format_text(A.name) : A.name
|
||||||
|
|
||||||
/proc/in_range(atom/source, mob/user)
|
/proc/in_range(atom/source, mob/user)
|
||||||
if(user.Adjacent(source))
|
if(source.Adjacent(user))
|
||||||
return 1
|
return 1
|
||||||
else if(istype(user) && user.mutations && user.mutations.len)
|
else if(istype(user) && user.mutations && user.mutations.len)
|
||||||
if((M_TK in user.mutations) && (get_dist(user,source) < tk_maxrange))
|
if((M_TK in user.mutations) && (get_dist(user,source) < tk_maxrange))
|
||||||
|
|||||||
@@ -275,7 +275,7 @@
|
|||||||
if("pps")
|
if("pps")
|
||||||
if(!pps_device)
|
if(!pps_device)
|
||||||
pps_device = new(src)
|
pps_device = new(src)
|
||||||
pps_device.ui_interact(src)
|
pps_device.attack_self(src)
|
||||||
if("holomap")
|
if("holomap")
|
||||||
if(href_list["switch_target"])
|
if(href_list["switch_target"])
|
||||||
if(holo_target == initial(holo_target))
|
if(holo_target == initial(holo_target))
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
var/datum/ui_state/adjacent_state/adjacent_state = new
|
var/datum/ui_state/adjacent_state/adjacent_state = new
|
||||||
|
|
||||||
/datum/ui_state/adjacent_state/can_use_topic(src_object, mob/user)
|
/datum/ui_state/adjacent_state/can_use_topic(atom/src_object, mob/user)
|
||||||
if(!user.Adjacent(src_object))
|
if(!src_object.Adjacent(user))
|
||||||
return UI_CLOSE
|
return UI_CLOSE
|
||||||
return user.shared_ui_interaction(src_object)
|
return user.shared_ui_interaction(src_object)
|
||||||
|
|||||||
Reference in New Issue
Block a user