Skip to content

Commit

Permalink
Update headset.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamerdk committed May 27, 2024
1 parent 7c476f8 commit 43de18c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@
var/obj/item/card/id/id_card = wearer.wear_id?.GetID()
if(!istype(id_card))
return
if(!(id_card.rank in list(JOB_SO, JOB_XO, JOB_SQUAD_LEADER)))
to_chat(wearer, SPAN_WARNING("Only Staff Officers, Executive Officers and Squad Leaders are permitted to give medal recommendations!"))
var/paygrade = wearer.get_paygrade()
var/last_number = text2num(copytext(paygrade, length(paygrade), length(paygrade)+1))
if(!(findtext(paygrade, "O") || last_number >= 4))
to_chat(wearer, SPAN_WARNING("Only officers or NCO's (ME4+) can recommend medals!"))
return
if(add_medal_recommendation(usr))
to_chat(usr, SPAN_NOTICE("Recommendation successfully submitted."))
Expand Down

0 comments on commit 43de18c

Please sign in to comment.