robot_model

Definition of /obj/item/robot_model, which defines behavior for each model. Further expanded on in robot_modules.dm.
Vars | |
| 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 |
Procs | |
| Initialize | |
| check_menu | Checks 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:
- user The cyborg mob interacting with the menu
- old_model The old cyborg's model