From aac5fb011bd2e70aff97acf7da2248bceebaf483 Mon Sep 17 00:00:00 2001
From: ArchBTW <230859540+glue0000@users.noreply.github.com>
Date: Thu, 23 Oct 2025 22:55:21 +0000
Subject: [PATCH] (2) Changes Wallet Priority: Standard ID cards now go in
order properly: from left to right (#93575)
## About The Pull Request
[previous PR](https://github.com/tgstation/tgstation/pull/93290)
now command ID (silver & gold IDs) priority remain unchanged
example 1
before
^ if you were to remove engi id from the wallet above, it will show
robotics id (instead of secoff)
^ before this PR, engi IDs even took priority over wardens
after
example 2
before
after
example 3
before the pr, a geneticist id would take wallet priority over a chemist
id (for instance)
priority used to tally up how many 'command/secure access' areas on the
ID, rather than simply sort order.
for reference, these were the areas:
`ACCESS_AI_UPLOAD, ACCESS_ALL_PERSONAL_LOCKERS, ACCESS_ARMORY,
ACCESS_CHANGE_IDS, ACCESS_COMMAND, ACCESS_EVA, ACCESS_KEYCARD_AUTH,
ACCESS_MINISAT, ACCESS_RC_ANNOUNCE, ACCESS_TCOMMS, ACCESS_TECH_STORAGE,
ACCESS_TELEPORTER, ACCESS_VAULT`
ACCESS_FLAG_COMMAND -> ACCESS_FLAG_PRV_COMMAND
so now it only checks if you have specifically head of staff access
instead
## Why It's Good For The Game
- player friendly
- previously lead to wallet tediousness and unpredictability
- make the core functionality and purpose of wallets simple and easy to
understand
- the previous functionality was more unpredictable and confusing when
considering low pop granting extra access to IDs
## Changelog
:cl: ArchBTW
qol: Changes Wallet Priority: Standard ID cards now go in order
properly: from left to right
/:cl:
---
code/game/objects/items/storage/wallets.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/game/objects/items/storage/wallets.dm b/code/game/objects/items/storage/wallets.dm
index 8ab4b176ee1..51bb6b6e0e1 100644
--- a/code/game/objects/items/storage/wallets.dm
+++ b/code/game/objects/items/storage/wallets.dm
@@ -35,7 +35,7 @@
is_magnetic_found = TRUE
if(!is_magnetic_found)
- var/card_tally = SSid_access.tally_access(id_card, ACCESS_FLAG_COMMAND)
+ var/card_tally = SSid_access.tally_access(id_card, ACCESS_FLAG_PRV_COMMAND)
if(card_tally > winning_tally)
winning_tally = card_tally
front_id = id_card