/tg/ Station 13 - Modules - TypesVar Details - Proc Details

economy

Vars

audit_logA 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_idList 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_modifierThe modifier multiplied to the value of bounties paid out.
budget_poolHow many credits does the in-game economy have in circulation at round start? Divided up by 6 of the 7 department budgets evenly, where cargo starts with nothing.
cached_processingList used to track partially completed processing steps Allows for proper yielding
civ_bounty_trackerHow many civilain bounties have been completed so far this shift? Affects civilian budget payout values.
dep_cardsList of the departmental budget cards in existance.
earning_reportContains the message to send to newscasters about price inflation and earnings, updated on price_update()
full_ancapEnables 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.
inflation_valueA var that displays the result of inflation_value for easier debugging and tracking.
mail_blockedMail Holiday: AKA does mail arrive today? Always blocked on Sundays.
mail_waitingNumber of mail items generated.
pack_price_modifierThe modifier multiplied to the value of cargo pack prices.
processing_partTracks what bit of processing we're on, so we can resume post yield in the right place
roundstart_paychecksHow many paychecks should players start out the round with?
station_targetA 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_bufferA passively increasing buffer to help alliviate inflation later into the shift, but to a lesser degree.
station_totalA var that collects the total amount of credits owned in player accounts on station, reset and recounted on fire()
techweb_bountyDepartmental cash provided to science when a node is researched in specific configs.
temporary_totalTracks a temporary sum of all money in the system We need this on the subsystem because of yielding and such

Procs

departmental_payoutsDepartmental 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_accountHandy proc for obtaining a department's bank account, given the department ID, AKA the define assigned for what department they're under.
issue_paydaysIssues all our bank-accounts paydays, and gets an idea of how much money is in circulation
price_updateUpdates the the inflation_value, effecting newscaster alerts and the mail system.
track_purchaseProc that adds a set of strings and ints to the audit log, tracked by the economy SS.
update_vending_pricesIterates over the machines list for vending machines, resets their regular and premium product prices (Not contraband), and sends a message to the newscaster network.

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.

budget_pool

How many credits does the in-game economy have in circulation at round start? Divided up by 6 of the 7 department budgets evenly, where cargo starts with nothing.

cached_processing

List used to track partially completed processing steps Allows for proper yielding

civ_bounty_tracker

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

dep_cards

List of the departmental budget cards in existance.

earning_report

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

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.

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.

processing_part

Tracks what bit of processing we're on, so we can resume post yield in the right place

roundstart_paychecks

How many paychecks should players start out the round with?

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.

temporary_total

Tracks a temporary sum of all money in the system We need this on the subsystem because of yielding and such

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.

issue_paydays

Issues all our bank-accounts paydays, and gets an idea of how much money is in circulation

price_update

Updates the the inflation_value, effecting newscaster alerts and the mail system.

track_purchase

Proc that adds a set of strings and ints to the audit log, tracked by the economy SS.

update_vending_prices

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.