mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[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:
co-authored by
GoblinBackwards
parent
bdcffe0899
commit
6ff42bcc09
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user