Files
RoxyandGitHub 504a8461ec Move pixel shift keybinds/signals to /mob/living (#4167)
## About The Pull Request

Move keybind signal defines and `/datum/keybinding`s to be living
instead of mob

## Why It's Good For The Game
Fixes #4164

## Proof Of Testing

Tested on local no runtimes and still functions

## Changelog

No user facing changes
2025-07-02 22:07:04 -04:00

57 lines
1.7 KiB
Plaintext

/datum/keybinding/living/item_pixel_shift
hotkey_keys = list("V")
name = "item_pixel_shift"
full_name = "Item Pixel Shift"
description = "Shift a pulled item's offset"
category = CATEGORY_MISC
keybind_signal = COMSIG_KB_LIVING_ITEM_PIXEL_SHIFT_DOWN
/datum/keybinding/living/item_pixel_shift/down(client/user)
. = ..()
if(.)
return
user.mob.AddComponent(/datum/component/pixel_shift)
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_ITEM_PIXEL_SHIFT_DOWN)
/datum/keybinding/living/item_pixel_shift/up(client/user)
. = ..()
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_ITEM_PIXEL_SHIFT_UP)
/datum/keybinding/living/pixel_shift
hotkey_keys = list("B")
name = "pixel_shift"
full_name = "Pixel Shift"
description = "Shift your characters offset."
category = CATEGORY_MOVEMENT
keybind_signal = COMSIG_KB_LIVING_PIXEL_SHIFT_DOWN
/datum/keybinding/living/pixel_shift/down(client/user)
. = ..()
if(.)
return
user.mob.AddComponent(/datum/component/pixel_shift)
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_PIXEL_SHIFT_DOWN)
/datum/keybinding/living/pixel_shift/up(client/user)
. = ..()
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_PIXEL_SHIFT_UP)
/datum/keybinding/living/pixel_tilting
hotkey_keys = list("N")
name = "Pixel Tilting"
full_name = "Pixel Tilt"
description = "Shift a mob's rotational value"
category = CATEGORY_MOVEMENT
keybind_signal = COMSIG_KB_LIVING_PIXEL_TILT_DOWN
/datum/keybinding/living/pixel_tilting/down(client/user)
. = ..()
if(.)
return
user.mob.AddComponent(/datum/component/pixel_shift)
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_PIXEL_TILT_DOWN)
/datum/keybinding/living/pixel_tilting/up(client/user)
. = ..()
SEND_SIGNAL(user.mob, COMSIG_KB_LIVING_PIXEL_TILT_UP)