/tg/ Station 13 - Modules - TypesVar Details - Proc Details

robot_model

Definition of /obj/item/robot_model, which defines behavior for each model. Further expanded on in robot_modules.dm.

Vars

added_modulesModules not inherent to the robot configuration
breakable_modulesWhether the borg loses tool slots with damage.
canDisposeWhether the borg can stuff itself into disposals
cyborg_base_iconProduces the icon for the borg and, if no special_light_key is set, the lights
locked_transformWhether swapping to this configuration should lockcharge the borg
model_traitsList of traits that will be applied to the mob if this model is used.
modulesHolds all the usable modules (tools)
robotHost of this model
special_light_keyIf we want specific lights, use this instead of copying lights in the dmi

Procs

Initialize
check_menuChecks if we are allowed to interact with a radial menu

Var Details

added_modules

Modules not inherent to the robot configuration

breakable_modules

Whether the borg loses tool slots with damage.

canDispose

Whether the borg can stuff itself into disposals

cyborg_base_icon

Produces the icon for the borg and, if no special_light_key is set, the lights

locked_transform

Whether swapping to this configuration should lockcharge the borg

model_traits

List of traits that will be applied to the mob if this model is used.

modules

Holds all the usable modules (tools)

robot

Host of this model

special_light_key

If we want specific lights, use this instead of copying lights in the dmi

Proc Details

Initialize

robot_modules

Deals with the creation and deletion of modules (tools). Assigns modules and traits to a borg with a specific model selected.

check_menu

Checks if we are allowed to interact with a radial menu

Arguments: