Skip to content

Commit

Permalink
Mission Abandonment Confirmation (#3707)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

Fixes #3700 by requiring a confirmation pop up to give up on missions.
Minor QoL.

## Why It's Good For The Game

Prevents people from accidentally abandoning missions when they didn't
mean to, and provides more time to reconsider it.

## Changelog

:cl:
add: Added a confirmation pop up for abandoning missions.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
MarkSuckerberg authored Nov 6, 2024
1 parent 70ec6b6 commit e1bcb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/cargo/console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
else if(mission.servant == ship)
if(mission.can_complete())
mission.turn_in()
else
else if(tgui_alert(usr, "Give up on [mission]?", src, list("Yes", "No")) == "Yes")
mission.give_up()
return TRUE

Expand Down

0 comments on commit e1bcb48

Please sign in to comment.