mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user