mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-31 20:53:34 +00:00
* CI now bans files with the same name * Part 1 * Warriorstar python tweaks * Part Deux * Fix unticked * fix
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
/datum/keybinding/robot
|
|
category = KB_CATEGORY_ROBOT
|
|
|
|
/datum/keybinding/robot/can_use(client/C, mob/M)
|
|
return isrobot(M) && ..()
|
|
|
|
/datum/keybinding/robot/module
|
|
/// The module number.
|
|
var/module_number
|
|
|
|
/datum/keybinding/robot/module/down(client/C)
|
|
. = ..()
|
|
var/mob/living/silicon/robot/M = C.mob
|
|
M.toggle_module(module_number)
|
|
|
|
/datum/keybinding/robot/module/slot_1
|
|
name = "Module 1"
|
|
module_number = 1
|
|
keys = list("1")
|
|
|
|
/datum/keybinding/robot/module/slot_2
|
|
name = "Module 2"
|
|
module_number = 2
|
|
keys = list("2")
|
|
|
|
/datum/keybinding/robot/module/slot_3
|
|
name = "Module 3"
|
|
module_number = 3
|
|
keys = list("3")
|
|
|
|
/datum/keybinding/robot/cycle_modules
|
|
name = "Cycle Modules"
|
|
keys = list("X")
|
|
|
|
/datum/keybinding/robot/cycle_modules/down(client/C)
|
|
. = ..()
|
|
var/mob/living/silicon/robot/M = C.mob
|
|
M.cycle_modules()
|
|
|
|
/datum/keybinding/robot/drop_held_object
|
|
name = "Store Selected Module"
|
|
keys = list("Q", "Northwest")
|
|
|
|
/datum/keybinding/robot/drop_held_object/down(client/C)
|
|
. = ..()
|
|
var/mob/living/silicon/robot/M = C.mob
|
|
M.on_drop_hotkey_press()
|