- 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>
104 lines
1.8 KiB
JSON
104 lines
1.8 KiB
JSON
[
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "2733b112-93bf-47cc-b071-02e87c3150ab",
|
|
"name": "Spawner (214)",
|
|
"location": [
|
|
6279,
|
|
879,
|
|
-1
|
|
],
|
|
"map": "Felucca",
|
|
"count": 9,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 6249,
|
|
"y1": 849,
|
|
"z1": -128,
|
|
"x2": 6310,
|
|
"y2": 910,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 30,
|
|
"entries": [
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Dog",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Rat",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 1,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Dog",
|
|
"maxCount": 1,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Rat",
|
|
"maxCount": 1,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "bc6475e8-885e-4e5e-bf83-49c3e408ac06",
|
|
"name": "Spawner (214)",
|
|
"location": [
|
|
6275,
|
|
879,
|
|
-2
|
|
],
|
|
"map": "Felucca",
|
|
"count": 12,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 6245,
|
|
"y1": 849,
|
|
"z1": -128,
|
|
"x2": 6306,
|
|
"y2": 910,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 30,
|
|
"entries": [
|
|
{
|
|
"name": "Troglodyte",
|
|
"maxCount": 3,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Grobu",
|
|
"maxCount": 3,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Lurg",
|
|
"maxCount": 3,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "GiantRat",
|
|
"maxCount": 3,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|