- Rename "type" -> "$type" (first key, required for STJ polymorphism) in all 109 spawn JSON files (5,612 records). - Convert "homeRange" + "location" -> "spawnBounds" object, dropping homeRange. Runtime keeps reading homeRange so un-migrated/external files still load. - Add BoundsEquivalenceTests (hr=0/1/3/7) validating that the script's toBounds formula produces the same Rectangle3D as the runtime homeRange path. - Add MigratedDataLoadTests loading a real migrated file as List<SpawnerDto> and round-tripping each DTO through ToSpawner(). - Add tools/spawner-json-migrate/migrate.mjs (offline Node script). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
126 lines
2.2 KiB
JSON
126 lines
2.2 KiB
JSON
[
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "3e3f2805-df30-4d29-abdd-e8a53002b1d2",
|
|
"name": "Spawner (305)",
|
|
"location": [
|
|
1415,
|
|
1498,
|
|
-27
|
|
],
|
|
"map": "Ilshenar",
|
|
"count": 4,
|
|
"minDelay": "00:02:00",
|
|
"maxDelay": "00:05:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 1411,
|
|
"y1": 1494,
|
|
"z1": -128,
|
|
"x2": 1420,
|
|
"y2": 1503,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 4,
|
|
"entries": [
|
|
{
|
|
"name": "MushroomTrap",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "46803838-2abe-45af-8c77-4deccf2e99d7",
|
|
"name": "Spawner (305)",
|
|
"location": [
|
|
1444,
|
|
1519,
|
|
-28
|
|
],
|
|
"map": "Ilshenar",
|
|
"count": 4,
|
|
"minDelay": "00:02:00",
|
|
"maxDelay": "00:05:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 1434,
|
|
"y1": 1509,
|
|
"z1": -128,
|
|
"x2": 1455,
|
|
"y2": 1530,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 10,
|
|
"entries": [
|
|
{
|
|
"name": "MushroomTrap",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "e7588959-6148-4bf7-a0b1-829b3dca6e1b",
|
|
"name": "Spawner (305)",
|
|
"location": [
|
|
1464,
|
|
1495,
|
|
-28
|
|
],
|
|
"map": "Ilshenar",
|
|
"count": 4,
|
|
"minDelay": "00:02:00",
|
|
"maxDelay": "00:05:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 1454,
|
|
"y1": 1485,
|
|
"z1": -128,
|
|
"x2": 1475,
|
|
"y2": 1506,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 10,
|
|
"entries": [
|
|
{
|
|
"name": "MushroomTrap",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "f5a9bc72-4489-4b3a-83ee-7c476d4c9396",
|
|
"name": "Spawner (305)",
|
|
"location": [
|
|
1441,
|
|
1532,
|
|
-28
|
|
],
|
|
"map": "Ilshenar",
|
|
"count": 4,
|
|
"minDelay": "00:02:00",
|
|
"maxDelay": "00:05:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 1431,
|
|
"y1": 1522,
|
|
"z1": -128,
|
|
"x2": 1452,
|
|
"y2": 1543,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 10,
|
|
"entries": [
|
|
{
|
|
"name": "MushroomTrap",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|