ModernUO/Distribution/Data/Spawns/shared/tokuno/YomutsoMines.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

401 lines
7.2 KiB
JSON

[
{
"$type": "Spawner",
"guid": "115246e3-d444-4ad4-ad93-ba5f98ade944",
"name": "Spawner (506)",
"location": [
71,
29,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 41,
"y1": -1,
"z1": -128,
"x2": 102,
"y2": 60,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "6561df12-d971-4504-9a84-fba65d6e3339",
"name": "Spawner (506)",
"location": [
111,
20,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 81,
"y1": -10,
"z1": -128,
"x2": 142,
"y2": 51,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 2,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "694ea01f-680b-4054-9f13-bf9e7317a6d8",
"name": "Spawner (506)",
"location": [
107,
23,
-1
],
"map": "Malas",
"count": 1,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 102,
"y1": 18,
"z1": -128,
"x2": 113,
"y2": 29,
"z2": 128
},
"walkingRange": 5,
"entries": [
{
"name": "FireBeetle",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "922f0ff6-6efc-4787-aab1-32b8c41831ab",
"name": "Spawner (506)",
"location": [
54,
67,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 24,
"y1": 37,
"z1": -128,
"x2": 85,
"y2": 98,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 2,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "9cbd85a7-68f8-401d-a8c3-b2a220b2e431",
"name": "Spawner (506)",
"location": [
16,
56,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": -14,
"y1": 26,
"z1": -128,
"x2": 47,
"y2": 87,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "a0525c92-565a-4b15-b6b0-61c6be263ae7",
"name": "Spawner (506)",
"location": [
102,
84,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 72,
"y1": 54,
"z1": -128,
"x2": 133,
"y2": 115,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 2,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "ba3f54b0-b977-476e-be97-2ad5ba39dc19",
"name": "Spawner (506)",
"location": [
83,
114,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 53,
"y1": 84,
"z1": -128,
"x2": 114,
"y2": 145,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "dc1fe934-3641-4ddd-8b6c-207ccf0861ef",
"name": "Spawner (506)",
"location": [
116,
61,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": 86,
"y1": 31,
"z1": -128,
"x2": 147,
"y2": 92,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 1,
"probability": 100
}
]
},
{
"$type": "Spawner",
"guid": "ee2e7f73-a95f-40e6-8493-80dbe4c2ea65",
"name": "Spawner (506)",
"location": [
25,
19,
-1
],
"map": "Malas",
"count": 6,
"minDelay": "00:05:00",
"maxDelay": "00:10:00",
"team": 0,
"spawnBounds": {
"x1": -5,
"y1": -11,
"z1": -128,
"x2": 56,
"y2": 50,
"z2": 128
},
"walkingRange": 30,
"entries": [
{
"name": "EarthElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "DullCopperElemental",
"maxCount": 1,
"probability": 100
},
{
"name": "YomotsuWarrior",
"maxCount": 2,
"probability": 100
},
{
"name": "YomotsuPriest",
"maxCount": 2,
"probability": 100
}
]
}
]