ModernUO/Distribution/Data/Spawns/post-uoml/ilshenar/Outdoors.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

131 lines
2.3 KiB
JSON

[
{
"$type": "Spawner",
"guid": "7431d589-5e24-4f05-b479-30dc17c7e942",
"name": "Spawner (306)",
"location": [
1098,
698,
-60
],
"map": "Ilshenar",
"count": 2,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1097,
"y1": 697,
"z1": -128,
"x2": 1100,
"y2": 700,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "GolemController",
"maxCount": 1,
"probability": 100
},
{
"name": "Golem",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "8ed26f0f-de07-4412-bc99-6cee204f1f40",
"name": "Spawner (306)",
"location": [
1072,
651,
-60
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1066,
"y1": 645,
"z1": -128,
"x2": 1079,
"y2": 658,
"z2": 128
},
"walkingRange": 6,
"entries": [
{
"name": "JukaWarrior",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "d7d89534-d330-4b6a-a6b0-83187bf9ff54",
"name": "Spawner (306)",
"location": [
1091,
702,
-40
],
"map": "Ilshenar",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1086,
"y1": 697,
"z1": -128,
"x2": 1097,
"y2": 708,
"z2": 128
},
"walkingRange": 10,
"entries": [
{
"name": "Golem",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "e15d8287-9350-468d-8144-dd3baa906a53",
"name": "Spawner (306)",
"location": [
1086,
702,
-60
],
"map": "Ilshenar",
"count": 2,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1081,
"y1": 697,
"z1": -128,
"x2": 1092,
"y2": 708,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "GolemController",
"maxCount": 2,
"probability": 100
}
]
}
]