From 9c0f8bcb6fe2bcfdba608902ecbb466254ecfe59 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+Arthri@users.noreply.github.com> Date: Sun, 17 Dec 2023 00:15:01 +0800 Subject: [PATCH] Fix patches' placeholder names missing units (#23538) * Fix patch no longer printing units in default name * Pills/patches show transfer the contained amount * Hide pill/patch transfer rates * Revert "Hide pill/patch transfer rates" This reverts commit ad0edcfa1b8b2456198a881fcc29c3a46eacd39e and f27ffe64f03d5aff3e7a5910929df1e56240e456 --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com> --- code/modules/reagents/chemistry/machinery/chem_master.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index c7b860841ee..46b868a7b48 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -359,9 +359,9 @@ var/medicine_name = patchname var/count = patchamount - if(length(medicine_name) <= 0 || isnull(medicine_name)) - medicine_name = reagents.get_master_reagent_name() var/amount_per_patch = clamp(reagents.total_volume / count, 0, MAX_UNITS_PER_PATCH) + if(length(medicine_name) <= 0 || isnull(medicine_name)) + medicine_name = "[reagents.get_master_reagent_name()] ([amount_per_patch]u)" var/is_medical_patch = chemical_safety_check(reagents) for(var/i in 1 to count) if(reagents.total_volume <= 0)