Skip to content

Commit

Permalink
drathekview
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Dec 8, 2023
1 parent 53339d9 commit ef6c5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/datums/medal_awards.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ GLOBAL_LIST_EMPTY(jelly_awards)
giver_mob = list()
giver_ckey = list()

GLOBAL_LIST_INIT(human_medals, list(MARINE_CONDUCT_MEDAL, MARINE_BRONZE_HEART_MEDAL, MARINE_VALOR_MEDAL, MARINE_HEROISM_MEDAL))

/proc/give_medal_award(medal_location, as_admin = FALSE)
if(as_admin && !check_rights(R_ADMIN))
Expand All @@ -52,7 +53,7 @@ GLOBAL_LIST_EMPTY(jelly_awards)
return FALSE

// Pick a medal
var/medal_type = tgui_input_list(usr, "What type of medal do you want to award?", "Medal Type", list(MARINE_CONDUCT_MEDAL, MARINE_BRONZE_HEART_MEDAL, MARINE_VALOR_MEDAL, MARINE_HEROISM_MEDAL))
var/medal_type = tgui_input_list(usr, "What type of medal do you want to award?", "Medal Type", GLOB.human_medals)
if(!medal_type)
return FALSE

Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/MedalsViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const MedalsViewer = (props, context) => {
className={sectionType}>
Issued to{' '}
<b>
{medal.recipient_name} ({medal.recipient_role})
{medal.recipient_name}{' '}
{!medal.xeno_medal && medal.recipient_role}
</b>{' '}
by <b>{medal.giver_name}</b> for: <br />
{!medal.xeno_medal && (
Expand Down

0 comments on commit ef6c5f8

Please sign in to comment.