mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
Ports Mail From Kiwi Take 2: Arconomy Class Mail (#58146)
Co-authored-by: tralezab <spamqetuo2@gmail.com> Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
@@ -41,6 +41,13 @@ SUBSYSTEM_DEF(economy)
|
||||
var/pack_price_modifier = 1
|
||||
var/market_crashing = FALSE
|
||||
|
||||
/// Total value of exported materials.
|
||||
var/export_total = 0
|
||||
/// Total value of imported goods.
|
||||
var/import_total = 0
|
||||
/// Number of mail items generated.
|
||||
var/mail_waiting = 0
|
||||
|
||||
/datum/controller/subsystem/economy/Initialize(timeofday)
|
||||
var/budget_to_hand_out = round(budget_pool / department_accounts.len)
|
||||
for(var/A in department_accounts)
|
||||
@@ -49,6 +56,7 @@ SUBSYSTEM_DEF(economy)
|
||||
|
||||
/datum/controller/subsystem/economy/fire(resumed = 0)
|
||||
var/temporary_total = 0
|
||||
var/delta_time = wait * 0.2
|
||||
departmental_payouts()
|
||||
station_total = 0
|
||||
station_target_buffer += STATION_TARGET_BUFFER
|
||||
@@ -61,6 +69,8 @@ SUBSYSTEM_DEF(economy)
|
||||
station_target = max(round(temporary_total / max(bank_accounts_by_id.len * 2, 1)) + station_target_buffer, 1)
|
||||
if(!market_crashing)
|
||||
price_update()
|
||||
var/effective_mailcount = round(living_player_count()/(inflation_value - 0.5)) //More mail at low inflation, and vis versa.
|
||||
mail_waiting += clamp(effective_mailcount, 1, MAX_MAIL_PER_MINUTE * delta_time)
|
||||
|
||||
/**
|
||||
* Handy proc for obtaining a department's bank account, given the department ID, AKA the define assigned for what department they're under.
|
||||
|
||||
Reference in New Issue
Block a user