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

[Code Bounty] Unreviewed Mixtape Refund + Bonus #4414

Merged
merged 19 commits into from
Dec 20, 2024

Conversation

Coll6
Copy link
Contributor

@Coll6 Coll6 commented Nov 29, 2024

About The Pull Request

This adds to the end game refunds for any mixtapes that went unreviewed by an admin during the shift. Unreviewed is considered one that has not been marked Approved or Denied by an admin. If it isn't reviewed and the shift ends the player gets their monkecoins back and is informed which tapes they are getting refunded for. Fixes small error with the cassette_review Destroy proc error on runtime due to a type mismatch preventing the global review tape list from removing items when it should.

Bonus!
This also adds a new menu and command for admins. The menu will allow them to see what cassettes have been submitted during the shift. It will also show whether they are pending, approved, or denied with nifty colors to match. Finally the menu allows admins to open, the review menu for the specific tape they wish to review. If the tape was already reviewed by an admin it'll allow them to still view who submitted it and what songs their tape contains.

Why It's Good For The Game

Currently if any tape goes unreviewed when a round ends the 5k monkecoins spent on getting the mixtape reviewed is just lost. The player is also not even informed of this until they check their account in the next game. Making this amount does take a few shifts doing bounties to earn but it is a let down to lose it. Admins can get busy at any point of a round and it is possible some mixtapes will go unreviewed. Players shouldn't feel punished for something out of everyone's hands. This would ultimately end up encouraging Curators into making more mixtapes.

The new menu is helpful as currently the only way to open a review is to click the link in chat. If that disappears without some monkey business it basically cannot be reviewed. The menu allows the user to reopen reviews at any time and get an overview of what was submitted. Even better they don't even have to join the game. It all can be done from the lobby. This menu change also fixes a bug where an admin opens up a review on an already reviewed tape causing the tgui screen to continuously pop up a tgui alert. This alert has been removed completely for the new menu and tape review menu will disable it's buttons to prevent changing its status after the fact.

Bounty Discord Link: Bounty
Example End Text

Changelog

🆑Siro
add: Refunding of unreviewed mixtapes at round end
add: Cassette Manager interface
add: Admin.Games Review Cassettes to the admin menu
del: tgui alert for already reviewed cassettes
fix: tgui alert spamming the client when attempting to review an already reviewed cassette.
fix: Runtime error on cassette_review Destroy proc
/:cl:

@Kitsunemitsu Kitsunemitsu added the Fix fix da bug label Dec 9, 2024
@ThePooba
Copy link
Collaborator

@Absolucy thing

@Coll6 Coll6 changed the title [Code Bounty] Unreviewed Mixtape Refund [Code Bounty] Unreviewed Mixtape Refund + Bonus Dec 16, 2024
@Coll6 Coll6 requested a review from Absolucy December 18, 2024 05:52
@Absolucy Absolucy merged commit d5d889d into Monkestation:master Dec 20, 2024
22 checks passed
github-actions bot added a commit that referenced this pull request Dec 20, 2024
@Coll6 Coll6 deleted the Code-Bounties2 branch December 22, 2024 08:45
@Coll6 Coll6 mentioned this pull request Jan 1, 2025
Gw0sty pushed a commit to Gw0sty/Monkestation2.0 that referenced this pull request Jan 9, 2025
* Refunds coin on unreviewed cassettes at end round

* Fixes refund not returned when different mob

* Fix small bug preventing tape from being destroyed

* Slight formatting for clarity.

* Merge conflict fix.

* Adds base for admin review cassettes verb in menu

* Change to TGUI using a fun menu as a base.

* Interface implemented and basic funcs working.

* Interfaceshows if a cassette is denied or approved

* Slight refactor. Fixed Reveiwed UI spam + Features

* Refactor jsx to jtx

* Applies suggestions.
Gw0sty pushed a commit to Gw0sty/Monkestation2.0 that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix fix da bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants