Skip to content

Commit

Permalink
Fix humans seeing lesser drone information when examining the core (#…
Browse files Browse the repository at this point in the history
…6510)

# About the pull request

This PR is a follow up to #4280 where it failed to make any check on the
user examining the core.

# Explain why it's good for the game

Fixes #6509 

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>


![image](https://github.com/cmss13-devs/cmss13/assets/76988376/029ae013-16be-4d35-8c86-6cd027b1fca3)

</details>


# Changelog
:cl: Drathek
fix: Fixed the core showing lesser drone counts to humans when examined
/:cl:
  • Loading branch information
Drulikar committed Jun 20, 2024
1 parent 3fd9a4f commit 09324a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/cm_aliens/structures/special/pylon_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
/obj/effect/alien/resin/special/pylon/get_examine_text(mob/user)
. = ..()

if(!isobserver(user) && !isxeno(user))
return

var/lesser_count = 0
for(var/mob/living/carbon/xenomorph/lesser_drone/lesser in linked_hive.totalXenos)
lesser_count++
Expand Down

0 comments on commit 09324a0

Please sign in to comment.