Skip to content

Commit

Permalink
Add ui_status check that is actually relevant to xenos
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jul 21, 2023
1 parent 6da782b commit 45d9631
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,16 @@ SUBSYSTEM_DEF(minimaps)
else
return UI_CLOSE

/datum/tacmap/xeno/ui_status(mob/user)
if(!isxeno(user))
return UI_CLOSE

var/mob/living/carbon/xenomorph/xeno = user
if(!xeno.hive?.living_xeno_queen?.ovipositor)
return UI_CLOSE

return UI_INTERACTIVE

/datum/tacmap_holder
var/map_ref
var/atom/movable/screen/minimap/map
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
/// How many huggers can the hive support
var/playable_hugger_limit = 0

var/datum/tacmap/tacmap
var/datum/tacmap/xeno/tacmap
var/minimap_type = MINIMAP_FLAG_XENO

/datum/hive_status/New()
Expand Down

0 comments on commit 45d9631

Please sign in to comment.