From dfad08dc15f0a75bd6dc7415ce1fdffc6474ee0d Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Sat, 15 Jan 2022 04:57:14 -0800 Subject: [PATCH] Update cataloguer.dm (#3670) --- code/modules/catalogue/cataloguer.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/catalogue/cataloguer.dm b/code/modules/catalogue/cataloguer.dm index 141359dc07d..3ed05381b42 100644 --- a/code/modules/catalogue/cataloguer.dm +++ b/code/modules/catalogue/cataloguer.dm @@ -27,7 +27,7 @@ GLOBAL_LIST_EMPTY(all_cataloguers) force = 0 var/points_stored = 0 // Amount of 'exploration points' this device holds. var/scan_range = 3 // How many tiles away it can scan. Changing this also changes the box size. - var/credit_sharing_range = 14 // If another person is within this radius, they will also be credited with a successful scan. + var/credit_sharing_range = INFINITY // If another person is within this radius, they will also be credited with a successful scan. var/datum/category_item/catalogue/displayed_data = null // Used for viewing a piece of data in the UI. var/busy = FALSE // Set to true when scanning, to stop multiple scans. var/debug = FALSE // If true, can view all catalogue data defined, regardless of unlock status. @@ -148,12 +148,17 @@ GLOBAL_LIST_EMPTY(all_cataloguers) // Figure out who may have helped out. var/list/contributers = list() var/list/contributer_names = list() + var/turf/T = get_turf(user) || get_turf(target) + var/list/contributing_z = GetConnectedZlevels(T.z) for(var/thing in player_list) var/mob/living/L = thing if(L == user) continue if(!istype(L)) continue + var/turf/other = get_turf(L) + if(!(other.z in contributing_z)) + continue if(get_dist(L, user) <= credit_sharing_range) contributers += L contributer_names += L.name