Cohee
df67a7cdc4
#2467 Fix min activations for non-recursable entries
2024-07-03 23:42:27 +03:00
Cohee
79b8dc98eb
Fix performance of WI editor when adding a new entry
2024-06-27 10:04:49 +00:00
Cohee
886b6fee64
Add WI entry delay
2024-06-26 22:43:30 +03:00
Wolfsblvt
cd9013cf73
Update some WI confirm/input popups to new popup
2024-06-26 05:29:08 +02:00
Cohee
4b58a822db
Fix off-by-one in timed effects. Add protected status
2024-06-24 11:51:04 +00:00
Cohee
b89afe6d13
Ignore advancement requirement for immediately set cooldown
2024-06-24 03:13:27 +03:00
Cohee
8b9afff30d
Generalize onEnded callbacks
2024-06-24 02:33:51 +03:00
Cohee
893f4f3ed6
Use raw metadata for set effect command
2024-06-24 01:28:37 +03:00
Cohee
14879af678
Add format variable to get timed effect command
2024-06-24 01:20:39 +03:00
Cohee
80496db482
Remove resolveVariable calls
2024-06-24 01:08:24 +03:00
Cohee
3b03561d27
Merge branch 'staging' into timed-wi
2024-06-24 01:07:44 +03:00
Cohee
7e3e75875d
Remove undocumented calls to resolveVariable in WI slash commands
2024-06-24 01:07:24 +03:00
Cohee
66210e9c0f
Add command for checking WI state
2024-06-23 21:35:31 +03:00
Cohee
8b5224e274
Add slash command for setting sticky/cooldown. Normalize naming: timed event => timed effect
2024-06-23 21:18:18 +03:00
Cohee
5db2254548
Generalize effect methods
2024-06-23 20:34:07 +03:00
Cohee
d1dd3a5433
Merge branch 'staging' into timed-wi
2024-06-23 20:24:53 +03:00
Cohee
59e1f9cca1
Accept JSON-serialized string arrays for /setentryfield. Return JSON lists in /getentryfield
2024-06-23 19:43:56 +03:00
Cohee
3dcb4dee59
Pre-cache related WI entries on chat load
2024-06-23 18:50:40 +03:00
Cohee
39362fd566
Fix some type errors
2024-06-23 18:41:49 +03:00
Cohee
5de80f4c6d
Merge branch 'staging' into timed-wi
2024-06-23 18:31:40 +03:00
Cohee
e736283785
Return cache to WI
2024-06-23 16:24:33 +03:00
Cohee
3e27f0213a
Fix cooldown debug log
2024-06-23 01:58:18 +03:00
Cohee
9ec8aa3bf9
Fix JSDocs
2024-06-23 01:53:45 +03:00
Cohee
7875a65b44
Kinda misleading comment
2024-06-23 01:52:10 +03:00
Cohee
b513043e4a
Prevent sticky from using probability
2024-06-22 15:04:49 +03:00
Cohee
0fe19bca47
Non-static map. Better typing.
2024-06-22 14:56:46 +03:00
Cohee
b4559d3fd8
Use WeakMap for WI cache
2024-06-22 14:43:15 +03:00
Cohee
d02fbbb42f
Change type of timed events metadata
2024-06-22 03:54:54 +03:00
Cohee
37930caade
Refactor timed events funcs
2024-06-22 03:15:13 +03:00
Wolfsblvt
48077d200b
More slash command enums (nearly done)
2024-06-21 20:04:55 +02:00
Cohee
30765550c8
Place sticky + cooldown entry on cooldown when unstuck
2024-06-21 20:50:18 +03:00
Cohee
9c3cad2df2
Fix sticky/cooldown interaction. Add icons
2024-06-21 02:42:15 +03:00
Cohee
ab7b07ba28
Add sticky and cooldown for timed WI entries
2024-06-21 00:53:00 +03:00
Wolfsblvt
ffc84f5118
Merge branch 'staging' into slash-command-enums
2024-06-20 20:38:55 +02:00
Wolfsblvt
461b1a9d87
Even more enum refactorings (not done yet)
...
- Add common enum icons
- enum def for existing enum types, with color description
2024-06-20 20:33:45 +02:00
Cohee
e7772f04a4
Don't require a primary WI to use additionals
2024-06-18 12:09:28 +03:00
Wolfsblvt
6f7ef25369
Rework slash command enum values pt.2
...
- Fix jsconfig module resolution for imports in frontend scripts
- Add file with common slash command enum values
2024-06-17 03:30:52 +02:00
Len
5cb319771d
Parser followup ( #2377 )
...
* set pipe to empty string on empty closure
* fix missing parser flags and scope
* add closure serializing
* add enum provider function to slash command arguments
* add enum providers for /bg, /ask, and /go
* fix index out of bounds returning undefined
* keep whitespace as is in mixed unnamed args (string+closure)
* add _hasUnnamedArgument to named arguments dictionary
* allow /var key=x retrieval
* add enum provider to /tag-add
* fix typo (case)
* add option to make enum matching optional
* add executor to enum provider
* change /tag-add enum provider to only show tags not already assigned
* add enum provider to /tag-remove
* fix name enum provider excluding groups
* remove void from slash command callback return types
* Lint undefined and null pipes
* enable pointer events in chat autocomplete
* fix type hint
---------
Co-authored-by: LenAnderson <Anderson.Len@outlook.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-06-15 00:48:41 +03:00
Wolfsblvt
64698ac073
Fix WI keys regex tokenization breaking falsely
...
- Change regex tokenization to check commas inside regexes via opening and closing delimiter.
- Fixes #2375
2024-06-14 01:02:59 +02:00
Cohee
e660ec1f14
Remove stray newlines from WI/AN entries
2024-05-30 21:23:13 +03:00
steve green
00fc40408a
allow char scpoed regex ( #2271 )
...
* Update engine.js to allow char scpoed regex
no ui because i'm not good at it, but works.
* add typedef
* update
* little fix
* Rework scoped scripts UI
* Add locale attributes
* Purge allowance on delete
* add d&d for `saved_scoped_scripts`
* better code
* Save settings on regex scope toggle
* Fix reordering logic
* Fix scoped setter
* Add unique ids for regex scripts
* Wording
* Reload chat after deleting scripts
* Reload chat after toggling scoped regex
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-26 17:19:00 +03:00
Wolfsblvt
92cb70213a
Fix no sanitize check on wi create
2024-05-23 00:39:49 +02:00
Wolfsblvt
ab8c67ede6
Refactor overwrite check to utility function
...
- Refactor overwrite check to utility function
- Don't mind me refactoring character delete functions. I tried something, but I think the refactoring still makes sense
2024-05-22 23:52:35 +02:00
Wolfsblvt
a251849f8f
WI import checking for existing worlds too
...
- WI import uses the same check as create new world
- API endpoint to get server-side sanitized filenames
- Small changes to toast messages
2024-05-22 21:11:39 +02:00
Wolfsblvt
29d817d549
Implement failsafe for world creation with same name
...
- Fixes #2297
- Added another utils function for string comparison
2024-05-22 18:19:01 +02:00
steve green
3dd4f2b94a
Always make sure that the delete ****** available
2024-05-22 19:23:51 +08:00
Cohee
df2710bcbe
Transform WI haystack after regex matching
2024-05-20 13:44:12 +03:00
Cohee
a398566b33
[BUG]In the lorebooks management panel, when in the Custom sorting mode, entries may be incorrectly placed above the table header. #2262
2024-05-18 13:27:22 +03:00
Cohee
75de4c8fcb
Resolve boolean fields to constant values when searching WI entries with command
2024-05-17 14:32:57 +03:00
Cohee
8ae4332110
Fix secondary key expansion
2024-05-17 00:03:41 +03:00