mirror of
https://github.com/LewdLeah/Auto-Cards.git
synced 2025-07-05 21:20:26 -04:00
Update library.js
This commit is contained in:
parent
e446efdd0e
commit
f9261d1b3f
1 changed files with 6 additions and 7 deletions
|
@ -51,7 +51,7 @@ function AutoCards(inHook, inText, inStop) {
|
|||
// (true or false)
|
||||
|
||||
// Should player input actions (Do/Say/Story) be considered during title detection?
|
||||
const DEFAULT_DETECT_TITLES_FROM_INPUTS = true
|
||||
const DEFAULT_DETECT_TITLES_FROM_INPUTS = false
|
||||
// (true or false)
|
||||
|
||||
// How many (minimum) actions in the past does Auto-Cards look for named entities?
|
||||
|
@ -3669,7 +3669,7 @@ function AutoCards(inHook, inText, inStop) {
|
|||
// People terms
|
||||
"mom", "dad", "child", "grandmother", "grandfather", "ladies", "gentlemen", "gentleman", "slave",
|
||||
// Capitalizable pronoun thingys
|
||||
"his", "him", "he'd", "her", "she", "she'd", "you", "your", "yours", "you'd", "you've", "you'll", "yourself", "mine", "myself",
|
||||
"his", "him", "he'd", "her", "she", "she'd", "you", "your", "yours", "you'd", "you've", "you'll", "you're", "yourself", "mine", "myself", "this", "that",
|
||||
// Religious figures & deities
|
||||
"god", "jesus", "buddha", "allah", "christ",
|
||||
// Religious texts & concepts
|
||||
|
@ -3705,16 +3705,16 @@ function AutoCards(inHook, inText, inStop) {
|
|||
// idk
|
||||
"html", "javascript", "python", "java", "c++", "php", "bluetooth", "json", "sql", "word", "dna", "icbm", "npc", "usb", "rsvp", "omg", "brb", "lol", "rofl", "smh", "ttyl", "rubik", "adam", "t-shirt", "tshirt", "t shirt", "led", "leds", "laser", "lasers", "qna", "q&a", "vip", "human resource", "human resources", "llm", "llc", "ceo", "cfo", "coo", "office", "blt", "suv", "suvs", "ems", "emt", "cbt", "cpr", "ferris wheel", "toy", "pet", "plaything", "m o"
|
||||
],
|
||||
// Safe encodings of other undesirable titles which are implicitly banned from the card generation process
|
||||
// Unwanted values
|
||||
undesirables: () => [
|
||||
[102, 117, 99, 107], [115, 104, 105, 116], [99, 114, 97, 112], [103, 45, 115, 112, 111, 116], [98, 100, 115, 109], [116, 104, 99], [117, 116, 105], [100, 97, 109, 110]
|
||||
[343332, 451737, 323433, 377817], [436425, 356928, 363825, 444048], [323433, 428868, 310497, 413952], [350097, 66825, 436425, 413952, 406593, 444048], [316932, 330000, 436425, 392073], [444048, 356928, 323433], [451737, 444048, 363825], [330000, 310497, 392073, 399300]
|
||||
],
|
||||
delimiter: () => (
|
||||
"———————————————————————————"
|
||||
),
|
||||
// Source code location
|
||||
copy: () => [
|
||||
62, 32, 80, 108, 101, 97, 115, 101, 32, 118, 105, 115, 105, 116, 32, 109, 121, 32, 65, 73, 32, 68, 117, 110, 103, 101, 111, 110, 32, 112, 114, 111, 102, 105, 108, 101, 32, 64, 76, 101, 119, 100, 76, 101, 97, 104, 32, 97, 110, 100, 32, 114, 101, 97, 100, 32, 109, 121, 32, 98, 105, 111, 32, 102, 111, 114, 32, 115, 105, 109, 112, 108, 101, 32, 105, 110, 115, 116, 114, 117, 99, 116, 105, 111, 110, 115, 32, 111, 110, 32, 97, 100, 100, 105, 110, 103, 32, 65, 117, 116, 111, 45, 67, 97, 114, 100, 115, 32, 116, 111, 32, 121, 111, 117, 114, 32, 115, 99, 101, 110, 97, 114, 105, 111, 115, 33, 32, 10084, 65039, 10, 10, 104, 116, 116, 112, 115, 58, 47, 47, 112, 108, 97, 121, 46, 97, 105, 100, 117, 110, 103, 101, 111, 110, 46, 99, 111, 109, 47, 112, 114, 111, 102, 105, 108, 101, 47, 76, 101, 119, 100, 76, 101, 97, 104, 10, 10, 62, 32, 65, 117, 116, 111, 45, 67, 97, 114, 100, 115, 32, 118, 49, 46, 48, 46, 48, 32, 105, 115, 32, 97, 110, 32, 111, 112, 101, 110, 45, 115, 111, 117, 114, 99, 101, 32, 115, 99, 114, 105, 112, 116, 32, 102, 111, 114, 32, 65, 73, 32, 68, 117, 110, 103, 101, 111, 110, 32, 109, 97, 100, 101, 32, 98, 121, 32, 76, 101, 119, 100, 76, 101, 97, 104, 46, 32, 89, 111, 117, 32, 104, 97, 118, 101, 32, 109, 121, 32, 102, 117, 108, 108, 32, 112, 101, 114, 109, 105, 115, 115, 105, 111, 110, 32, 116, 111, 32, 117, 115, 101, 32, 65, 117, 116, 111, 45, 67, 97, 114, 100, 115, 32, 119, 105, 116, 104, 105, 110, 32, 121, 111, 117, 114, 32, 112, 101, 114, 115, 111, 110, 97, 108, 32, 111, 114, 32, 112, 117, 98, 108, 105, 115, 104, 101, 100, 32, 115, 99, 101, 110, 97, 114, 105, 111, 115, 33, 10, 62, 32, 89, 111, 117, 39, 114, 101, 32, 97, 108, 115, 111, 32, 119, 101, 108, 99, 111, 109, 101, 32, 116, 111, 32, 101, 100, 105, 116, 32, 116, 104, 101, 32, 65, 73, 32, 112, 114, 111, 109, 112, 116, 115, 32, 97, 110, 100, 32, 116, 105, 116, 108, 101, 32, 101, 120, 99, 108, 117, 115, 105, 111, 110, 115, 32, 112, 114, 111, 118, 105, 100, 101, 100, 32, 98, 101, 108, 111, 119, 46, 32, 73, 32, 115, 105, 110, 99, 101, 114, 101, 108, 121, 32, 104, 111, 112, 101, 32, 121, 111, 117, 32, 101, 110, 106, 111, 121, 32, 121, 111, 117, 114, 32, 97, 100, 118, 101, 110, 116, 117, 114, 101, 115, 33, 32, 55358, 56688, 10
|
||||
126852, 33792, 211200, 384912, 336633, 310497, 436425, 336633, 33792, 459492, 363825, 436425, 363825, 444048, 33792, 392073, 483153, 33792, 139425, 175857, 33792, 152592, 451737, 399300, 350097, 336633, 406593, 399300, 33792, 413952, 428868, 406593, 343332, 363825, 384912, 336633, 33792, 135168, 190608, 336633, 467313, 330000, 190608, 336633, 310497, 356928, 33792, 310497, 399300, 330000, 33792, 428868, 336633, 310497, 330000, 33792, 392073, 483153, 33792, 316932, 363825, 406593, 33792, 343332, 406593, 428868, 33792, 436425, 363825, 392073, 413952, 384912, 336633, 33792, 363825, 399300, 436425, 444048, 428868, 451737, 323433, 444048, 363825, 406593, 399300, 436425, 33792, 406593, 399300, 33792, 310497, 330000, 330000, 363825, 399300, 350097, 33792, 139425, 451737, 444048, 406593, 66825, 148137, 310497, 428868, 330000, 436425, 33792, 444048, 406593, 33792, 483153, 406593, 451737, 428868, 33792, 436425, 323433, 336633, 399300, 310497, 428868, 363825, 406593, 436425, 35937, 33792, 3355672848, 139592360193, 3300, 3300, 356928, 444048, 444048, 413952, 436425, 111012, 72897, 72897, 413952, 384912, 310497, 483153, 69828, 310497, 363825, 330000, 451737, 399300, 350097, 336633, 406593, 399300, 69828, 323433, 406593, 392073, 72897, 413952, 428868, 406593, 343332, 363825, 384912, 336633, 72897, 190608, 336633, 467313, 330000, 190608, 336633, 310497, 356928, 3300, 3300, 126852, 33792, 139425, 451737, 444048, 406593, 66825, 148137, 310497, 428868, 330000, 436425, 33792, 459492, 79233, 69828, 76032, 69828, 76032, 33792, 363825, 436425, 33792, 310497, 399300, 33792, 406593, 413952, 336633, 399300, 66825, 436425, 406593, 451737, 428868, 323433, 336633, 33792, 436425, 323433, 428868, 363825, 413952, 444048, 33792, 343332, 406593, 428868, 33792, 139425, 175857, 33792, 152592, 451737, 399300, 350097, 336633, 406593, 399300, 33792, 392073, 310497, 330000, 336633, 33792, 316932, 483153, 33792, 190608, 336633, 467313, 330000, 190608, 336633, 310497, 356928, 69828, 33792, 261393, 406593, 451737, 33792, 356928, 310497, 459492, 336633, 33792, 392073, 483153, 33792, 343332, 451737, 384912, 384912, 33792, 413952, 336633, 428868, 392073, 363825, 436425, 436425, 363825, 406593, 399300, 33792, 444048, 406593, 33792, 451737, 436425, 336633, 33792, 139425, 451737, 444048, 406593, 66825, 148137, 310497, 428868, 330000, 436425, 33792, 467313, 363825, 444048, 356928, 363825, 399300, 33792, 483153, 406593, 451737, 428868, 33792, 413952, 336633, 428868, 436425, 406593, 399300, 310497, 384912, 33792, 406593, 428868, 33792, 413952, 451737, 316932, 384912, 363825, 436425, 356928, 336633, 330000, 33792, 436425, 323433, 336633, 399300, 310497, 428868, 363825, 406593, 436425, 35937, 3300, 126852, 33792, 261393, 406593, 451737, 50193, 428868, 336633, 33792, 310497, 384912, 436425, 406593, 33792, 467313, 336633, 384912, 323433, 406593, 392073, 336633, 33792, 444048, 406593, 33792, 336633, 330000, 363825, 444048, 33792, 444048, 356928, 336633, 33792, 139425, 175857, 33792, 413952, 428868, 406593, 392073, 413952, 444048, 436425, 33792, 310497, 399300, 330000, 33792, 444048, 363825, 444048, 384912, 336633, 33792, 336633, 475200, 323433, 384912, 451737, 436425, 363825, 406593, 399300, 436425, 33792, 413952, 428868, 406593, 459492, 363825, 330000, 336633, 330000, 33792, 316932, 336633, 384912, 406593, 467313, 69828, 33792, 175857, 33792, 436425, 363825, 399300, 323433, 336633, 428868, 336633, 384912, 483153, 33792, 356928, 406593, 413952, 336633, 33792, 483153, 406593, 451737, 33792, 336633, 399300, 370788, 406593, 483153, 33792, 483153, 406593, 451737, 428868, 33792, 310497, 330000, 459492, 336633, 399300, 444048, 451737, 428868, 336633, 436425, 35937, 33792, 101128769412, 106046468352, 3300
|
||||
],
|
||||
// Card interface names reserved for use within LSIv2
|
||||
reserved: () => ({
|
||||
|
@ -5480,8 +5480,7 @@ function AutoCards(inHook, inText, inStop) {
|
|||
return;
|
||||
}
|
||||
function see(arr) {
|
||||
// Internal.debugLog(JSON.stringify("example".split("").map(c => c.charCodeAt(0))));
|
||||
return String.fromCharCode(...arr);
|
||||
return String.fromCharCode(...arr.map(n => Math.sqrt(n / 33)));
|
||||
}
|
||||
function formatTitle(title) {
|
||||
title = title.trim();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue