Skip to content

Commit

Permalink
Fixes and Changes for Devchat (#26726)
Browse files Browse the repository at this point in the history
* whatever the fuck brat summer is i guess

* admins should get it too i guess

* i forgor tgui build for lightmode

* Update code/modules/admin/admin_verbs.dm

Co-authored-by: BiancaWilkson <[email protected]>
Signed-off-by: Contrabang <[email protected]>

* Update code/modules/admin/admin_verbs.dm

Signed-off-by: Contrabang <[email protected]>

---------

Signed-off-by: Contrabang <[email protected]>
Co-authored-by: BiancaWilkson <[email protected]>
  • Loading branch information
Contrabang and BiancaWilkson authored Sep 12, 2024
1 parent fe834bf commit 809769b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
/client/proc/cmd_admin_say, /*admin-only ooc chat*/
/datum/admins/proc/PlayerNotes,
/client/proc/cmd_mentor_say,
/client/proc/cmd_dev_say,
/datum/admins/proc/show_player_notes,
/client/proc/free_slot, /*frees slot for chosen job*/
/client/proc/update_mob_sprite,
Expand Down Expand Up @@ -259,8 +260,8 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(

/client/proc/add_admin_verbs()
if(holder)
// If they have ANYTHING OTHER THAN ONLY VIEW RUNTIMES (65536), then give them the default admin verbs
if(holder.rights != R_VIEWRUNTIMES)
// If they have ANYTHING OTHER THAN ONLY VIEW RUNTIMES AND/OR DEV, then give them the default admin verbs
if(holder.rights & ~(R_VIEWRUNTIMES|R_DEV_TEAM))
add_verb(src, GLOB.admin_verbs_default)
if(holder.rights & R_BUILDMODE)
add_verb(src, /client/proc/togglebuildmodeself)
Expand Down Expand Up @@ -303,6 +304,8 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
add_verb(src, GLOB.view_runtimes_verbs)
spawn(1) // This setting exposes the profiler for people with R_VIEWRUNTIMES. They must still have it set in cfg/admin.txt
control_freak = 0
if(holder.rights & R_DEV_TEAM)
add_verb(src, /client/proc/cmd_dev_say)
if(is_connecting_from_localhost())
add_verb(src, /client/proc/export_current_character)

Expand All @@ -317,6 +320,7 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
/client/proc/togglebuildmodeself,
/client/proc/stealth,
/client/proc/readmin,
/client/proc/cmd_dev_say,
/client/proc/export_current_character,
GLOB.admin_verbs_default,
GLOB.admin_verbs_admin,
Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ em {
}

.dev_channel {
color: #775bff;
color: #61b413;
font-weight: bold;
}

.dev_channel_admin {
color: #a35cff;
color: #9ef14f;
font-weight: bold;
}

Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui-panel/styles/tgchat/chat-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ em {
}

.dev_channel {
color: #775bff;
color: #126719;
font-weight: bold;
}

.dev_channel_admin {
color: #a35cff;
color: #26a419;
font-weight: bold;
}

Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui-panel.bundle.css

Large diffs are not rendered by default.

0 comments on commit 809769b

Please sign in to comment.