Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Players adminverb + other admin verb fixes #4030

Merged
merged 11 commits into from
Nov 14, 2024

Conversation

Veth-s
Copy link
Contributor

@Veth-s Veth-s commented Oct 30, 2024

About The Pull Request

Check Players adminverb to quickly and precisely check how many connected clients of several categories: Connected Clients, Living Players, Dead Players, Ghost Players, Living Antags.
Fixes to Adjust Event Tokens, Adjust Antag Tokens to work off of ckey instead of Character Name.
Adjust metacoins was unchanged due to the fact I can't test if it's broken.

Why It's Good For The Game

Admin tools!!

Changelog

🆑
admin: Added Check Players verb
admin: Fixed Adjust Event Tokens to work off of ckey instead of Character Name
admin: Fixed Adjust Antag Tokens to work off of ckey instead of Character Name

/:cl:

Check Players adminverb to quickly and precisely check how many connected clients of several categories: Connected Clients, Living Players, Dead Players, Ghost Players, Living Antags.
monkestation/code/modules/admin/antag_tokens.dm Outdated Show resolved Hide resolved
monkestation/code/modules/admin/event_tokens.dm Outdated Show resolved Hide resolved
@@ -4,7 +4,7 @@
set desc = "You can modifiy a targets metacoin balance by adding or subtracting."

var/mob/chosen_player
chosen_player = tgui_input_list(src, "Choose a Player", "Player List", GLOB.player_list)
chosen_player = tgui_input_list(src, "Choose a Player", "Player List", GLOB.clients)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you won't get a mob from GLOB.clients - you'll get a, well, client.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Veth-s not resolved

tgui/packages/tgui/interfaces/PlayerStatistics.tsx Outdated Show resolved Hide resolved
tgui/packages/tgui/interfaces/PlayerStatistics.tsx Outdated Show resolved Hide resolved
I don't think I can check adjust_metacoins properly (or at least I can't figure out how to get it to work) so I have reverted to what it was before
@Veth-s Veth-s requested a review from Absolucy November 4, 2024 21:33
@@ -4,7 +4,7 @@
set desc = "You can modifiy a targets metacoin balance by adding or subtracting."

var/mob/chosen_player
chosen_player = tgui_input_list(src, "Choose a Player", "Player List", GLOB.player_list)
chosen_player = tgui_input_list(src, "Choose a Player", "Player List", GLOB.clients)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Veth-s not resolved

@Absolucy
Copy link
Collaborator

Absolucy commented Nov 8, 2024

fix conflicts

tested, still works, hopefully fixes merge conflict
@Veth-s
Copy link
Contributor Author

Veth-s commented Nov 11, 2024

it should be up to date now, it hates me, kill me thanks

Copy link
Collaborator

@Absolucy Absolucy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer to avoid usr tbh

will merge after these are fixed

Requested changes are in, thanks for all your hard work looking at my code Lucy!
@Veth-s
Copy link
Contributor Author

Veth-s commented Nov 14, 2024

prefer to avoid usr tbh

will merge after these are fixed

These should all be fixed now, thanks for the advice. Can I ask why not to use usr over something else? (just to improve my code and stuff, out of curiosity.) Thanks for all your help!

@ThePooba ThePooba merged commit 1c21ced into Monkestation:master Nov 14, 2024
20 of 21 checks passed
github-actions bot added a commit that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants