Skip to content

Commit

Permalink
Prompt Confirmation before Random Fact (#4105)
Browse files Browse the repository at this point in the history
# About the pull request

Add confirmation prompt before triggering random fact

# Explain why it's good for the game

Misclicking something that does a announcement SIMILAR TO END OF ROUND
without any confirmation leads to said admin getting bullied.

![image](https://github.com/cmss13-devs/cmss13/assets/91219575/3383b2b5-de8c-468b-837d-4520c87e8cad)


# Testing Photographs and Procedure


![image](https://github.com/cmss13-devs/cmss13/assets/91219575/5ad5c776-fb28-4287-9fcd-83a28534d69d)

# Changelog
:cl:
admin: You now need to give confirmation before announcing random facts
(OOC tab verb)
/:cl:
  • Loading branch information
Ben10083 authored Aug 5, 2023
1 parent f423aba commit 7de9afa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ var/list/roundstart_mod_verbs = list(
set desc = "Tells everyone about a random statistic in the round."
set category = "OOC"

var/prompt = tgui_alert(usr, "Are you sure you want to do this?", "Announce Random Fact", list("No", "Yes"))
if(prompt != "Yes")
return

message_admins("[key_name(usr)] announced a random fact.")
SSticker.mode?.declare_fun_facts()

Expand Down

0 comments on commit 7de9afa

Please sign in to comment.