@dreadwood-types/types 0.1.195 → 0.1.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/areaTransitions.d.ts +1 -1
  2. package/dist/areaTransitions.d.ts.map +1 -1
  3. package/dist/areaTransitions.js +12 -0
  4. package/dist/areaTransitions.js.map +1 -1
  5. package/dist/capital.d.ts +1 -1
  6. package/dist/capital.d.ts.map +1 -1
  7. package/dist/capital.js +4 -0
  8. package/dist/capital.js.map +1 -1
  9. package/dist/constants.d.ts +6 -1
  10. package/dist/constants.d.ts.map +1 -1
  11. package/dist/constants.js +18 -1
  12. package/dist/constants.js.map +1 -1
  13. package/dist/dungeonCharts.d.ts.map +1 -1
  14. package/dist/dungeonCharts.js +3 -0
  15. package/dist/dungeonCharts.js.map +1 -1
  16. package/dist/dwarfHold.d.ts +161 -0
  17. package/dist/dwarfHold.d.ts.map +1 -0
  18. package/dist/dwarfHold.js +246 -0
  19. package/dist/dwarfHold.js.map +1 -0
  20. package/dist/expandedContracts.d.ts +0 -3
  21. package/dist/expandedContracts.d.ts.map +1 -1
  22. package/dist/expandedContracts.js +2 -1
  23. package/dist/expandedContracts.js.map +1 -1
  24. package/dist/forgeHalt.d.ts +129 -0
  25. package/dist/forgeHalt.d.ts.map +1 -0
  26. package/dist/forgeHalt.js +192 -0
  27. package/dist/forgeHalt.js.map +1 -0
  28. package/dist/forgeHaltLine.d.ts +27 -0
  29. package/dist/forgeHaltLine.d.ts.map +1 -0
  30. package/dist/forgeHaltLine.js +87 -0
  31. package/dist/forgeHaltLine.js.map +1 -0
  32. package/dist/index.d.ts +6 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +6 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/smugglersStrand.d.ts.map +1 -1
  37. package/dist/smugglersStrand.js +5 -0
  38. package/dist/smugglersStrand.js.map +1 -1
  39. package/dist/storyQuests.d.ts.map +1 -1
  40. package/dist/storyQuests.js +8 -0
  41. package/dist/storyQuests.js.map +1 -1
  42. package/dist/westernEntrance.d.ts +17 -0
  43. package/dist/westernEntrance.d.ts.map +1 -1
  44. package/dist/westernEntrance.js +11 -0
  45. package/dist/westernEntrance.js.map +1 -1
  46. package/dist/westernHalts.d.ts +128 -0
  47. package/dist/westernHalts.d.ts.map +1 -0
  48. package/dist/westernHalts.js +82 -0
  49. package/dist/westernHalts.js.map +1 -0
  50. package/dist/westernLineAnnounce.d.ts +15 -0
  51. package/dist/westernLineAnnounce.d.ts.map +1 -0
  52. package/dist/westernLineAnnounce.js +19 -0
  53. package/dist/westernLineAnnounce.js.map +1 -0
  54. package/dist/westernLineTexts.d.ts +31 -0
  55. package/dist/westernLineTexts.d.ts.map +1 -0
  56. package/dist/westernLineTexts.js +70 -0
  57. package/dist/westernLineTexts.js.map +1 -0
  58. package/dist/westernTrain.d.ts +113 -1
  59. package/dist/westernTrain.d.ts.map +1 -1
  60. package/dist/westernTrain.js +257 -4
  61. package/dist/westernTrain.js.map +1 -1
  62. package/package.json +2 -2
