Skip to content

Commit

Permalink
Merge pull request #3183 from Superlagg/cheese-it-the-boss-is-coming-…
Browse files Browse the repository at this point in the history
…and-hes-learning-to-read!

boss key
  • Loading branch information
Tk420634 authored Sep 27, 2023
2 parents c9f711d + 77a3147 commit 847fe97
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
26 changes: 26 additions & 0 deletions code/modules/client/bosskey.dm
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
9 changes: 7 additions & 2 deletions code/modules/client/preferences_toggles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ TOGGLE_CHECKBOX(/datum/verbs/menu/Settings, toggle_gun_cursor)()
usr.client.prefs.save_preferences()
to_chat(usr, "You will [(usr.client.prefs.chat_toggles & AIM_CURSOR_ON) ? "now" : "no longer"] see a sickass cursor when you have a gun out.")
SSblackbox.record_feedback("nested tally", "preferences_verb", 1, list("Toggle Gun Cursor", "[(usr.client.prefs.chat_toggles & CHAT_BANKCARD) ? "Enabled" : "Disabled"]"))
/datum/verbs/menu/Settings/toggle_gun_cursor/Get_checked(client/C)
return C.prefs.cb_toggles & AIM_CURSOR_ON


TOGGLE_CHECKBOX(/datum/verbs/menu/Settings, fit_window)()
set name = "Boss Left"
set category = "Preferences"
set desc = "Fit Viewport"
usr.client.fit_viewport()

GLOBAL_LIST_INIT(ghost_forms, list("ghost","ghostking","ghostian2","skeleghost","ghost_red","ghost_black", \
"ghost_blue","ghost_yellow","ghost_green","ghost_pink", \
Expand Down
1 change: 1 addition & 0 deletions fortune13.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,7 @@
#include "code\modules\cargo\packs\vending.dm"
#include "code\modules\chatter\chatter.dm"
#include "code\modules\client\border_control.dm"
#include "code\modules\client\bosskey.dm"
#include "code\modules\client\client_colour.dm"
#include "code\modules\client\client_defines.dm"
#include "code\modules\client\client_procs.dm"
Expand Down

0 comments on commit 847fe97

Please sign in to comment.