Add token support to Content Patcher schema for AddWarps and AddNpcWarps fields

This commit is contained in:
irocendar
2025-07-25 06:36:50 +01:00
committed by GitHub
parent 75d927a922
commit 26a66cc20a
@@ -353,7 +353,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": " *-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+ *$",
"pattern": " *((.*\\{\\{.*\\}\\})|-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+) *$",
"@errorMessages": {
"pattern": "Each warp must match the exact format recognized by the game's Warp map property (i.e. 'fromX fromY targetMap targetX targetY', like '10 10 Town 0 30')."
}
@@ -365,7 +365,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": " *-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+ *$",
"pattern": " *((.*\\{\\{.*\\}\\})|(-?\\d+ -?\\d+ [A-Za-z0-9_\\.]+ -?\\d+ -?\\d+)) *$",
"@errorMessages": {
"pattern": "Each warp must match the exact format recognized by the game's NPCWarp map property (i.e. 'fromX fromY targetMap targetX targetY', like '10 10 Town 0 30')."
}