[MIRROR] Adds keybinds for moving up/down z-levels (#4893)

* Adds keybinds for moving up/down z-levels (#58345)

* movin' on up

* removes unnecessary lines

* Adds keybinds for moving up/down z-levels

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-04-13 16:00:21 +01:00
committed by GitHub
co-authored by Ryll Ryll
parent 5c2fdc82cb
commit a8434238c5
3 changed files with 32 additions and 3 deletions
+2 -2
View File
@@ -21,7 +21,7 @@
return TRUE
/datum/keybinding/mob/swap_hands
hotkey_keys = list("X", "Northeast") // PAGEUP
hotkey_keys = list("X")
name = "swap_hands"
full_name = "Swap hands"
description = ""
@@ -36,7 +36,7 @@
return TRUE
/datum/keybinding/mob/activate_inhand
hotkey_keys = list("Z", "Southeast") // Southeast = PAGEDOWN
hotkey_keys = list("Z")
name = "activate_inhand"
full_name = "Activate in-hand"
description = "Uses whatever item you have inhand"
+28
View File
@@ -29,3 +29,31 @@
full_name = "Move East"
description = "Moves your character east"
keybind_signal = COMSIG_KB_MOVEMENT_EAST_DOWN
/datum/keybinding/movement/zlevel_upwards
hotkey_keys = list("Northeast") // PGUP
name = "Upwards"
full_name = "Move Upwards"
description = "Moves your character up a z-level if possible"
keybind_signal = COMSIG_KB_MOVEMENT_ZLEVEL_MOVEUP_DOWN
/datum/keybinding/movement/zlevel_upwards/down(client/user)
. = ..()
if(.)
return
user.mob.up()
return TRUE
/datum/keybinding/movement/zlevel_downwards
hotkey_keys = list("Southeast") // PGDOWN
name = "Downwards"
full_name = "Move Downwards"
description = "Moves your character down a z-level if possible"
keybind_signal = COMSIG_KB_MOVEMENT_ZLEVEL_MOVEDOWN_DOWN
/datum/keybinding/movement/zlevel_downwards/down(client/user)
. = ..()
if(.)
return
user.mob.down()
return TRUE