Skip to content

Commit

Permalink
Some Golden Arrow changes (cmss13-devs#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterDude authored and AndroBetel committed Jun 1, 2024
1 parent dbb7325 commit c531c79
Show file tree
Hide file tree
Showing 5 changed files with 29,821 additions and 28,957 deletions.
2 changes: 1 addition & 1 deletion code/datums/medal_awards.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ GLOBAL_LIST_EMPTY(jelly_awards)
to_chat(user, SPAN_WARNING("You must have an authenticated ID Card to award medals."))
return

if(!((card.paygrade in GLOB.co_paygrades) || (card.paygrade in GLOB.highcom_paygrades)))
if(!((card.paygrade in GLOB.co_paygrades) || (card.paygrade in GLOB.platco_paygrades) || (card.paygrade in GLOB.highcom_paygrades)))
to_chat(user, SPAN_WARNING("Only a Senior Officer can award medals!"))
return

Expand Down
8 changes: 7 additions & 1 deletion code/datums/paygrades/paygrade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ GLOBAL_LIST_INIT(co_paygrades, list(
"MO6E",
"MO6C",
"MO5",
"MO4"
"MO4",
))

GLOBAL_LIST_INIT(platco_paygrades, list(
"MO3",
"MO2",
"MO1",
))

GLOBAL_LIST_INIT(wy_paygrades, list(
Expand Down
2 changes: 2 additions & 0 deletions code/game/machinery/ARES/ARES_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ GLOBAL_LIST_INIT(maintenance_categories, list(
return ARES_ACCESS_HIGH
if(card.paygrade in GLOB.co_paygrades)
return ARES_ACCESS_CO
if(card.paygrade in GLOB.platco_paygrades)
return ARES_ACCESS_COMMAND
if(ACCESS_MARINE_SENIOR in card.access)
return ARES_ACCESS_SENIOR
if(ACCESS_WY_GENERAL in card.access)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/doors/brig_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
var/obj/item/card/id/id_card = human.get_idcard()

if (id_card)
if ((id_card.paygrade in GLOB.co_paygrades) || (id_card.paygrade in GLOB.highcom_paygrades) || (id_card.paygrade == "PvI"))
if ((id_card.paygrade in GLOB.co_paygrades) || ((id_card.paygrade in GLOB.platco_paygrades)) || (id_card.paygrade in GLOB.highcom_paygrades) || (id_card.paygrade == "PvI"))
return TRUE

return FALSE
Expand Down
Loading

0 comments on commit c531c79

Please sign in to comment.