From 09324a06a3bc18a6981a490266f1c5d00ca804e5 Mon Sep 17 00:00:00 2001 From: Drathek <76988376+Drulikar@users.noreply.github.com> Date: Thu, 20 Jun 2024 05:44:57 -0700 Subject: [PATCH] Fix humans seeing lesser drone information when examining the core (#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
Screenshots & Videos ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/029ae013-16be-4d35-8c86-6cd027b1fca3)
# Changelog :cl: Drathek fix: Fixed the core showing lesser drone counts to humans when examined /:cl: --- code/modules/cm_aliens/structures/special/pylon_core.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/cm_aliens/structures/special/pylon_core.dm b/code/modules/cm_aliens/structures/special/pylon_core.dm index b0270848950b..ae3be4d55bef 100644 --- a/code/modules/cm_aliens/structures/special/pylon_core.dm +++ b/code/modules/cm_aliens/structures/special/pylon_core.dm @@ -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++