@dreadwood-types/types 0.1.79 → 0.1.81

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.
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The Smugglers' Strand (James, 2026-09-28): the first members' place. Hope
3
+ * Beach runs on east of the rock ridge behind Old Pell as a strand of sand
4
+ * with the cliff to the north and the sea to the south, sealed on foot. The
5
+ * only way in is Pell's Gap, a door through the ridge that opens for members
6
+ * (the plan: backend members-workshop/plan/cove.html).
7
+ *
8
+ * Phase 1 is the gap, the smugglers' landing with their camp, and the
9
+ * smugglers themselves: level SMUGGLER_LEVEL, they rush anyone who comes into
10
+ * the landing and stand up again a while after they fall. The quest (the
11
+ * Marigold's strongbox), the sloop wreck, the rock pools and the sea cave
12
+ * come in later phases.
13
+ */
14
+ import { toLocalZ } from './constants.js';
15
+ /** The strand members reach through the gap: the ridge on the west, a rock spur on the east. */
16
+ export const SMUGGLERS_STRAND = { minX: 322, maxX: 469, minZ: 859, maxZ: 881 };
17
+ export function inSmugglersStrand(x, z) {
18
+ return x >= SMUGGLERS_STRAND.minX && x <= SMUGGLERS_STRAND.maxX && z >= SMUGGLERS_STRAND.minZ && z <= SMUGGLERS_STRAND.maxZ;
19
+ }
20
+ /**
21
+ * Pell's Gap: a caveentrance drawn from the Blender `pellsgap` model (3
22
+ * across x 5 deep, solid), facing west, a plank door at each end of a cleft
23
+ * through the ridge (x 318-321). It fills x 318-322 on rows z 869-871.
24
+ */
25
+ export const PELLS_GAP = { x: 320, z: 870, style: 'pellsgap-w' };
26
+ export function isPellsGapStyle(style) {
27
+ return typeof style === 'string' && style.startsWith('pellsgap');
28
+ }
29
+ /** Where a member comes out on the strand, and where anyone leaving (or put out) stands on Hope Beach, beside Pell. */
30
+ export const PELLS_GAP_STRAND_SIDE = { x: 324, z: 870 };
31
+ export const PELLS_GAP_BEACH_SIDE = { x: 316, z: 870 };
32
+ /** The smugglers' landing: their camp, the ground they hold (and rush anyone on). */
33
+ export const SMUGGLERS_LANDING = { minX: 326, maxX: 356, minZ: 861, maxZ: 874 };
34
+ export function inSmugglersLanding(x, z) {
35
+ return x >= SMUGGLERS_LANDING.minX && x <= SMUGGLERS_LANDING.maxX && z >= SMUGGLERS_LANDING.minZ && z <= SMUGGLERS_LANDING.maxZ;
36
+ }
37
+ /** Where each smuggler keeps watch. */
38
+ export const SMUGGLER_SPAWNS = [
39
+ { x: 335, z: 869 },
40
+ { x: 343, z: 873 },
41
+ { x: 351, z: 867 },
42
+ { x: 355, z: 872 },
43
+ ];
44
+ export const SMUGGLER_LEVEL = { min: 8, max: 12 };
45
+ export const SMUGGLER_RESPAWN_MS = 75_000;
46
+ /**
47
+ * The camp at the landing. The lean-to is the Blender `smugglerlean` model
48
+ * (3 x 3, solid, open to the south); the rest are the game's own beach props.
49
+ */
50
+ export const SMUGGLERS_CAMP = {
51
+ lean: { x: 334, z: 863, style: 'smugglerlean-s' },
52
+ fire: { x: 341, z: 868 },
53
+ boat: { x: 345, z: 879 },
54
+ crates: [{ x: 331, z: 867 }, { x: 332, z: 868 }],
55
+ casks: [{ x: 348, z: 863 }, { x: 349, z: 864 }],
56
+ lantern: { x: 329, z: 871 },
57
+ };
58
+ /** A spur of crag across the strand beyond the landing's reach: the rest is kept for later. */
59
+ export const SMUGGLERS_STRAND_SPUR = { minX: 470, maxX: 473 };
60
+ export const SMUGGLERS_STRAND_ZONE = {
61
+ id: 'smugglers-strand',
62
+ label: "Smugglers' Strand",
63
+ minX: SMUGGLERS_STRAND.minX,
64
+ maxX: SMUGGLERS_STRAND.maxX,
65
+ minZ: toLocalZ(SMUGGLERS_STRAND.minZ),
66
+ maxZ: toLocalZ(SMUGGLERS_STRAND.maxZ),
67
+ };
68
+ //# sourceMappingURL=smugglersStrand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smugglersStrand.js","sourceRoot":"","sources":["../src/smugglersStrand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG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AC,MAAM,qBAAqB,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAW,CAAC;AAEvE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,kBAAkB;IACtB,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,gBAAgB,CAAC,IAAI;IAC3B,IAAI,EAAE,gBAAgB,CAAC,IAAI;IAC3B,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreadwood-types/types",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "description": "Public wire protocol and client-safe constants for Dreadwoods",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",