Skip to content

Commit

Permalink
[FIX] Slimepeople can pick a bloodtype on agent IDs again (ParadiseSS…
Browse files Browse the repository at this point in the history
…13#27509)

* Fixes bloodtype picking for agent ID

* Oops

---------

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
  • Loading branch information
Adrer and adrermail@gmail.com authored Dec 3, 2024
1 parent a384234 commit a0c326c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/agent_id.dm
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
if(option == "Primary")
blood_type = registered_human.dna.blood_type
else if(new_type)
if(!(blood_type in possible_blood_types))
if(!(new_type in possible_blood_types))
return
blood_type = new_type
to_chat(registered_human, "ID blood type has been changed to [blood_type].")
Expand Down
3 changes: 3 additions & 0 deletions tgui/packages/tgui/interfaces/AgentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ export const AgentCardInfo = (props, context) => {
/>
</Stack.Item>
))}
<Stack.Item grow>
<Button fluid icon="file-signature" onClick={() => act('change_blood_type', { option: 'Primary' })} />
</Stack.Item>
</Stack>
</LabeledList.Item>
<InfoInput
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit a0c326c

Please sign in to comment.