-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3183 from Superlagg/cheese-it-the-boss-is-coming-…
…and-hes-learning-to-read! boss key
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/client | ||
var/boss = FALSE | ||
|
||
/client/verb/boss_key() | ||
set name = "Boss Key" | ||
set desc = "Press this to avoid uncomfortable HR meetings." | ||
set category = "OOC" | ||
|
||
if(boss) // unboss | ||
fit_viewport() | ||
to_chat(src, span_hypnophrase("Phew, that was close.")) | ||
boss = FALSE | ||
return | ||
winset(src, "mainwindow.split", "splitter=100") | ||
to_chat(src, span_phobia("Oh no, the boss is coming!")) | ||
boss = TRUE | ||
|
||
/datum/keybinding/client/bosskey | ||
hotkey_keys = list("=") | ||
name = "bosskey" | ||
full_name = "Boss Key" | ||
description = "Press this to avoid uncomfortable HR meetings. Great to use in the middle of a boss fight." | ||
|
||
/datum/keybinding/client/bosskey/down(client/user) | ||
user.boss_key() | ||
return TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters