ModernUO/Distribution/Data/Spawns/shared/trammel/Graveyards.json
Kamron Batman 2f8a7afa57 chore(spawners): migrate spawn data to $type discriminator
- 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>
2026-06-25 16:17:35 -07:00

335 lines
5.8 KiB
JSON

[
{
"$type": "Spawner",
"guid": "003c2e17-0f7e-4af8-9b25-de6ccc4c6e24",
"name": "Spawner (108)",
"location": [
4545,
1317,
8
],
"map": "Trammel",
"count": 4,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"start": {
"x": 4535,
"y": 1307,
"z": -128
},
"end": {
"x": 4555,
"y": 1327,
"z": 25
}
},
"walkingRange": 20,
"entries": [
{
"name": "Spectre",
"maxCount": 1,
"probability": 100
},
{
"name": "Shade",
"maxCount": 1,
"probability": 100
},
{
"name": "Wraith",
"maxCount": 1,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 1,
"probability": 100
},
{
"name": "Zombie",
"maxCount": 2,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "18ac21c4-da65-4449-997e-6e3952e53d46",
"name": "Spawner (108)",
"location": [
722,
1119,
0
],
"map": "Trammel",
"count": 10,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 702,
"y1": 1099,
"z1": -128,
"x2": 743,
"y2": 1140,
"z2": 128
},
"walkingRange": 20,
"entries": [
{
"name": "Skeleton",
"maxCount": 10,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "1b1194dd-0699-4c9e-9cbe-1332a477a90d",
"name": "Spawner (108)",
"location": [
1369,
1475,
10
],
"map": "Trammel",
"count": 9,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1349,
"y1": 1455,
"z1": -128,
"x2": 1390,
"y2": 1496,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "Spectre",
"maxCount": 2,
"probability": 100
},
{
"name": "Wraith",
"maxCount": 2,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 3,
"probability": 100
},
{
"name": "Zombie",
"maxCount": 4,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "69dd4fe9-7f47-466e-b290-963f9bf240d8",
"name": "Spawner (108)",
"location": [
2758,
867,
0
],
"map": "Trammel",
"count": 9,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"start": {
"x": 2738,
"y": 847,
"z": -128
},
"end": {
"x": 2778,
"y": 887,
"z": 15
}
},
"walkingRange": 20,
"entries": [
{
"name": "Spectre",
"maxCount": 2,
"probability": 100
},
{
"name": "Wraith",
"maxCount": 2,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 3,
"probability": 100
},
{
"name": "Zombie",
"maxCount": 4,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "eb0eb81f-7aea-4162-bf8d-1a0e614ecbcd",
"name": "Spawner (108)",
"location": [
2438,
1100,
8
],
"map": "Trammel",
"count": 4,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"start": {
"x": 2428,
"y": 1090,
"z": -128
},
"end": {
"x": 2448,
"y": 1110,
"z": 30
}
},
"walkingRange": 20,
"entries": [
{
"name": "Spectre",
"maxCount": 1,
"probability": 100
},
{
"name": "Shade",
"maxCount": 1,
"probability": 100
},
{
"name": "Wraith",
"maxCount": 1,
"probability": 100
},
{
"name": "Lich",
"maxCount": 1,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 1,
"probability": 100
},
{
"name": "Zombie",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "f40bd4f4-6ff1-40ba-84c3-296ade50ab51",
"name": "Spawner (108)",
"location": [
1285,
3731,
0
],
"map": "Trammel",
"count": 9,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"start": {
"x": 1275,
"y": 3721,
"z": -128
},
"end": {
"x": 1295,
"y": 3741,
"z": 15
}
},
"walkingRange": 15,
"entries": [
{
"name": "Spectre",
"maxCount": 2,
"probability": 100
},
{
"name": "Wraith",
"maxCount": 2,
"probability": 100
},
{
"name": "Shade",
"maxCount": 2,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 3,
"probability": 100
},
{
"name": "Zombie",
"maxCount": 4,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "fd6f9733-1638-485e-a3fd-3d6f9550591e",
"name": "Spawner (108)",
"location": [
3407,
2652,
48
],
"map": "Trammel",
"count": 4,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 3397,
"y1": 2642,
"z1": -128,
"x2": 3418,
"y2": 2663,
"z2": 128
},
"walkingRange": 15,
"entries": [
{
"name": "Zombie",
"maxCount": 4,
"probability": 100
},
{
"name": "Skeleton",
"maxCount": 4,
"probability": 100
}
]
}
]