spy_bounty_handler
Spy bounty handler
Singleton datum that handles determining active bounties for spies.
Vars | |
all_claimed_bounty_types | Assoc list of items stolen in the past to how many times they have been stolen Sometimes item typepaths, sometimes REFs, in general just strings that represent stolen items |
---|---|
base_bounties_to_give | Assoc list that dictates how much of each bounty difficulty to give out at once. Modified by the number of times we have refreshed bounties. |
bounties | Assoc list of all active bounties. |
bounty_types | Assoc list of all possible bounties for each difficulty, weighted. This is static, no bounty types are removed from this list. |
claimed_bounties_from_last_pool | List of all items stolen in the last pool of bounties. Same as above - strings that represent stolen items. |
num_attempts_override | Override for the number of attempts to make a bounty. |
num_refreshes | Number of times we have refreshed bounties |
possible_uplink_items | Assoc list of all uplink items possible to be given as bounties for each difficulty. This is not static, as bounties are complete uplink items will be removed from this list. |
refresh_time | Timer between when all bounties are refreshed. |
refresh_timer | timerID of the active refresh timer. |
Procs | |
force_refresh | Forces a refresh of the bounty list. Counts towards [num_refreshes]. |
get_all_bounties | Helper that returns a list of all active bounties in a single list, regardless of difficulty. |
refresh_bounty_list | Refreshes all active bounties for each difficulty, no matter if they were complete or not. Then recursively calls itself via a timer. |
Var Details
all_claimed_bounty_types
Assoc list of items stolen in the past to how many times they have been stolen Sometimes item typepaths, sometimes REFs, in general just strings that represent stolen items
base_bounties_to_give
Assoc list that dictates how much of each bounty difficulty to give out at once. Modified by the number of times we have refreshed bounties.
bounties
Assoc list of all active bounties.
bounty_types
Assoc list of all possible bounties for each difficulty, weighted. This is static, no bounty types are removed from this list.
claimed_bounties_from_last_pool
List of all items stolen in the last pool of bounties. Same as above - strings that represent stolen items.
num_attempts_override
Override for the number of attempts to make a bounty.
num_refreshes
Number of times we have refreshed bounties
possible_uplink_items
Assoc list of all uplink items possible to be given as bounties for each difficulty. This is not static, as bounties are complete uplink items will be removed from this list.
refresh_time
Timer between when all bounties are refreshed.
refresh_timer
timerID of the active refresh timer.
Proc Details
force_refresh
Forces a refresh of the bounty list. Counts towards [num_refreshes].
get_all_bounties
Helper that returns a list of all active bounties in a single list, regardless of difficulty.
refresh_bounty_list
Refreshes all active bounties for each difficulty, no matter if they were complete or not. Then recursively calls itself via a timer.