From ce05b8b94b07433afe874706223a66004e2a137a Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+AnArgonianLizardThatStealsPRs@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:38:49 +0300 Subject: [PATCH] [MODULAR] Fixes -some- of the loadout related runtimes (#637) Fixes -some- of the loadout related runtimes Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> --- .../modules/loadouts/loadout_ui/loadout_outfit_helpers.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modular_skyrat/modules/loadouts/loadout_ui/loadout_outfit_helpers.dm b/modular_skyrat/modules/loadouts/loadout_ui/loadout_outfit_helpers.dm index afbb54a68b2..86f0598c5f6 100644 --- a/modular_skyrat/modules/loadouts/loadout_ui/loadout_outfit_helpers.dm +++ b/modular_skyrat/modules/loadouts/loadout_ui/loadout_outfit_helpers.dm @@ -89,6 +89,8 @@ equipOutfit(equipped_outfit, visuals_only) for(var/datum/loadout_item/item as anything in loadout_datums) + if(item.restricted_roles && equipping_job && !(equipping_job.title in item.restricted_roles)) + continue item.on_equip_item(preference_source, src, visuals_only) if(preference_source?.read_preference(/datum/preference/toggle/green_pin))