Commit Graph
231 Commits
Author SHA1 Message Date
dingo 2df33f4a62 Fix ability selection deadlock and improve temp ability test usability
- Always add a basic melee fallback when mobs have no melee ability

- Select only currently usable/implemented abilities (phase, cooldown, mana, range) before execution

- Add test note in abilityTemp.md to set TEMP_TEST abilities ManaCost=0 for low-mana mobs
2026-02-10 14:53:21 -05:00
dingo 93e8c8457d Align runtime bucket matching with helper normalization
- Normalize tile bucket keys by stripping non-alphanumerics and lowercasing

- Use normalized alias lookup when resolving canonical directional wall buckets

- Prevent runtime misses when bucket names differ by underscores/spaces/casing
2026-02-10 12:50:39 -05:00
dingo c339842749 Add safe fallback bucket resolution for rare unmapped wall masks
- Keep exact 8-direction bucket matching as primary selection

- For unmatched masks, derive deterministic fallback candidates from cardinal/diagonal bits

- Prevent isolated untiled wall cells in complex junction edge cases
2026-02-10 12:47:33 -05:00
dingo 046d665c57 Fix directional bucket helper mapping and fill diagonal-only wall cells
- Update tile edit Neighbor Mask Helper to suggest new directional bucket names and masks

- Include 8-neighbor adjacency when collecting wall candidate cells so single-diagonal corner masks are placed

- Keep strict exact mask bucket matching in VNext wall resolver
2026-02-10 12:41:32 -05:00
dingo ec7f432f09 Switch VNext wall placement to exact directional mask buckets
- Replace cardinal/corner two-pass resolver with single-pass exact 8-direction mask matching

- Implement curated directional mask set (N/S/E/W + large/single corner buckets)

- Require wall tiles to map to exactly one directional bucket while still allowing extra non-directional buckets

- Add alias support for new bucket naming conventions (Wall_N style and corner names)
2026-02-10 12:15:48 -05:00
dingo 04db7b71d2 Add deterministic elbow-corner fallback for missed corner caps
- In wall pass2, when exact 8-bit corner mapping misses, derive corner bucket from elbow cardinals + elbow diagonal bit

- Preserve strict behavior: no broad corner fallback; only exact or deterministic elbow mapping

- Covers cases where valid corner cells were left as cardinal walls
2026-02-10 11:27:18 -05:00
dingo ceea824bb9 Enforce exact corner mask matching in wall pass2
- Remove corner fallback candidate selection for elbow upgrades

- Upgrade elbow cells only when exact 8-bit bucket resolves to a corner bucket

- Prevent corner tiles from being placed when any 0-bit side touches floor
2026-02-10 10:59:41 -05:00
dingo 1faa296626 Implement explicit 2-step wall placement flow
- Step 1: place cardinal wall tiles based on floor-touch cardinal directions

- Step 2: revisit two-cardinal elbow cells and override with corner tiles using exact 8-neighbor mask (including diagonal)

- Use upsert placement so pass2 cleanly replaces pass1 walls at corner cells
2026-02-10 10:39:26 -05:00
dingo ea478e094f Switch wall autotiling to strict floor-touch pattern classification
- Replace broad cardinal HashSet matching with deterministic mask-based bucket candidates

- Prevent corner buckets on straight one-side walls

- Route adjacent-two elbow masks only through corner bucket families

- Keep complex/opposite masks on full/8-dir bucket families to avoid impossible placements
2026-02-10 09:11:39 -05:00
dingo c6f778a6db Remap elbow corner bucket orientation and add robust candidates
- Invert elbow-to-corner orientation mapping to match floor-touch geometry

- Try multiple corner bucket candidates (diagonal + inner-corner families) per elbow mask

- Preserve existing cardinal and 8-direction fallback behavior
2026-02-10 08:58:55 -05:00
dingo 191f919206 Fix elbow wall corner precedence and fallback flow
- Apply elbow->corner bucket mapping before cardinal bucket selection

- Add 8-direction fallback in pass1 when cardinal candidate exists but has no definition

- Keep pass2 unresolved resolution unchanged
2026-02-10 07:59:51 -05:00
dingo a2e206daf1 Handle elbow wall masks with corner-bucket preference
- Map 2-neighbor elbow cardinal masks to diagonal corner buckets before broad WallTop/WallSide fallback

- Preserve existing two-pass resolver while improving bend transitions
2026-02-09 21:51:43 -05:00
dingo b07d9104c1 Refine wall resolver to reduce corner misclassification
- Require cardinal floor adjacency for wall-cell eligibility (remove diagonal-only wall placements)

- Limit 8-direction priority override to corner/diagonal buckets only

- Keep cardinal-first flow while preventing broad bucket overreach on corner candidates
2026-02-09 20:46:56 -05:00
dingo b99d5fce7f Prioritize corner buckets over broad cardinal wall matches
- Defer cardinal-pass placement when an 8-direction corner/diagonal bucket match exists in the active palette

- Prevent corner cells from being flattened into top/side walls during first pass

- Keep two-pass flow intact: cardinal fallback first, unresolved cells resolved by 8-direction masks
2026-02-09 15:52:23 -05:00
dingo 41ae9e011a Implement VNext palette-scoped tile placement with two-pass wall bucket resolution
- Replace placeholder VNext tile output with palette-driven floor/wall TileDefinition placement

- Enforce wall placement flow: cardinal mask buckets first, then unresolved cells via 8-direction mask buckets

- Restrict wall/floor picks to buckets available to the selected palette

- Enforce wall definition selection from a single canonical wall bucket and fallback safely when unresolved

