mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 17:11:40 +00:00
Merge pull request #6552 from Mechoid/OfRobotsAndChannels
AIs properly use radios in shells, clerical gets command.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user