mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-19 10:06:56 +01:00
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 commitad0edcfa1bandf27ffe64f0--------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user