From 8ca34cf532f42241e44ff6a67e55e5d6ea7bf030 Mon Sep 17 00:00:00 2001
From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com>
Date: Fri, 3 May 2024 18:58:05 +0300
Subject: [PATCH] [MIRROR] civilian bounty control terminal displays bounty
description and payout of new bounty options (#2275) (#3146)
* civilian bounty control terminal displays bounty description and payout of new bounty options (#82987)
## About The Pull Request
The green buttons for selecting one of three bounties now also display
the description and payout.
https://github.com/tgstation/tgstation/assets/94711066/53d7fb02-28be-4138-b3d8-9f7a4dd6a356
Fixes #81867
Sorta brings it back to how it used to look, I think? The payout was
still in the code, just not being displayed. But I looked through the
file history and could find NO EVIDENCE of the bounty console displaying
the description in the past so I guess I hallucinated that.
## Why It's Good For The Game
It's nice to be able to see the payout before you're locked into a
bounty for 5 minutes. Also more chances to read the flavortext and it
makes the buttons feel less barren. With some bounties it also gives a
better idea of how to even get the thing before committing to it.
## Changelog
:cl:
fix: the civilian bounty control terminal displays the payout of new
bounty options again
qol: the civilian bounty control terminal displays the description of
new bounty options
/:cl:
* civilian bounty control terminal displays bounty description and payout of new bounty options
---------
Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com>
Co-authored-by: kawoppi <94711066+kawoppi@users.noreply.github.com>
---
code/game/machinery/civilian_bounties.dm | 3 +
.../tgui/interfaces/CivCargoHoldTerminal.jsx | 75 ++++++++++++-------
2 files changed, 53 insertions(+), 25 deletions(-)
diff --git a/code/game/machinery/civilian_bounties.dm b/code/game/machinery/civilian_bounties.dm
index 1cb7ee1477e..792c1ba22eb 100644
--- a/code/game/machinery/civilian_bounties.dm
+++ b/code/game/machinery/civilian_bounties.dm
@@ -184,6 +184,9 @@
data["id_bounty_names"] = list(inserted_scan_id.registered_account.bounties[1].name,
inserted_scan_id.registered_account.bounties[2].name,
inserted_scan_id.registered_account.bounties[3].name)
+ data["id_bounty_infos"] = list(inserted_scan_id.registered_account.bounties[1].description,
+ inserted_scan_id.registered_account.bounties[2].description,
+ inserted_scan_id.registered_account.bounties[3].description)
data["id_bounty_values"] = list(inserted_scan_id.registered_account.bounties[1].reward * (CIV_BOUNTY_SPLIT/100),
inserted_scan_id.registered_account.bounties[2].reward * (CIV_BOUNTY_SPLIT/100),
inserted_scan_id.registered_account.bounties[3].reward * (CIV_BOUNTY_SPLIT/100))
diff --git a/tgui/packages/tgui/interfaces/CivCargoHoldTerminal.jsx b/tgui/packages/tgui/interfaces/CivCargoHoldTerminal.jsx
index 386f3c5721a..438030e3947 100644
--- a/tgui/packages/tgui/interfaces/CivCargoHoldTerminal.jsx
+++ b/tgui/packages/tgui/interfaces/CivCargoHoldTerminal.jsx
@@ -96,41 +96,66 @@ const BountyTextBox = (props) => {
const BountyPickBox = (props) => {
const { act, data } = useBackend();
- const { id_bounty_names, id_bounty_values } = data;
+ const { id_bounty_names, id_bounty_infos, id_bounty_values } = data;
return (
-
+
-
+
-
+
);
};
+
+const BountyPickButton = (props) => {
+ return (
+
+ );
+};