Hide unobtainable ckey-locked loadout items again (#3814)

## About The Pull Request

I unhid ckey-locked and donor-locked items in #3747, but it's been
expressed that people don't want to see items they'll never be able to
obtain, so this re-hides them (while still keeping donor-locked ones
visible, so people can see what they'll be getting if they donate)

## Why It's Good For The Game

Hide items you'll never be able to use

## Proof Of Testing

Tested both with and without having a ckey-locked item for my ckey

## Changelog
🆑
qol: ckey-locked loadout items that you can't obtain are hidden again
/🆑
This commit is contained in:
Roxy
2025-05-13 14:55:55 -04:00
committed by GitHub
parent 8e757f93d5
commit a8ac9abc8d
5 changed files with 19 additions and 1 deletions
+1
View File
@@ -347,6 +347,7 @@ GLOBAL_LIST_INIT(all_loadout_categories, init_loadout_categories())
formatted_item["reskins"] = get_reskin_options()
formatted_item["icon"] = ui_icon
formatted_item["icon_state"] = ui_icon_state
formatted_item["ckey_whitelist"] = ckeywhitelist // BUBBER EDIT ADDITION: Filter ckey-locked items
return formatted_item
+1
View File
@@ -113,6 +113,7 @@
/datum/preference_middleware/loadout/get_ui_static_data(mob/user)
var/list/data = list()
data["loadout_preview_view"] = preferences.character_preview_view.assigned_map
data["ckey"] = user.ckey // BUBBER EDIT ADDITION: Filter ckey-locked items
return data
/datum/preference_middleware/loadout/get_constant_data()