ModernUO/Distribution/Data/Spawns/shared/ilshenar/Ancientlair.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

213 lines
3.7 KiB
JSON

[
{
"$type": "Spawner",
"guid": "113fa6c7-b58a-48eb-8cd8-18332e92e22e",
"name": "Spawner (301)",
"location": [
79,
687,
-28
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 69,
"y1": 677,
"z1": -128,
"x2": 90,
"y2": 698,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "FireElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "LavaLizard",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "60859b12-15e4-4d3f-bbc6-b48c940c4080",
"name": "Spawner (301)",
"location": [
54,
718,
-28
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 44,
"y1": 708,
"z1": -128,
"x2": 65,
"y2": 729,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "FireElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "LavaLizard",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "6c0fa0c8-c4fb-4c89-a310-528a89dc22e9",
"name": "Spawner (301)",
"location": [
115,
716,
-28
],
"map": "Ilshenar",
"count": 3,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 100,
"y1": 701,
"z1": -128,
"x2": 131,
"y2": 732,
"z2": 128
},
"walkingRange": 15,
"entries": [
{
"name": "FireElemental",
"maxCount": 3,
"probability": 100
},
{
"name": "LavaLizard",
"maxCount": 3,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "9f1df533-f0b6-4d42-8c80-ebf852a0830b",
"name": "Spawner (301)",
"location": [
131,
78,
0
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 121,
"y1": 68,
"z1": -128,
"x2": 142,
"y2": 89,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "FireElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "LavaLizard",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "cbb2e5a6-ad0e-4bf3-b53d-528756994f1b",
"name": "Spawner (301)",
"location": [
50,
689,
-28
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:10:00",
"maxDelay": "00:20:00",
"team": 0,
"spawnBounds": {
"x1": 20,
"y1": 659,
"z1": -128,
"x2": 81,
"y2": 720,
"z2": 128
},
"walkingRange": 15,
"entries": [
{
"name": "AncientWyrm",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "fdfe8209-e586-454c-aa1e-fdabf9b43125",
"name": "Spawner (301)",
"location": [
82,
718,
-28
],
"map": "Ilshenar",
"count": 4,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 67,
"y1": 703,
"z1": -128,
"x2": 98,
"y2": 734,
"z2": 128
},
"walkingRange": 15,
"entries": [
{
"name": "FireElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "LavaLizard",
"maxCount": 2,
"probability": 100
}
]
}
]