From 6ff42bcc093da3e99ec6bf2c517a07493cc5b491 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 16 Oct 2022 13:54:36 +0200 Subject: [PATCH] [MIRROR] Fixes runtime when exporting bounty cubes [MDB IGNORE] (#16891) * Fixes runtime when exporting bounty cubes (#70535) * Fixes runtime caused by trying to capitalize an object instead of its name, by making it now capitalize the name instead. * Fixes runtime when exporting bounty cubes Co-authored-by: GoblinBackwards <22856555+GoblinBackwards@users.noreply.github.com> --- code/datums/components/pricetag.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/pricetag.dm b/code/datums/components/pricetag.dm index fe1ac57323f..b034ad87c5e 100644 --- a/code/datums/components/pricetag.dm +++ b/code/datums/components/pricetag.dm @@ -90,7 +90,7 @@ // And of course, the cut is removed from what cargo gets. (But not below zero, just in case) overall_item_price = max(0, overall_item_price - payee_cut) - payee.adjust_money(payee_cut, "Pricetag: [capitalize(source)] Sale") + payee.adjust_money(payee_cut, "Pricetag: [capitalize(format_text(source.name))] Sale") payee.bank_card_talk("Sale of [source] recorded. [payee_cut] credits added to account.") // Update the report with the modified final price