economy
Vars | |
audit_log | A list of strings containing a basic transaction history of purchases on the station. Added to any time when player accounts purchase something. |
---|---|
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. |
dep_cards | List of the departmental budget cards in existance. |
department_accounts_by_id | Departmental account datums by ID |
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. |
full_ancap | Enables extra money charges for things that normally would be free, such as sleepers/cryo/beepsky. Take care when enabling, as players will NOT respond well if the economy is set up for low cash flows. |
government_budget | Govt Bux, for the government supply console |
import_total | Total value of imported goods. |
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. |
roundstart_budget_amt | How many credits to give to each department at round start. |
roundstart_paychecks | How many paychecks should players start out the round with? |
station_master | The station's master account, used for splitting up funds and pooling money. |
station_total | A var that collects the total amount of credits owned in player accounts on station, reset and recounted on fire() |
Procs | |
payday | The first fire at roundstart is discarded. |
price_update | Updates the prices of all station vendors. |
spawn_cash_for_amount | Spawns a given amount of money in optimal stacks at the given location. |
track_purchase | Proc that adds a set of strings and ints to the audit log, tracked by the economy SS. |
update_mail | We don't use transfering, because we already know there's enough money. |
Var Details
audit_log
A list of strings containing a basic transaction history of purchases on the station. Added to any time when player accounts purchase something.
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.
dep_cards
List of the departmental budget cards in existance.
department_accounts_by_id
Departmental account datums by ID
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.
full_ancap
Enables extra money charges for things that normally would be free, such as sleepers/cryo/beepsky. Take care when enabling, as players will NOT respond well if the economy is set up for low cash flows.
government_budget
Govt Bux, for the government supply console
import_total
Total value of imported goods.
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.
roundstart_budget_amt
How many credits to give to each department at round start.
roundstart_paychecks
How many paychecks should players start out the round with?
station_master
The station's master account, used for splitting up funds and pooling money.
station_total
A var that collects the total amount of credits owned in player accounts on station, reset and recounted on fire()
Proc Details
payday
The first fire at roundstart is discarded.
price_update
Updates the prices of all station vendors.
Iterates over the machines list for vending machines, resets their regular and premium product prices (Not contraband).
spawn_cash_for_amount
Spawns a given amount of money in optimal stacks at the given location.
track_purchase
Proc that adds a set of strings and ints to the audit log, tracked by the economy SS.
- account: The bank account of the person purchasing the item.
- price_to_use: The cost of the purchase made for this transaction.
- vendor: The object or structure medium that is charging the user. For Vending machines that's the machine, for payment component that's the parent, cargo that's the crate, etc.
update_mail
We don't use transfering, because we already know there's enough money.