bank_account ![code/modules/economy/account.dm 11](git.png)
Vars | |
transaction_history | List with a transaction history for NT pay app |
---|---|
Procs | |
_adjust_money | Performs the math component of adjusting a bank account balance. Arguments: |
add_log_to_history | Add log to transactions history. Deletes the oldest log when the history has more than 20 entries. Main format: Category: Reason in Reason. Example: Vending: Machinery Using Arguments: |
bounty_num | Returns the required item count, or required chemical units required to submit a bounty. |
bounty_text | Returns a string with the civilian bounty's description on it. |
bounty_value | Produces the value of the account's civilian bounty reward, if able. |
reset_bounty | Performs house-cleaning on variables when a civilian bounty is replaced, or, when a bounty is claimed. |
setup_unique_account_id | Proc guarantees the account_id possesses a unique number.
If it doesn't, it tries to find a unique alternative.
It then adds it to the SSeconomy.bank_accounts_by_id global list. |
Var Details
transaction_history ![code/modules/economy/account.dm 25](git.png)
List with a transaction history for NT pay app
Proc Details
_adjust_money
Performs the math component of adjusting a bank account balance. Arguments:
- amount - the quantity of credits that will be written off if the value is negative, or added if it is positive.
add_log_to_history
Add log to transactions history. Deletes the oldest log when the history has more than 20 entries. Main format: Category: Reason in Reason. Example: Vending: Machinery Using Arguments:
- adjusted_money - How much was added, negative values removing cash.
- reason - The reason of interact with balance, for example, "Bought chips" or "Payday".
bounty_num
Returns the required item count, or required chemical units required to submit a bounty.
bounty_text
Returns a string with the civilian bounty's description on it.
bounty_value
Produces the value of the account's civilian bounty reward, if able.
reset_bounty
Performs house-cleaning on variables when a civilian bounty is replaced, or, when a bounty is claimed.
setup_unique_account_id
Proc guarantees the account_id possesses a unique number.
If it doesn't, it tries to find a unique alternative.
It then adds it to the SSeconomy.bank_accounts_by_id
global list.