ModernUO/Distribution/Data/Spawns/shared/trammel/BlightedGrove.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

355 lines
6.3 KiB
JSON

[
{
"$type": "Spawner",
"guid": "025ff0bc-ff5b-4175-b963-1e393ee70543",
"name": "Spawner (101)",
"location": [
6535,
848,
0
],
"map": "Trammel",
"count": 4,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6525,
"y1": 838,
"z1": -128,
"x2": 6546,
"y2": 859,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "Abscess",
"maxCount": 4,
"probability": 100
},
{
"name": "Hydra",
"maxCount": 4,
"probability": 100
},
{
"name": "BogThing",
"maxCount": 4,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "04ebab40-c487-455f-8bea-211ae849bf2a",
"name": "Spawner (101)",
"location": [
6518,
879,
0
],
"map": "Trammel",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6513,
"y1": 874,
"z1": -128,
"x2": 6524,
"y2": 885,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "InsaneDryad",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "3dbad35b-a4c0-4d6d-b1d7-ad4cb792da01",
"name": "Spawner (101)",
"location": [
6489,
897,
0
],
"map": "Trammel",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6484,
"y1": 892,
"z1": -128,
"x2": 6495,
"y2": 903,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "InsaneDryad",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "43cff389-a041-49a6-89fb-cd5111466e70",
"name": "Spawner (101)",
"location": [
6518,
870,
0
],
"map": "Trammel",
"count": 9,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6478,
"y1": 830,
"z1": -128,
"x2": 6559,
"y2": 911,
"z2": 128
},
"walkingRange": 40,
"entries": [
{
"name": "Thrasher",
"maxCount": 9,
"probability": 100
},
{
"name": "SwampTentacle",
"maxCount": 9,
"probability": 100
},
{
"name": "Reaper",
"maxCount": 9,
"probability": 100
},
{
"name": "Bogling",
"maxCount": 9,
"probability": 100
},
{
"name": "Alligator",
"maxCount": 9,
"probability": 100
},
{
"name": "Coil",
"maxCount": 9,
"probability": 100
},
{
"name": "WhippingVine",
"maxCount": 9,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "713c3e56-33d2-430c-b182-364da7607c83",
"name": "Spawner (101)",
"location": [
6513,
871,
0
],
"map": "Trammel",
"count": 17,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6478,
"y1": 836,
"z1": -128,
"x2": 6549,
"y2": 907,
"z2": 128
},
"walkingRange": 35,
"entries": [
{
"name": "GiantSerpent",
"maxCount": 17,
"probability": 100
},
{
"name": "GiantToad",
"maxCount": 17,
"probability": 100
},
{
"name": "Harpy",
"maxCount": 17,
"probability": 100
},
{
"name": "SilverSerpent",
"maxCount": 17,
"probability": 100
},
{
"name": "Snake",
"maxCount": 17,
"probability": 100
},
{
"name": "Bogling",
"maxCount": 17,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "b04cfa39-6091-49da-bdba-1b737c266a0a",
"name": "Spawner (101)",
"location": [
6507,
843,
0
],
"map": "Trammel",
"count": 8,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6497,
"y1": 833,
"z1": -128,
"x2": 6518,
"y2": 854,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "Tangle",
"maxCount": 8,
"probability": 100
},
{
"name": "Bogling",
"maxCount": 8,
"probability": 100
},
{
"name": "Alligator",
"maxCount": 8,
"probability": 100
},
{
"name": "Reaper",
"maxCount": 8,
"probability": 100
},
{
"name": "Corpser",
"maxCount": 8,
"probability": 100
},
{
"name": "Changeling",
"maxCount": 8,
"probability": 100
},
{
"name": "WhippingVine",
"maxCount": 8,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "c6215ac8-c0e3-4c83-9394-984deb29c773",
"name": "Spawner (101)",
"location": [
6585,
878,
0
],
"map": "Trammel",
"count": 7,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6575,
"y1": 868,
"z1": -128,
"x2": 6596,
"y2": 889,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "Harpy",
"maxCount": 7,
"probability": 100
},
{
"name": "Saliva",
"maxCount": 7,
"probability": 100
},
{
"name": "Changeling",
"maxCount": 7,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "e840761f-1c5b-45f2-ba91-2a273e9739c2",
"name": "Spawner (101)",
"location": [
6540,
872,
0
],
"map": "Trammel",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 6535,
"y1": 867,
"z1": -128,
"x2": 6546,
"y2": 878,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "InsaneDryad",
"maxCount": 1,
"probability": 100
}
]
}
]