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

79 lines
1.4 KiB
JSON

[
{
"$type": "Spawner",
"guid": "befc0201-8bec-432e-8ced-3ee5ceb57d09",
"name": "Spawner (405)",
"location": [
1050,
1434,
-85
],
"map": "Malas",
"count": 3,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1050,
"y1": 1434,
"z1": -85,
"x2": 1051,
"y2": 1435,
"z2": -85
},
"walkingRange": 5,
"entries": [
{
"name": "Waiter",
"maxCount": 1,
"probability": 100
},
{
"name": "Cook",
"maxCount": 1,
"probability": 100
},
{
"name": "Barkeeper",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "d8e03ce8-cd76-433e-af76-0c0767290705",
"name": "Spawner (405)",
"location": [
1042,
1444,
-90
],
"map": "Malas",
"count": 2,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 1038,
"y1": 1440,
"z1": -128,
"x2": 1047,
"y2": 1449,
"z2": 128
},
"walkingRange": 6,
"entries": [
{
"name": "AnimalTrainer",
"maxCount": 1,
"probability": 100
},
{
"name": "Veterinarian",
"maxCount": 1,
"probability": 100
}
]
}
]