feat: Deduplicates spawns. Adds spawnbounds where needed. (#2299)

### Summary

- Add z-restricted spawnBounds to 35 spawners across 15 files to prevent creatures from spawning on incorrect floors
- Building spawners (Pyramid, Fire dungeon, Shame, Vendors) use minZ = spawner_z to prevent spawning below
- Ground level spawners (Graveyards, Outdoors, Tokuno) use minZ = -128 for natural terrain variation
- Multi-floor structures in Ilshenar use floor-specific Z restrictions

### Test plan

- Verify spawners in Fire dungeon building don't spawn creatures on floors below
- Verify Pyramid spawners keep creatures on their respective levels
- Verify ground level spawners (graveyards, outdoors) still spawn correctly on terrain
- Check Ilshenar multi-floor structure spawns creatures on correct floors
This commit is contained in:
Kamron Batman 2025-12-30 00:21:03 -08:00 • committed by GitHub
parent 598223703f
commit 723e1a836d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
184 changed files with 83110 additions and 175383 deletions

View file

@ -1,4 +1,4 @@
[
[
{
"type": "Spawner",
"guid": "7bd2b3c7-3c39-40c5-9c3b-98b73d060c65",
@ -11,7 +11,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "Baker", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "Baker", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -76,7 +78,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "InnKeeper", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "InnKeeper", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -107,7 +111,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "InnKeeper", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "InnKeeper", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -121,7 +127,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "Scribe", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "Scribe", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -205,7 +213,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "Baker", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "Baker", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -219,7 +229,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "Butcher", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "Butcher", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -320,7 +332,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "AnimalTrainer", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "AnimalTrainer", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -454,7 +468,9 @@
"team": 0,
"homeRange": 0,
"walkingRange": 5,
"entries": [{ "name": "Jeweler", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "Jeweler", "maxCount": 1, "probability": 100 }
]
},
{
"type": "Spawner",
@ -468,6 +484,8 @@
"team": 0,
"homeRange": 0,
"walkingRange": 4,
"entries": [{ "name": "TownCrier", "maxCount": 1, "probability": 100 }]
"entries": [
{ "name": "TownCrier", "maxCount": 1, "probability": 100 }
]
}
]