[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>
This commit is contained in:
SkyratBot
2022-10-16 12:54:36 +01:00
committed by GitHub
co-authored by GoblinBackwards
parent bdcffe0899
commit 6ff42bcc09
+1 -1
View File
@@ -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