From 43de18c3fa2d728da24d5ebdd2370a8feeec0c8c Mon Sep 17 00:00:00 2001 From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com> Date: Mon, 27 May 2024 23:05:52 +0200 Subject: [PATCH] Update headset.dm --- code/game/objects/items/devices/radio/headset.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm index 00f0ad16220c..22cbd3206898 100644 --- a/code/game/objects/items/devices/radio/headset.dm +++ b/code/game/objects/items/devices/radio/headset.dm @@ -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."))