robot
Vars | |
brute_mod | Value incoming brute damage to borgs is mutiplied by. |
---|---|
burn_mod | Value incoming burn damage to borgs is multiplied by. |
floorbuffer | Does it clean the tile under it? |
last_camera_update | When the camera moved signal was send last. Avoid overdoing it |
mail_destination | Integer used to determine self-mailing location, used only by drones and saboteur borgs |
Procs | |
get_module_sprites | Returns an associative list of possible borg sprites based on the selected_module . |
get_module_types | Returns a list of choosable module types, associated with the module icon for the radial menu. |
initialize_module | Sets up the module items and sprites for the cyborg module chosen in pick_module() . |
on_drop_hotkey_press | Used in robot.dm when the user presses "Q" by default. |
robot_module_hat_offset | Sets the offset for a cyborg's hats based on their module icon. Borgs are grouped by similar sprites (Eg. all the Noble borgs are all the same sprite but recoloured.) |
set_mail_tag | Set Mail Tag |
spill_upgrades | Take the borg's upgrades and spill them on the floor |
Var Details
brute_mod
Value incoming brute damage to borgs is mutiplied by.
burn_mod
Value incoming burn damage to borgs is multiplied by.
floorbuffer
Does it clean the tile under it?
last_camera_update
When the camera moved signal was send last. Avoid overdoing it
mail_destination
Integer used to determine self-mailing location, used only by drones and saboteur borgs
Proc Details
get_module_sprites
Returns an associative list of possible borg sprites based on the selected_module
.
Key: Sprite name | Value: Sprite icon
Arguments:
- selected_module - The chosen cyborg module to get the sprites for.
get_module_types
Returns a list of choosable module types, associated with the module icon for the radial menu.
Key: Module name | Value: Module 'icon'
By default this returns the Engineering, Janitor, Medical, Mining, and Service modules. If there are any [/mob/living/silicon/robot/var/force_modules] set, then they are returned instead. If the MMI has a xenomorph brain in it ([/obj/item/mmi/var/alien]), then only the "Hunter" and standard modules is returned.
initialize_module
Sets up the module items and sprites for the cyborg module chosen in pick_module()
.
Arguments:
- selected_module - The name of the module chosen by the player in the previous procs.
- selected_sprite - The name of the sprite chosen by the player in the previous procs.
- module_sprites - The list of sprites possible for the given module. Used to transfer the
icon
andicon_state
variables to the player.
on_drop_hotkey_press
Used in robot.dm
when the user presses "Q" by default.
robot_module_hat_offset
Sets the offset for a cyborg's hats based on their module icon. Borgs are grouped by similar sprites (Eg. all the Noble borgs are all the same sprite but recoloured.)
Arguments:
- module - An
icon_state
for which the offset needs to be calculated.
set_mail_tag
Set Mail Tag
spill_upgrades
Take the borg's upgrades and spill them on the floor