Cargo Price Inflation (#21258)

Refactors cargo pricing code to properly adjust prices based on sector
and category (earlier it would multiply the price by each category's
multiplier, leading to prices above intended price point)

---------

Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
This commit is contained in:
Ben
2025-09-15 12:11:46 +00:00
committed by GitHub
co-authored by Ben10083
parent d8076acaa6
commit 074e21e16c
3 changed files with 68 additions and 1 deletions
+1
View File
@@ -102,6 +102,7 @@ SUBSYSTEM_DEF(cargo)
/datum/controller/subsystem/cargo/proc/load_cargo_suppliers()
for(var/singleton/cargo_supplier/S as anything in (GET_SINGLETON_SUBTYPE_LIST(/singleton/cargo_supplier)))
log_subsystem_cargo("Loading supplier '[S.name]', with short name '[S.short_name]'.")
S.price_modifier = S.get_total_price_coefficient()
SScargo.cargo_suppliers[S.short_name] = S
/datum/controller/subsystem/cargo/proc/load_cargo_items()