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 ad0edcfa1b and f27ffe64f0

---------

Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
This commit is contained in:
Arthri
2023-12-16 16:15:01 +00:00
committed by GitHub
co-authored by Arthri
parent 119b10d904
commit 9c0f8bcb6f
@@ -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)