- 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>
125 lines
2.2 KiB
JSON
125 lines
2.2 KiB
JSON
[
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "1ddbb313-bf13-4c9e-9116-3e67c835fbb9",
|
|
"name": "Spawner (2122)",
|
|
"location": [
|
|
3674,
|
|
2624,
|
|
0
|
|
],
|
|
"map": "Trammel",
|
|
"count": 40,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 3594,
|
|
"y1": 2544,
|
|
"z1": -128,
|
|
"x2": 3755,
|
|
"y2": 2705,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 80,
|
|
"entries": [
|
|
{
|
|
"name": "Bird",
|
|
"maxCount": 10,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 10,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Dog",
|
|
"maxCount": 10,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Rat",
|
|
"maxCount": 10,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "988e7381-2448-4d37-b763-714f1078540b",
|
|
"name": "Spawner (2122)",
|
|
"location": [
|
|
3726,
|
|
2647,
|
|
0
|
|
],
|
|
"map": "Trammel",
|
|
"count": 10,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 3701,
|
|
"y1": 2622,
|
|
"z1": -128,
|
|
"x2": 3752,
|
|
"y2": 2673,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 25,
|
|
"entries": [
|
|
{
|
|
"name": "Chicken",
|
|
"maxCount": 10,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "b52ecefe-4f07-4bcd-9870-d01a0a1a41be",
|
|
"name": "Spawner (2122)",
|
|
"location": [
|
|
3652,
|
|
2511,
|
|
0
|
|
],
|
|
"map": "Trammel",
|
|
"count": 16,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 3602,
|
|
"y1": 2461,
|
|
"z1": -128,
|
|
"x2": 3703,
|
|
"y2": 2562,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 50,
|
|
"entries": [
|
|
{
|
|
"name": "Bird",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Dog",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Rat",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|