From 164d37d58461d24f64e34070e2315bd7e0787daa Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:58:13 +0100 Subject: [PATCH] [MIRROR] [NO GBP] Changes how the nukie medbot enables airplane mode (#26289) * [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. * [NO GBP] Changes how the nukie medbot enables airplane mode --------- Co-authored-by: Vladin Heir <44104681+VladinXXV@users.noreply.github.com> --- 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 ee72bc7393d..7e801d53798 100644 --- a/code/modules/mob/living/basic/bots/medbot/medbot.dm +++ b/code/modules/mob/living/basic/bots/medbot/medbot.dm @@ -399,7 +399,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