mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Ports Mail From Kiwi Take 2: Arconomy Class Mail (#5172)
* Ports Mail From Kiwi Take 2: Arconomy Class Mail * Update wardrobes.dm Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
co-authored by
ArcaneMusic
Gandalf
parent
78ba8f1f7c
commit
c418b139be
@@ -42,6 +42,13 @@ SUBSYSTEM_DEF(economy)
|
||||
var/market_crashing = FALSE
|
||||
var/fire_counter_for_paycheck = 0 //SKYRAT EDIT ADDITION
|
||||
|
||||
/// 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)
|
||||
@@ -51,6 +58,7 @@ SUBSYSTEM_DEF(economy)
|
||||
/datum/controller/subsystem/economy/fire(resumed = 0)
|
||||
fire_counter_for_paycheck++ //SKYRAT EDIT ADDITION
|
||||
var/temporary_total = 0
|
||||
var/delta_time = wait * 0.2
|
||||
departmental_payouts()
|
||||
station_total = 0
|
||||
station_target_buffer += STATION_TARGET_BUFFER
|
||||
@@ -71,6 +79,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