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 43de18c commit 163226f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
var/obj/item/card/id/id_card = wearer.wear_id?.GetID()
if(!istype(id_card))
return
var/paygrade = wearer.get_paygrade()
var/paygrade = get_paygrade_id_by_name(wearer.get_paygrade(FALSE))
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!"))
Expand Down

0 comments on commit 163226f

Please sign in to comment.