- 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": "8c2124f4-e175-4198-8cf8-9cf64804fc22",
|
|
"name": "Spawner (408)",
|
|
"location": [
|
|
98,
|
|
1656,
|
|
0
|
|
],
|
|
"map": "Malas",
|
|
"count": 16,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 58,
|
|
"y1": 1616,
|
|
"z1": -128,
|
|
"x2": 139,
|
|
"y2": 1697,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 40,
|
|
"entries": [
|
|
{
|
|
"name": "GoreFiend",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "PatchworkSkeleton",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "BoneKnight",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "BoneMagi",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "BoneKnight",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "SkeletalMage",
|
|
"maxCount": 6,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Zombie",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Skeleton",
|
|
"maxCount": 4,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "RottingCorpse",
|
|
"maxCount": 2,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "eaa69fa3-4076-4fc5-950a-fe175713bbd3",
|
|
"name": "Spawner (408)",
|
|
"location": [
|
|
104,
|
|
1655,
|
|
0
|
|
],
|
|
"map": "Malas",
|
|
"count": 1,
|
|
"minDelay": "00:15:00",
|
|
"maxDelay": "00:30:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 89,
|
|
"y1": 1640,
|
|
"z1": -128,
|
|
"x2": 120,
|
|
"y2": 1671,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 15,
|
|
"entries": [
|
|
{
|
|
"name": "RedDeath",
|
|
"maxCount": 1,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|