pAIs can use their GPS again

This commit is contained in:
Damian
2020-07-23 05:11:50 +02:00
parent b07a63f0c1
commit c4d37f476e
3 changed files with 4 additions and 4 deletions

View File

@@ -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))

View File

@@ -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))

View File

@@ -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)