Improves the ore silo UI (#92460)

## About The Pull Request

Improves the ore silo UI, continuing
https://github.com/tgstation/tgstation/pull/91142

Before:

<img width="760" height="336" alt="image"
src="https://github.com/user-attachments/assets/06c2f628-ea05-49be-88ed-9947ffc55254"
/>

After:

<img width="626" height="604" alt="image"
src="https://github.com/user-attachments/assets/d6a501be-425f-44ba-b75a-c238e20b06fe"
/>

All sources of silo material withdrawal are now consistent with naming
to get properly color coded, which helps with looking for stuff.

## Why It's Good For The Game

Better UI readability, more consistent logs

## Changelog


🆑
qol: Color coded and consistent material silo logs
/🆑

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
mcbalaam
2025-09-02 18:55:12 -07:00
committed by GitHub
co-authored by SyncIt21
parent cc0fec05d6
commit ab1136909c
11 changed files with 183 additions and 96 deletions
+1 -1
View File
@@ -344,7 +344,7 @@
var/amount = round(min(text2num(params["sheets"]), 50, can_smelt_alloy(alloy)))
if(amount < 1) //no negative mats
return
materials.use_materials(alloy.materials, multiplier = amount, action = "released", name = "sheets", user_data = ID_DATA(usr))
materials.use_materials(alloy.materials, multiplier = amount, action = "withdrawn", name = "sheets", user_data = ID_DATA(usr))
var/output
if(ispath(alloy.build_path, /obj/item/stack/sheet))
output = new alloy.build_path(src, amount)
+2 -2
View File
@@ -144,14 +144,14 @@
/obj/machinery/ore_silo/proc/on_item_consumed(datum/component/material_container/container, obj/item/item_inserted, last_inserted_id, mats_consumed, amount_inserted, atom/context, alist/user_data)
SIGNAL_HANDLER
silo_log(context, "DEPOSIT", amount_inserted, item_inserted.name, mats_consumed, user_data)
silo_log(context, "DEPOSITED", amount_inserted, item_inserted.name, mats_consumed, user_data)
SEND_SIGNAL(context, COMSIG_SILO_ITEM_CONSUMED, container, item_inserted, last_inserted_id, mats_consumed, amount_inserted)
/obj/machinery/ore_silo/proc/log_sheets_ejected(datum/component/material_container/container, obj/item/stack/sheet/sheets, atom/context, alist/user_data)
SIGNAL_HANDLER
silo_log(context, "EJECT", -sheets.amount * SHEET_MATERIAL_AMOUNT, "[sheets.singular_name]", sheets.custom_materials, user_data)
silo_log(context, "WITHDRAWN", -sheets.amount * SHEET_MATERIAL_AMOUNT, "[sheets.name]", sheets.custom_materials, user_data)
/obj/machinery/ore_silo/screwdriver_act(mob/living/user, obj/item/tool)
. = ITEM_INTERACT_BLOCKING