Make RPG attributes (STR/DEX/etc) customizable and editable

- Replace showRPGAttributes boolean with rpgAttributes array in trackerConfig
- Add RPG Attributes section in Edit Trackers with add/remove/rename/toggle
- Dynamically generate attribute display from config in userStats.js
- Add migration from old showRPGAttributes to new rpgAttributes array
- Initialize new attributes with default value of 10 in classicStats
- Default attributes: STR, DEX, CON, INT, WIS, CHA (all enabled)
This commit is contained in:
Spicy_Marinara
2025-11-03 11:09:42 +01:00
parent 883212b5e9
commit f20710f5a3
7 changed files with 260 additions and 59 deletions
+30
View File
@@ -0,0 +1,30 @@
[
{
"scriptName": "RPG: Clean HTML (From Outgoing Prompt)",
"findRegex": "/\\s?<(?!\\!--)(?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g",
"replaceString": "",
"trimStrings": [],
"placement": [2],
"disabled": false,
"markdownOnly": false,
"promptOnly": true,
"runOnEdit": true,
"substituteRegex": 0,
"minDepth": null,
"maxDepth": null
},
{
"scriptName": "RPG: Clean Tracker Blocks (Keeping Last)",
"findRegex": "/```\\n[\\s\\S]*?\\n---\\n[\\s\\S]*?```\\n+/g",
"replaceString": "",
"trimStrings": [],
"placement": [1, 2],
"disabled": false,
"markdownOnly": false,
"promptOnly": true,
"runOnEdit": true,
"substituteRegex": 0,
"minDepth": 3,
"maxDepth": null
}
]