Cleanup supply packs contents (#89342)

## About The Pull Request

fix image display in `NT IRN` PDA app


<details>

<summary>
Images present!
</summary>


![image](https://github.com/user-attachments/assets/b9a5e733-9bc8-498e-bdaa-3531e0b142e5)
</details>





## Why It's Good For The Game

Bug fixes good

## Changelog

🆑
fix: fix image display in `NT IRN` PDA app for preview and contents
/🆑
This commit is contained in:
Gaxeer
2025-02-06 00:53:22 +02:00
committed by GitHub
parent 45e8c53cbe
commit f16b3279ca
5 changed files with 32 additions and 26 deletions
@@ -94,13 +94,18 @@
)
if((P.hidden && (P.contraband && !contraband) || (P.special && !P.special_enabled) || P.drop_pod_only))
continue
var/obj/item/first_item = length(P.contains) > 0 ? P.contains[1] : null
data["supplies"][P.group]["packs"] += list(list(
"name" = P.name,
"cost" = P.get_cost(),
"id" = pack,
"desc" = P.desc || P.name, // If there is a description, use it. Otherwise use the pack's name.
"first_item_icon" = first_item?.icon,
"first_item_icon_state" = first_item?.icon_state,
"goody" = P.goody,
"access" = P.access
"access" = P.access,
"contains" = P.get_contents_ui_data(),
))
//Data regarding the User's capability to buy things.