From 20cda4e18a7ebf57405a1f12d25fa87d755b8ed9 Mon Sep 17 00:00:00 2001 From: aaaa1023 <74441292+aaaa1023@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:07:55 -0700 Subject: [PATCH] Makes revenants able to emag medibots (and other basic bots) (#81857) ## About The Pull Request Makes Revenants able to emag basic bots. Revenant's Malfunction Ability only checked for simple_animal/bot so when Medibots, Cleanbots, and Hygeinebots were turned into basic mobs Revenants lost the ability to emag them. ## Why It's Good For The Game Being able to hack bots is pretty much the main function of malfunction, especially Medibots. Revenants not being able to hack them really reduces their ability to cause chaos. ## Changelog :cl: fix: Revenants can now again emag Medibots, Cleanbots, and Hygienebots. /:cl: --- .../living/basic/space_fauna/revenant/revenant_abilities.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/mob/living/basic/space_fauna/revenant/revenant_abilities.dm b/code/modules/mob/living/basic/space_fauna/revenant/revenant_abilities.dm index 3ea62afd9f8..40bad3b7981 100644 --- a/code/modules/mob/living/basic/space_fauna/revenant/revenant_abilities.dm +++ b/code/modules/mob/living/basic/space_fauna/revenant/revenant_abilities.dm @@ -206,6 +206,12 @@ bot.bot_cover_flags &= ~BOT_COVER_LOCKED bot.bot_cover_flags |= BOT_COVER_OPEN bot.emag_act(caster) + for(var/mob/living/basic/bot/bot in victim) + if(!(bot.bot_access_flags & BOT_COVER_EMAGGED)) + new /obj/effect/temp_visual/revenant(bot.loc) + bot.bot_access_flags |= BOT_CONTROL_PANEL_OPEN + bot.bot_access_flags |= BOT_MAINTS_PANEL_OPEN + bot.emag_act(caster) for(var/mob/living/carbon/human/human in victim) if(human == caster) continue