Files
Bubberstation/code/datums/keybinding/artificial_intelligence.dm
T
John Willard 2ef5704c30 Adds a keybind for 'precise' dropping (like SS14) (#93790)
## About The Pull Request


https://github.com/user-attachments/assets/531f1456-72a1-4215-ae9e-4f4bf143b8c5

<img width="429" height="93" alt="image"
src="https://github.com/user-attachments/assets/1440fb60-a6b8-46c3-9bee-5a30017e2265"
/>

## Why It's Good For The Game

There's been SS14 players moving to SS13 and finding dropping in 14 is
better, which I kinda agree as it allows you to be more precise with x/y
dropping.

## Changelog

🆑
qol: There's a keybind (default is Ctrl+X, rebindable) for the drop
hotkey to drop where your mouse is (similar to SS14).
/🆑
2025-11-18 17:39:20 -07:00

22 lines
680 B
Plaintext

/datum/keybinding/artificial_intelligence
category = CATEGORY_AI
weight = WEIGHT_AI
/datum/keybinding/artificial_intelligence/can_use(client/user)
return isAI(user.mob)
/datum/keybinding/artificial_intelligence/reconnect
hotkey_keys = list("-")
name = "reconnect"
full_name = "Reconnect to shell"
description = "Reconnects you to your most recently used AI shell"
keybind_signal = COMSIG_KB_SILICON_RECONNECT_DOWN
/datum/keybinding/artificial_intelligence/reconnect/down(client/user, turf/target, mousepos_x, mousepos_y)
. = ..()
if(.)
return
var/mob/living/silicon/ai/our_ai = user.mob
our_ai.deploy_to_shell(our_ai.redeploy_action.last_used_shell)
return TRUE