Merge pull request #6552 from Mechoid/OfRobotsAndChannels

AIs properly use radios in shells, clerical gets command.
This commit is contained in:
Atermonera
2019-12-15 11:39:59 -08:00
committed by GitHub

View File

@@ -46,6 +46,7 @@ var/global/list/robot_modules = list(
add_languages(R)
add_subsystems(R)
apply_status_flags(R)
handle_shell(R)
if(R.radio)
R.radio.recalculateChannels()
@@ -149,6 +150,19 @@ var/global/list/robot_modules = list(
if(!can_be_pushed)
R.status_flags |= CANPUSH
/obj/item/weapon/robot_module/proc/handle_shell(var/mob/living/silicon/robot/R)
if(R.braintype == BORG_BRAINTYPE_AI_SHELL)
channels = list(
"Medical" = 1,
"Engineering" = 1,
"Security" = 1,
"Service" = 1,
"Supply" = 1,
"Science" = 1,
"Command" = 1,
"Explorer" = 1
)
// Cyborgs (non-drones), default loadout. This will be given to every module.
/obj/item/weapon/robot_module/robot/New()
..()
@@ -581,7 +595,10 @@ var/global/list/robot_modules = list(
/obj/item/weapon/robot_module/robot/clerical
name = "service robot module"
channels = list("Service" = 1)
channels = list(
"Service" = 1,
"Command" = 1
)
languages = list(
LANGUAGE_SOL_COMMON = 1,
LANGUAGE_UNATHI = 1,