Files
b1029a24f8 Power Cell Rework + Energy Weapon Rebalance (& misc changes) (#7438)
- all cells in the game are now small, medium, large
- super, hyper capacity cells, device, and weapon cells are all removed
- cells now have standardized variants, some of which are printable by
R&D
- energy weapons rebalanced
- **advanced energy guns and stun revolvers removed** - use the new
modular weapon system and microfission cells.

---------

Co-authored-by: silicons <silicons@silicons.dev>
2025-12-24 12:15:01 +01:00

73 lines
2.3 KiB
Plaintext

//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2024 Citadel Station Developers *//
/datum/keybinding/item
weight = WEIGHT_ITEM
category = CATEGORY_ITEM
/datum/keybinding/item/can_use(client/user)
return TRUE
/datum/keybinding/item/activate_inhand
hotkey_keys = list("Z", "Southeast") // PAGEDOWN
name = "activate_inhand"
full_name = "Activate Held Item"
description = "Uses whatever item you have inhand; this is usually the item's primary action."
/datum/keybinding/item/activate_inhand/down(client/user)
user.mob.keybind_activate_inhand()
return TRUE
/datum/keybinding/item/unique_action
name = "unique_action"
full_name = "Unique Held Action"
description = "Uses whatever item you have inhand; this is usually the item's secondary action."
hotkey_keys = list("Space")
/datum/keybinding/item/unique_action/down(client/user)
user.mob.keybind_unique_inhand()
return TRUE
/datum/keybinding/item/defensive_toggle
name = "item-defensive-toggle"
full_name = "Defensive Held Toggle"
description = "Usually uses whatever item you have inhand; this is usually the item's toggled defensive action."
hotkey_keys = list("F")
/datum/keybinding/item/defensive_toggle/down(client/user)
user.mob.keybind_defensive_toggle()
return TRUE
/datum/keybinding/item/defensive_trigger
name = "item-defensive-trigger"
full_name = "Defensive Held Trigger"
description = "Usually uses whatever item you have inhand; this is usually the item's triggered defensive action."
hotkey_keys = list("G")
/datum/keybinding/item/defensive_trigger/down(client/user)
user.mob.keybind_defensive_trigger()
return TRUE
/datum/keybinding/item/multihand_wield
hotkey_keys = list("ShiftX")
classic_keys = list("ShiftX")
name = "multihand_wield"
full_name = "Wield Held Item"
description = "Wield an item with two, or more hands (if it's supported)."
/datum/keybinding/item/multihand_wield/down(client/user)
user.mob.keybind_wield_inhand()
return TRUE
// todo: need a mob verb
/datum/keybinding/item/toggle_gun_safety
hotkey_keys = list()
name = "toggle_gun_safety"
full_name = "Toggle Gun Safety"
description = "Toggle the safety of a gun in your hand"
/datum/keybinding/item/toggle_gun_safety/down(client/user)
var/obj/item/gun/G = locate() in user.mob.get_held_items()
if(G)
G.toggle_safety(user)