- Populate TileMapSheets from actually used tile sheets in generated layouts
2026-02-09 15:39:12 -05:00
dingo ab8afd4ec1 Normalize mob visual state before join/state payloads and clarify client animation handling
- Add server-side payload-time normalization to prevent alive mobs from being sent with dead/hurt animations

- Enforce dead state/death animation payload consistency for non-alive mobs

- Apply normalization in both dungeon enter flows and recurring dungeon state sends

- Update pending-clientChanges.md: client must treat currentAnimation as authoritative and gate loot prompt by hasLoot
2026-02-09 10:29:47 -05:00
dingo 8256b01fa4 Normalize mob visual state on tick and document remaining client loot prompt gating
- Add server-side state sanity checks so alive mobs cannot remain in dead/death animation state

- Enforce dead state/death animation for dead mobs every tick

- Remove Damaged-state assignment on hit to avoid hurt-loop visual lock-in

- Update pending-clientChanges.md: client should gate loot prompt by isAlive=false && hasLoot=true
2026-02-09 10:11:54 -05:00
dingo 5d3de08037 Keep mob corpses persistent and enforce death animation state
- Stop automatic corpse removal after loot is emptied; corpses now remain in world

- On all mob death paths, set dead state plus death animation (death_[dir]) and clear combat/cast targeting

- Include dead mobs in spatial state feed so corpses do not disappear from clients

- Add mob currentAnimation/hasLoot in payload and reject loot interaction when corpse has no loot
2026-02-09 09:24:14 -05:00
dingo d8e4e7430b Standardize mob payloads and refresh pending client requirements
- Include isAlive in dungeon state and join mob payloads for consistent render lifecycle

- Add mobCatalog to dungeon enter responses so clients can bootstrap mob art deterministically

- Filter DUNGEON_STATE visible mobs to alive mobs to avoid stale/dead entity feed

- Rewrite pending-clientChanges.md to reflect no mandatory remaining client work
2026-02-09 09:14:08 -05:00
dingo 0422027989 Fix dungeon respawn portal/state regressions after empty-dungeon reset
- Keep exit portals active when dungeons respawn mobs after being empty

- Normalize living mob runtime state on respawn reset (idle state, clear target/cast, reset animation)

- Expand quick-join enter mob payload to include rotation/state/isAlive to prevent stale dead-animation rendering
2026-02-09 09:06:01 -05:00
dingo f8f8b45ecb Fix dungeon state visibility regression and document client follow-ups
- Add safe sprite-config deserialization to prevent DUNGEON_STATE tick failures when mob sprite JSON is invalid

- Include definitionId consistently in mob payloads and preserve one-time mob catalog flow for client art preload

- Send active portals on every state update to avoid portal disappearance under spatial throttling

- Add root pending-clientChanges.md documenting required client handling for spatially filtered mobs, mobCatalog, and portal state
2026-02-09 08:44:47 -05:00
dingo 40a000be92 Spatial config 2026-02-09 08:32:09 -05:00
dingo c75d4011a3 Spatial mapping 2026-02-09 08:15:34 -05:00
dingo 5005206631 ForceVNext 2026-02-09 07:57:00 -05:00
dingo fb17d1c16b Dungeon fixes 2026-02-09 07:46:13 -05:00
dingo 469f1976bd dungeon changes 2026-02-08 22:21:03 -05:00
dingo b5738e0db3 boss handles 2026-02-08 22:08:58 -05:00
dingo 7b03b4139a new builder 2026-02-08 22:01:19 -05:00
dingo 6e3be67f64 Ability fixes and cleanup 2026-02-08 18:57:04 -05:00
dingo ec48fce15a fix abilities 2026-02-08 16:11:13 -05:00
dingo dd2bbc23b8 Summoning debug.. 2026-02-01 12:44:28 -05:00
dingo 65f3fa91d3 Summoning debug. 2026-02-01 12:11:31 -05:00
dingo 9f30f9a5af Summoning debug 2026-02-01 10:55:22 -05:00
dingo 7223c04399 Working on summoning 2026-02-01 10:16:36 -05:00
dingo 95c165ac07 Summoning 2026-02-01 10:00:38 -05:00
dingo 0e8a8c8061 Fix summoning 2026-02-01 09:19:02 -05:00
dingo f0587254c5 Dungeon Builder Phase 2 2026-01-31 19:12:15 -05:00
dingo 739c624b71 Dungeon Builder Change 2026-01-31 18:51:45 -05:00
dingo 0b89cd06aa Dungeon Admin management 2026-01-31 11:19:38 -05:00
dingo fd7a55e149 Dungeon Fixes 2026-01-31 10:36:35 -05:00
dingo dd0969a9f0 web client getting bouned 2026-01-30 23:54:11 -05:00
dingo 490a307f92 finally fixing something else. 2026-01-30 23:43:33 -05:00
dingo c2d1bd78df Bug fixin 2026-01-30 11:31:58 -05:00
dingo f457be2783 Dumb error 2026-01-30 11:20:33 -05:00
dingo 920b9b483c Debugging2 2026-01-30 09:56:07 -05:00
dingo 216d2e6da7 Debugging 2026-01-30 09:38:51 -05:00
dingo 9584de348f Persist Dungeon bug fix 2026-01-26 18:06:28 -05:00
dingo 73ff3d8694 Breakdown DungeonHandler Monolith to sealed partials 2026-01-26 14:41:10 -05:00
dingo 39920c81a2 Setting Equipped item to be swapped in htbar when equipinging via hotbar 2026-01-26 12:59:22 -05:00
dingo 16fb38f606 HotBar Bug 2026-01-26 12:19:07 -05:00