economy

Vars | |
bank_accounts_by_id | List of normal (no department ones) accounts' identifiers with associated datum accounts, for big O performance. A list of sole account datums can be obtained with flatten_list(), another variable would be redundant rn. |
---|---|
bounty_modifier | The modifier multiplied to the value of bounties paid out. |
civ_bounty_tracker | How many civilain bounties have been completed so far this shift? Affects civilian budget payout values. |
earning_report | Contains the message to send to newscasters about price inflation and earnings, updated on price_update() |
export_total | Total value of exported materials. |
import_total | Total value of imported goods. |
inflation_value | A var that displays the result of inflation_value for easier debugging and tracking. |
mail_blocked | Mail Holiday: AKA does mail arrive today? Always blocked on Sundays. |
mail_waiting | Number of mail items generated. |
pack_price_modifier | The modifier multiplied to the value of cargo pack prices. |
station_target | A var that tracks how much money is expected to be on station at a given time. If less than station_total prices go up in vendors. |
station_target_buffer | A passively increasing buffer to help alliviate inflation later into the shift, but to a lesser degree. |
station_total | A var that collects the total amount of credits owned in player accounts on station, reset and recounted on fire() |
techweb_bounty | Departmental cash provided to science when a node is researched in specific configs. |
Procs | |
departmental_payouts | Departmental income payments are kept static and linear for every department, and paid out once every 5 minutes, as determined by MAX_GRANT_DPT. Iterates over every department account for the same payment. |
get_dep_account | Handy proc for obtaining a department's bank account, given the department ID, AKA the define assigned for what department they're under. |
inflation_value | Proc that returns a value meant to shift inflation values in vendors, based on how much money exists on the station. |
price_update | Updates the prices of all station vendors with the inflation_value, increasing/decreasing costs across the station, and alerts the crew. |
Var Details
bank_accounts_by_id

List of normal (no department ones) accounts' identifiers with associated datum accounts, for big O performance. A list of sole account datums can be obtained with flatten_list(), another variable would be redundant rn.
bounty_modifier

The modifier multiplied to the value of bounties paid out.
civ_bounty_tracker

How many civilain bounties have been completed so far this shift? Affects civilian budget payout values.
earning_report

Contains the message to send to newscasters about price inflation and earnings, updated on price_update()
export_total

Total value of exported materials.
import_total

Total value of imported goods.
inflation_value

A var that displays the result of inflation_value for easier debugging and tracking.
mail_blocked

Mail Holiday: AKA does mail arrive today? Always blocked on Sundays.
mail_waiting

Number of mail items generated.
pack_price_modifier

The modifier multiplied to the value of cargo pack prices.
station_target

A var that tracks how much money is expected to be on station at a given time. If less than station_total prices go up in vendors.
station_target_buffer

A passively increasing buffer to help alliviate inflation later into the shift, but to a lesser degree.
station_total

A var that collects the total amount of credits owned in player accounts on station, reset and recounted on fire()
techweb_bounty

Departmental cash provided to science when a node is researched in specific configs.
Proc Details
departmental_payouts
Departmental income payments are kept static and linear for every department, and paid out once every 5 minutes, as determined by MAX_GRANT_DPT. Iterates over every department account for the same payment.
get_dep_account
Handy proc for obtaining a department's bank account, given the department ID, AKA the define assigned for what department they're under.
inflation_value
Proc that returns a value meant to shift inflation values in vendors, based on how much money exists on the station.
If crew are somehow aquiring far too much money, this value will dynamically cause vendables across the station to skyrocket in price until some money is spent. Additionally, civilain bounties will cost less, and cargo goodies will increase in price as well. The goal here is that if you want to spend money, you'll have to get it, and the most efficient method is typically from other players.
price_update
Updates the prices of all station vendors with the inflation_value, increasing/decreasing costs across the station, and alerts the crew.
Iterates over the machines list for vending machines, resets their regular and premium product prices (Not contraband), and sends a message to the newscaster network.