Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
feat: Exploitable Records TGUI in uplink
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jun 27, 2023
1 parent 78608b5 commit 1101c1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/datums/datacore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ GLOBAL_VAR_INIT(record_id_num, 1001)
G.fields["photo-west"] = "data:image/png;base64,[icon2base64(icon(G.fields["photo"], dir = WEST))]"
if(H.gen_record && !jobban_isbanned(H, "Records"))
G.fields["notes"] = H.gen_record
G.fields["exploit_record"] = H.exploit_record
else
G.fields["notes"] = "No notes found."
G.fields["exploit_record"] = "No notes found."
general += G

//Medical Record
Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/items/devices/uplinks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ GLOBAL_LIST_EMPTY(world_uplinks)
"age" = html_encode(L.fields["age"]),
"species" = html_encode(L.fields["species"]),
"rank" = html_encode(L.fields["rank"]),
"fingerprint" = html_encode(L.fields["fingerprint"])
"fingerprint" = html_encode(L.fields["fingerprint"]),
"exploit_record" = html_encode(L.fields["exploit_record"]),
))

data["exploitable"] = exploitable
Expand Down
3 changes: 3 additions & 0 deletions tgui/packages/tgui/interfaces/Uplink.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ const ExploitableInfoPage = (_properties, context) => {
<Box>Sex: {selectedRecord.sex}</Box>
<Box>Species: {selectedRecord.species}</Box>
</Section>
<Section title={"Exploitable Records"}>
<Box prewrap>{selectedRecord.exploit_record}</Box>
</Section>
</Flex.Item>
</Flex>
</Section>
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit 1101c1d

Please sign in to comment.