@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.
- package/dist/areaTransitions.d.ts +1 -1
- package/dist/areaTransitions.d.ts.map +1 -1
- package/dist/areaTransitions.js +12 -0
- package/dist/areaTransitions.js.map +1 -1
- package/dist/capital.d.ts +1 -1
- package/dist/capital.d.ts.map +1 -1
- package/dist/capital.js +4 -0
- package/dist/capital.js.map +1 -1
- package/dist/constants.d.ts +6 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +18 -1
- package/dist/constants.js.map +1 -1
- package/dist/dungeonCharts.d.ts.map +1 -1
- package/dist/dungeonCharts.js +3 -0
- package/dist/dungeonCharts.js.map +1 -1
- package/dist/dwarfHold.d.ts +161 -0
- package/dist/dwarfHold.d.ts.map +1 -0
- package/dist/dwarfHold.js +246 -0
- package/dist/dwarfHold.js.map +1 -0
- package/dist/expandedContracts.d.ts +0 -3
- package/dist/expandedContracts.d.ts.map +1 -1
- package/dist/expandedContracts.js +2 -1
- package/dist/expandedContracts.js.map +1 -1
- package/dist/forgeHalt.d.ts +129 -0
- package/dist/forgeHalt.d.ts.map +1 -0
- package/dist/forgeHalt.js +192 -0
- package/dist/forgeHalt.js.map +1 -0
- package/dist/forgeHaltLine.d.ts +27 -0
- package/dist/forgeHaltLine.d.ts.map +1 -0
- package/dist/forgeHaltLine.js +87 -0
- package/dist/forgeHaltLine.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/smugglersStrand.d.ts.map +1 -1
- package/dist/smugglersStrand.js +5 -0
- package/dist/smugglersStrand.js.map +1 -1
- package/dist/storyQuests.d.ts.map +1 -1
- package/dist/storyQuests.js +8 -0
- package/dist/storyQuests.js.map +1 -1
- package/dist/westernEntrance.d.ts +17 -0
- package/dist/westernEntrance.d.ts.map +1 -1
- package/dist/westernEntrance.js +11 -0
- package/dist/westernEntrance.js.map +1 -1
- package/dist/westernHalts.d.ts +128 -0
- package/dist/westernHalts.d.ts.map +1 -0
- package/dist/westernHalts.js +82 -0
- package/dist/westernHalts.js.map +1 -0
- package/dist/westernLineAnnounce.d.ts +15 -0
- package/dist/westernLineAnnounce.d.ts.map +1 -0
- package/dist/westernLineAnnounce.js +19 -0
- package/dist/westernLineAnnounce.js.map +1 -0
- package/dist/westernLineTexts.d.ts +31 -0
- package/dist/westernLineTexts.d.ts.map +1 -0
- package/dist/westernLineTexts.js +70 -0
- package/dist/westernLineTexts.js.map +1 -0
- package/dist/westernTrain.d.ts +113 -1
- package/dist/westernTrain.d.ts.map +1 -1
- package/dist/westernTrain.js +257 -4
- package/dist/westernTrain.js.map +1 -1
- 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
|
}
|