From 9317696b7d92e3ad808cb152ef3336eeecb81e33 Mon Sep 17 00:00:00 2001 From: Vladin Heir <44104681+VladinXXV@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:50:02 -0500 Subject: [PATCH] [NO GBP] Changes how the nukie medbot enables airplane mode (#81152) ## About The Pull Request When I wrote #81113, I foolishly set the flags on the nukie medbot by typing out all the parent flags and removing the one I did not want. This PR changes that to use the `parent_type::` operator and get the actual parent flags, then removing the one we do not want. Not player facing. ## Why It's Good For The Game Looks cleaner in the code and probably helps maintainability. --- code/modules/mob/living/basic/bots/medbot/medbot.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/basic/bots/medbot/medbot.dm b/code/modules/mob/living/basic/bots/medbot/medbot.dm index 91af2025d05..2b3c40043f1 100644 --- a/code/modules/mob/living/basic/bots/medbot/medbot.dm +++ b/code/modules/mob/living/basic/bots/medbot/medbot.dm @@ -393,7 +393,7 @@ health = 40 maxHealth = 40 maints_access_required = list(ACCESS_SYNDICATE) - bot_mode_flags = BOT_MODE_ON | BOT_MODE_CAN_BE_SAPIENT | BOT_MODE_ROUNDSTART_POSSESSION + bot_mode_flags = parent_type::bot_mode_flags & ~BOT_MODE_REMOTE_ENABLED radio_key = /obj/item/encryptionkey/syndicate radio_channel = RADIO_CHANNEL_SYNDICATE damage_type_healer = HEAL_ALL_DAMAGE