Skip to content

Commit

Permalink
[MODULAR] Fixes -some- of the loadout related runtimes (#637)
Browse files Browse the repository at this point in the history
Fixes -some- of the loadout related runtimes

Co-authored-by: Bloop <[email protected]>
  • Loading branch information
Steals-The-PRs and vinylspiders authored Nov 15, 2023
1 parent 15d171c commit ce05b8b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ce05b8b

Please sign in to comment.