This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) | |
| { | |
| const HEADER = `\n\`HAPERTURE SCIENCE :: SYS KIT\`\n\n`; | |
| const COLUMNS = ['name','ready','cooldown','loaded']; | |
| const availableScripts = "sys.expose_balance,sys.expose_access_log,sys.expose_upgrade_log,sys.expose_upgrades,sys.xfer_upgrade_from,sys.xfer_gc_from,sys.write_log".split(",")//#hs.scripts.sys() | |
| const availableUpgrades = #hs.sys.upgrades({full:true}) | |
| const reload = (args && args.reload == true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) // t:#s.unknown_prttl_m9n18b.extern_6yuwlj | |
| { | |
| const HEADER = `\n\`HAPERTURE SCIENCE [T3 INFRA] :: BREACH\`\n\n`; | |
| if (!args || !args.t) return HEADER + 'Error: Missing target\n\nbreach {t:#s.unknown_prttl_m9n18b.extern_6yuwlj}\n' | |
| const lib = #fs.scripts.lib(); | |
| const apl = #fs.aperture.lib(); | |
| let resultArray = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) | |
| { | |
| // PRELOAD CONSTANTS | |
| const HEADER = `\n\`HAPERTURE SCIENCE :: KEYRING\`\n\n`; | |
| const USAGE = 'Optional arguments {tier:1|2|3}\n\n'; | |
| const COLUMNS = ['t','k3y','qty','token','cost','indices']; | |
| let lib = #fs.scripts.lib() | |
| let tier = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function acct_nt() { | |
| let recalculate_transactions = true | |
| if (!transactions) { | |
| let count = 0; | |
| // research as shown a max of 16 transactions are used, and the initial offset is 4 ?? | |
| transactions = #hs.accts.transactions({ count: 20 }).map(txn => { | |
| txn.i = count++; | |
| txn.time = to_game_time_int(txn.time); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function shortenString(inputArray) { | |
| // Function to check if a substring is unique across all strings in the array | |
| function isUnique(substring, index, arr) { | |
| for (var i = 0; i < arr.length; i++) { | |
| if (i !== index && arr[i].includes(substring)) { | |
| return false; | |
| } | |
| } | |
| return true; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // [1] ADD ABOVE if (_accept_key) { ... | |
| // if we have options to choose from, use a fast key to quick select the option | |
| var _last_page = page_number - 1; | |
| var _option_count = array_length(option); | |
| var _has_options = bool(_option_count > 0); | |
| var _fast_key = 0; | |
| if (page == _last_page and _has_options) { | |
NewerOlder