mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
[no gbp] orm correctly displays borg id data (#73808)
## About The Pull Request this is a minor thing i forgot to add in my last PR, now the borg's name will be displayed as well when interacting with the ORM rather than displaying "no id detected" ## Why It's Good For The Game ## Changelog 🆑 qol: Borgs are now acknowledged by the orm /🆑
This commit is contained in:
@@ -252,6 +252,13 @@
|
||||
"name" = card.registered_account.account_holder,
|
||||
"cash" = card.registered_account.account_balance,
|
||||
)
|
||||
|
||||
else if(issilicon(user))
|
||||
var/mob/living/silicon/silicon_player = user
|
||||
data["user"] = list(
|
||||
"name" = silicon_player.name,
|
||||
"cash" = "No valid account",
|
||||
)
|
||||
return data
|
||||
|
||||
/obj/machinery/mineral/ore_redemption/ui_static_data(mob/user)
|
||||
|
||||
@@ -32,20 +32,17 @@ export const OreRedemptionMachine = (props, context) => {
|
||||
/>
|
||||
</Stack.Item>
|
||||
<Stack.Item>
|
||||
{(!user && 'No user Detected') || (
|
||||
<LabeledList>
|
||||
<LabeledList.Item label="Name">
|
||||
{user.name || 'No name detected'}
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Balance">
|
||||
{user.cash + ' cr' || 'No balance detected'}
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
)}
|
||||
<LabeledList>
|
||||
<LabeledList.Item label="Name">
|
||||
{user?.name || 'No Name Detected'}
|
||||
</LabeledList.Item>
|
||||
<LabeledList.Item label="Balance">
|
||||
{user?.cash || 'No Balance Detected'}
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
</Stack.Item>
|
||||
<Stack.Item>
|
||||
<Button
|
||||
mt={0.5}
|
||||
textAlign="center"
|
||||
color={compact ? 'red' : 'green'}
|
||||
content="Compact"
|
||||
|
||||
Reference in New Issue
Block a user