- 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>
53 lines
937 B
JSON
53 lines
937 B
JSON
[
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "6bbb82e4-b0d1-4a23-a9da-5d35911ce762",
|
|
"name": "Spawner (404)",
|
|
"location": [
|
|
2231,
|
|
1605,
|
|
-95
|
|
],
|
|
"map": "Malas",
|
|
"count": 33,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 2071,
|
|
"y1": 1445,
|
|
"z1": -128,
|
|
"x2": 2392,
|
|
"y2": 1766,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 160,
|
|
"entries": [
|
|
{
|
|
"name": "Mongbat",
|
|
"maxCount": 7,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "SandVortex",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Scorpion",
|
|
"maxCount": 7,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Snake",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Spectre",
|
|
"maxCount": 7,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|