package/dist/constants.js CHANGED
@@ -1915,6 +1915,15 @@ export const CAPITAL_BUILDING_MODELS = {
1915
1915
  // pieces and the undersea bore's furniture. The Forge Halt stairhouse, 7 x 5 solid: a portal (its arch is clicked to go
1916
1916
  // down to the line, never walked into), the door on -y.
1917
1917
  fhstairhouse: { across: 7, deep: 5, mouth: 0, solid: true },
1918
+ // Astra 12: dressed hall masonry and grouped Capital furniture. Arch returns enter existing rock;
1919
+ // only the two jamb tiles block, leaving the complete three-tile doorway traversable.
1920
+ fhwallpanel: { across: 3, deep: 1, mouth: 0, solid: true },
1921
+ fhcornerpier: { across: 1, deep: 1, mouth: 0, solid: true },
1922
+ fhdoorarch: { across: 5, deep: 1, mouth: 0, open: true, blockedOffsets: [[-2, 0], [2, 0]] },
1923
+ fhbookingcounter: { across: 5, deep: 1, mouth: 0, solid: true },
1924
+ fhtimetable: { across: 3, deep: 1, mouth: 0, solid: true },
1925
+ fhforgealcove: { across: 5, deep: 3, mouth: 0, solid: true },
1926
+ fhgoods: { across: 3, deep: 3, mouth: 0, solid: true },
1918
1927
  // The stair up inside a hall, 5 x 4 (an even depth: the extra row at the back, local -z, the even rule above): the
1919
1928
  // front row (z +1) is the open flagged landing where the player stands and clicks, the stair and its cheeks block.
1920
1929
  wlhaltstair: { across: 5, deep: 4, mouth: 0, open: true, blockedOffsets: [0, -1, -2].flatMap((z) => [-2, -1, 0, 1, 2].map((x) => [x, z])) },
@@ -2391,6 +2400,12 @@ function caveEntranceFacing(style) {
2391
2400
  return { fx: -1, fz: 0, sx: 0, sz: 1 };
2392
2401
  if (isGoblinCaveStyle(style))
2393
2402
  return { fx: 1, fz: 0, sx: 0, sz: 1 };
2403
+ // The Forge Halt's doors (forgeHalt.ts) face by their style's last letter, as a dreadmodel does.
2404
+ const halt = style?.match(/^(?:fhstairhouse|wlhaltstair)-([nsew])$/);
2405
+ if (halt) {
2406
+ const f = halt[1];
2407
+ return f === 'n' ? { fx: 0, fz: -1, sx: 1, sz: 0 } : f === 'e' ? { fx: 1, fz: 0, sx: 0, sz: 1 } : f === 'w' ? { fx: -1, fz: 0, sx: 0, sz: 1 } : { fx: 0, fz: 1, sx: 1, sz: 0 };
2408
+ }
2394
2409
  const dir = style?.includes('west')
2395
2410
  ? 'west'
2396
2411
  : style?.includes('east')
@@ -2755,7 +2770,9 @@ export function visitBlockedWalkOffsets(kind, style, scale, visit, doorFacing =
2755
2770
  // pellsgap, seacave; smugglersStrand.ts caveEntranceModel): their whole footprint is rock.
2756
2771
  // So is the Western Entrance's tunnel mouth (westernEntrance.ts WESTERN_TUNNEL_MOUTH_MODEL: the mine portal
2757
2772
  // stand-in today, the Blender westportal when it lands); spelled out here because this file is imported by both.
2758
- if (typeof style === 'string' && (style.startsWith('pellsgap') || style.startsWith('seacave') || style.startsWith('evmineentrance') || style.startsWith('westportal'))) {
2773
+ if (typeof style === 'string' && (style.startsWith('pellsgap') || style.startsWith('seacave') || style.startsWith('evmineentrance') || style.startsWith('westportal') ||
2774
+ // The Forge Halt's two doors (forgeHalt.ts): the stairhouse in the Capital, the stair up in the hall (slice 2-2).
2775
+ style.startsWith('fhstairhouse') || style.startsWith('wlhaltstair'))) {
2759
2776
  visitBlockedWalkOffsets('dreadmodel', style, scale, visit);
2760
2777
  return;
2761
2778
  }