@dreadwood-types/types 0.1.174 → 0.1.176

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 (41) hide show
  1. package/dist/attackableNpcs.d.ts.map +1 -1
  2. package/dist/attackableNpcs.js +5 -0
  3. package/dist/attackableNpcs.js.map +1 -1
  4. package/dist/constants.d.ts +7 -2
  5. package/dist/constants.d.ts.map +1 -1
  6. package/dist/constants.js +28 -0
  7. package/dist/constants.js.map +1 -1
  8. package/dist/cooking.d.ts.map +1 -1
  9. package/dist/cooking.js +2 -0
  10. package/dist/cooking.js.map +1 -1
  11. package/dist/foragePatches.d.ts +50 -0
  12. package/dist/foragePatches.d.ts.map +1 -0
  13. package/dist/foragePatches.js +66 -0
  14. package/dist/foragePatches.js.map +1 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +3 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/legacy.d.ts +3 -0
  20. package/dist/legacy.d.ts.map +1 -1
  21. package/dist/legacy.js +3 -0
  22. package/dist/legacy.js.map +1 -1
  23. package/dist/potionMaking.d.ts.map +1 -1
  24. package/dist/potionMaking.js +5 -1
  25. package/dist/potionMaking.js.map +1 -1
  26. package/dist/quests.d.ts.map +1 -1
  27. package/dist/quests.js +7 -0
  28. package/dist/quests.js.map +1 -1
  29. package/dist/storyQuests.d.ts +4 -1
  30. package/dist/storyQuests.d.ts.map +1 -1
  31. package/dist/storyQuests.js +72 -0
  32. package/dist/storyQuests.js.map +1 -1
  33. package/dist/westernQuests.d.ts +78 -0
  34. package/dist/westernQuests.d.ts.map +1 -0
  35. package/dist/westernQuests.js +58 -0
  36. package/dist/westernQuests.js.map +1 -0
  37. package/dist/westernWildlife.d.ts +35 -0
  38. package/dist/westernWildlife.d.ts.map +1 -0
  39. package/dist/westernWildlife.js +37 -0
  40. package/dist/westernWildlife.js.map +1 -0
  41. package/package.json +2 -2
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The Western Entrance's wildlife (2026-10-10, the Western Lands' foraging belt; backend NEXT_STEPS "The Western Entrance
3
+ * and the Western Lands", item 3): the headland's gentle creatures, so the zone is a level 1-10 place off the South Fields.
4
+ * Herring gulls on the cliff tops and the neck's sand, shore crabs on the neck, hares on the meadows and feral goats on the
5
+ * grass above the south and west cliffs. Like Hopewood Common's and Hollin Brook's (hopewoodWildlife.ts,
6
+ * hollinWildlife.ts), every one is passive (it fights back only when struck) and none hits hard.
7
+ *
8
+ * Kinds of their own, apart from the beach's `seagull` and `crab`, the New Forest's `rabbit`, the snow `hare`, Hollin
9
+ * Brook's `brookhare` and the pen `goat` (a quest counts some of those, and the New Forest's never respawn), so the
10
+ * permanent population here changes no rule those carry. The client draws each on a model the game already has
11
+ * (WESTERN_WILDLIFE_STAND_IN); none has a Blender model of its own yet (backend NEXT_STEPS).
12
+ *
13
+ * The spots and the spawning are the backend's (src/westernWildlife.ts): it needs the built world to find open ground, off
14
+ * the paths, out of the copses, and never within reach of the train's line.
15
+ */
16
+ export declare const WESTERN_WILDLIFE_KINDS: readonly ["headlandgull", "shorecrab", "meadowhare", "feralgoat"];
17
+ export type WesternWildlifeKind = (typeof WESTERN_WILDLIFE_KINDS)[number];
18
+ export declare function isWesternWildlifeKind(kind: string): kind is WesternWildlifeKind;
19
+ export type WesternCreatureStats = {
20
+ name: string;
21
+ /** Rolled each life, inclusive. */
22
+ level: readonly [number, number];
23
+ maxHit: number;
24
+ /** The visual scale the server sends (the client's NPC `scale`). */
25
+ scale: number;
26
+ /** One line for the guide and the examine card. */
27
+ note: string;
28
+ };
29
+ export declare const WESTERN_CREATURES: Readonly<Record<WesternWildlifeKind, WesternCreatureStats>>;
30
+ /**
31
+ * The model each is drawn on until it has one of its own (frontend render/assets/westernWildlife.ts): the gull on the
32
+ * beach seagull, the crab on the beach crab, the hare on the rabbit drawn larger, the goat on the pen goat.
33
+ */
34
+ export declare const WESTERN_WILDLIFE_STAND_IN: Readonly<Record<WesternWildlifeKind, string>>;
35
+ //# sourceMappingURL=westernWildlife.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"westernWildlife.d.ts","sourceRoot":"","sources":["../src/westernWildlife.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,sBAAsB,mEAAoE,CAAC;AACxG,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,mBAAmB,CAE/E;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAMzF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAKnF,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The Western Entrance's wildlife (2026-10-10, the Western Lands' foraging belt; backend NEXT_STEPS "The Western Entrance
3
+ * and the Western Lands", item 3): the headland's gentle creatures, so the zone is a level 1-10 place off the South Fields.
4
+ * Herring gulls on the cliff tops and the neck's sand, shore crabs on the neck, hares on the meadows and feral goats on the
5
+ * grass above the south and west cliffs. Like Hopewood Common's and Hollin Brook's (hopewoodWildlife.ts,
6
+ * hollinWildlife.ts), every one is passive (it fights back only when struck) and none hits hard.
7
+ *
8
+ * Kinds of their own, apart from the beach's `seagull` and `crab`, the New Forest's `rabbit`, the snow `hare`, Hollin
9
+ * Brook's `brookhare` and the pen `goat` (a quest counts some of those, and the New Forest's never respawn), so the
10
+ * permanent population here changes no rule those carry. The client draws each on a model the game already has
11
+ * (WESTERN_WILDLIFE_STAND_IN); none has a Blender model of its own yet (backend NEXT_STEPS).
12
+ *
13
+ * The spots and the spawning are the backend's (src/westernWildlife.ts): it needs the built world to find open ground, off
14
+ * the paths, out of the copses, and never within reach of the train's line.
15
+ */
16
+ export const WESTERN_WILDLIFE_KINDS = ['headlandgull', 'shorecrab', 'meadowhare', 'feralgoat'];
17
+ export function isWesternWildlifeKind(kind) {
18
+ return WESTERN_WILDLIFE_KINDS.includes(kind);
19
+ }
20
+ export const WESTERN_CREATURES = {
21
+ // Scales are drawn larger than life so each reads from the player camera.
22
+ headlandgull: { name: 'Herring Gull', level: [1, 2], maxHit: 1, scale: 2.0, note: 'Wheels over the cliff tops and the neck\'s sand, loud and bold. Feathers.' },
23
+ shorecrab: { name: 'Shore Crab', level: [1, 3], maxHit: 2, scale: 1.8, note: 'Sidles over the sand of the neck. Crab meat.' },
24
+ meadowhare: { name: 'Meadow Hare', level: [2, 4], maxHit: 2, scale: 1.9, note: 'Grazes the open meadows east and south of the station. A hare pelt and game meat.' },
25
+ feralgoat: { name: 'Feral Goat', level: [6, 8], maxHit: 4, scale: 1.9, note: 'A shaggy goat gone wild on the grass above the south and west cliffs. It butts back hard for a goat. Game meat.' },
26
+ };
27
+ /**
28
+ * The model each is drawn on until it has one of its own (frontend render/assets/westernWildlife.ts): the gull on the
29
+ * beach seagull, the crab on the beach crab, the hare on the rabbit drawn larger, the goat on the pen goat.
30
+ */
31
+ export const WESTERN_WILDLIFE_STAND_IN = {
32
+ headlandgull: 'seagull',
33
+ shorecrab: 'crab',
34
+ meadowhare: 'rabbit',
35
+ feralgoat: 'goat',
36
+ };
37
+ //# sourceMappingURL=westernWildlife.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"westernWildlife.js","sourceRo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
  {
2
2
  "name": "@dreadwood-types/types",
3
- "version": "0.1.174",
3
+ "version": "0.1.176",
4
4
  "description": "Public wire protocol and client-safe constants for Dreadwoods",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "tsc -p tsconfig.json",
25
- "test": "node --test scripts/animation-test.mjs scripts/starter-jobs-test.mjs scripts/cooking-nudge-test.mjs scripts/surface-chart-test.mjs scripts/south-expansion-test.mjs scripts/rudd-test.mjs scripts/cave-map-test.mjs scripts/birch-combat-test.mjs scripts/fort-rook-bosses-test.mjs scripts/bounty-first-test.mjs scripts/running-test.mjs scripts/energy-test.mjs scripts/starter-town-test.mjs scripts/starter-expansion-test.mjs scripts/five-arches-test.mjs scripts/landing-test.mjs scripts/cove-ship-test.mjs scripts/south-fields-quests-test.mjs scripts/arcane-lands-test.mjs scripts/fair-folk-test.mjs scripts/world-boss-ring-test.mjs scripts/ringstone-fight-test.mjs scripts/hopewood-wildlife-test.mjs scripts/hollin-wildlife-test.mjs scripts/hopewood-quests-test.mjs scripts/western-train-test.mjs scripts/moving-train-test.mjs scripts/western-station-test.mjs scripts/hollin-quests-test.mjs",
25
+ "test": "node --test scripts/animation-test.mjs scripts/starter-jobs-test.mjs scripts/cooking-nudge-test.mjs scripts/surface-chart-test.mjs scripts/south-expansion-test.mjs scripts/rudd-test.mjs scripts/cave-map-test.mjs scripts/birch-combat-test.mjs scripts/fort-rook-bosses-test.mjs scripts/bounty-first-test.mjs scripts/running-test.mjs scripts/energy-test.mjs scripts/starter-town-test.mjs scripts/starter-expansion-test.mjs scripts/five-arches-test.mjs scripts/landing-test.mjs scripts/cove-ship-test.mjs scripts/south-fields-quests-test.mjs scripts/arcane-lands-test.mjs scripts/fair-folk-test.mjs scripts/world-boss-ring-test.mjs scripts/ringstone-fight-test.mjs scripts/hopewood-wildlife-test.mjs scripts/hollin-wildlife-test.mjs scripts/hopewood-quests-test.mjs scripts/western-train-test.mjs scripts/moving-train-test.mjs scripts/western-station-test.mjs scripts/hollin-quests-test.mjs scripts/western-lost-supplies-test.mjs",
26
26
  "dev": "tsc -p tsconfig.json --watch",
27
27
  "prepare": "npm run build",
28
28
  "prepublishOnly": "npm run build"