mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
77 lines
2.6 KiB
Plaintext
77 lines
2.6 KiB
Plaintext
/datum/keybinding/human
|
|
category = CATEGORY_HUMAN
|
|
weight = WEIGHT_MOB
|
|
|
|
/datum/keybinding/human/can_use(client/user)
|
|
return ishuman(user.mob)
|
|
|
|
/datum/keybinding/human/quick_equip
|
|
hotkey_keys = list("E")
|
|
name = "quick_equip"
|
|
full_name = "Quick equip"
|
|
description = "Quickly puts an item in the best slot available"
|
|
keybind_signal = COMSIG_KB_HUMAN_QUICKEQUIP_DOWN
|
|
|
|
/datum/keybinding/human/quick_equip/down(client/user, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
var/mob/living/carbon/human/H = user.mob
|
|
H.quick_equip()
|
|
return TRUE
|
|
|
|
/datum/keybinding/human/quick_equip_belt
|
|
hotkey_keys = list("ShiftE")
|
|
name = "quick_equip_belt"
|
|
full_name = "Quick equip belt"
|
|
description = "Put held thing in belt or take out most recent thing from belt"
|
|
///which slot are we trying to quickdraw from/quicksheathe into?
|
|
var/slot_type = ITEM_SLOT_BELT
|
|
///what we should call slot_type in messages (including failure messages)
|
|
var/slot_item_name = "belt"
|
|
keybind_signal = COMSIG_KB_HUMAN_QUICKEQUIPBELT_DOWN
|
|
|
|
/datum/keybinding/human/quick_equip_belt/down(client/user, turf/target, mousepos_x, mousepos_y)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
var/mob/living/carbon/human/H = user.mob
|
|
H.smart_equip_targeted(slot_type, slot_item_name)
|
|
return TRUE
|
|
|
|
/datum/keybinding/human/quick_equip_belt/quick_equip_bag
|
|
hotkey_keys = list("ShiftB")
|
|
name = "quick_equip_bag"
|
|
full_name = "Quick equip bag"
|
|
description = "Put held thing in backpack or take out most recent thing from backpack"
|
|
slot_type = ITEM_SLOT_BACK
|
|
slot_item_name = "backpack"
|
|
keybind_signal = COMSIG_KB_HUMAN_BAGEQUIP_DOWN
|
|
|
|
/datum/keybinding/human/quick_equip_belt/quick_equip_suit_storage
|
|
hotkey_keys = list("ShiftQ")
|
|
name = "quick_equip_suit_storage"
|
|
full_name = "Quick equip suit storage slot"
|
|
description = "Put held thing in suit storage slot item or take out most recent thing from suit storage slot item"
|
|
slot_type = ITEM_SLOT_SUITSTORE
|
|
slot_item_name = "suit storage slot item"
|
|
keybind_signal = COMSIG_KB_HUMAN_SUITEQUIP_DOWN
|
|
|
|
/datum/keybinding/human/quick_equip_belt/quick_equip_lpocket
|
|
hotkey_keys = list("Ctrl1")
|
|
name = "quick_equip_lpocket"
|
|
full_name = "Quick equip left pocket"
|
|
description = "Put in or take out an item in left pocket"
|
|
slot_type = ITEM_SLOT_LPOCKET
|
|
slot_item_name = "left pocket"
|
|
keybind_signal = COMSIG_KB_HUMAN_LPOCKETEQUIP_DOWN
|
|
|
|
/datum/keybinding/human/quick_equip_belt/quick_equip_rpocket
|
|
hotkey_keys = list("Ctrl2")
|
|
name = "quick_equip_rpocket"
|
|
full_name = "Quick equip right pocket"
|
|
description = "Put in or take out an item in right pocket"
|
|
slot_type = ITEM_SLOT_RPOCKET
|
|
slot_item_name = "right pocket"
|
|
keybind_signal = COMSIG_KB_HUMAN_RPOCKETEQUIP_DOWN
|