Skip to content

Commit

Permalink
Makes a blacklisted hives list for the pinpointer (#12884)
Browse files Browse the repository at this point in the history
* Makes a blacklisted hives list for the pinpointer

* Sure, make it static
  • Loading branch information
ivanmixo authored May 3, 2023
1 parent 4edd4c8 commit 22d3af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/items/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
var/list/tracked_list
///The hive we're tracking
var/tracked_hivenumber = XENO_HIVE_NORMAL
///The list of hives we will never track
var/static/list/blacklisted_hivenumbers = list(XENO_HIVE_NONE, XENO_HIVE_CORRUPTED, XENO_HIVE_FALLEN)

/obj/item/pinpointer/Initialize(mapload)
. = ..()
Expand All @@ -30,7 +32,7 @@
///The hivenumbers that we're allowed to select structures to track from
var/list/trackable_hivenumbers = list()
for(var/hivenumber in GLOB.xeno_critical_structures_by_hive)
if(hivenumber == XENO_HIVE_FALLEN) //no reason to ever track valhalla beans
if(hivenumber in blacklisted_hivenumbers) //no reason to ever track valhalla or admin beans
continue
if(!length(GLOB.xeno_critical_structures_by_hive[hivenumber])) //hives with no structures don't need tracking either
continue
Expand Down

0 comments on commit 22d3af9

Please sign in to comment.