Wolves with a den, fishing, and a mixed diet
Wolves - Den: a boulder cave at the foot of the rim, sited from the seed (away from the sea and spawn, mouth toward the valley, clearing in front) - Grace period: no wolves days 1-2; they move in on day 3 and howl; hunting from night 4; pack of 2, 3 from day 6, 4 from day 9; replaced by day - Wary pack hunters: circle and dart in one at a time; a lit campfire is a safe zone, a torch makes them hesitate, walls block bites (line of sight); hit one and the pack turns; hurt wolves flee; a lone wolf is timid; by day they defend the den; home at dawn - Glowing eyes, synthesised howls, can't sleep with wolves prowling - Wolf pelt and Wolf Cloak (+25 warmth) - Animals take a committed detour around obstacles Fishing - Fishing rod (workbench); cast a float onto the lake, 1.5 s to land a bite - Perch and rarer trout; faster bites at dawn/dusk and in rain; grill them - Visible fish near the shore that jump with splash rings Mixed diet - Foods belong to meat, fish or greens; each level runs down over ~1.5 days - One group low: no healing; two low: Malnourished (health drains); all three good: Balanced diet (heal x1.5); HUD diet bars; saved Tests: test_wolves and test_fishing_diet; run_all.sh covers 9 suites
This commit is contained in:
@@ -33,7 +33,9 @@ Detailed plan in `docs/SURVIVAL_DESIGN.md` (phases M1a–M1d).
|
||||
- [x] Snap-together building: floor/wall/door/roof/gable, resource cost, support + collapse, dismantling *(M1c)*
|
||||
- [x] Bed spawn point and sleeping, resource regrowth *(M1c)*
|
||||
- [x] Creatures (rabbit, deer, boar), hunting, club/spear/bow, butchering, cooked-food buffs, hide cloak *(M1d)*
|
||||
- [ ] Wolves at night, hide armour, more recipes *(later M1 polish)*
|
||||
- [x] Wolves at night with a den and a 3-day grace period, wolf cloak *(M1e)*
|
||||
- [x] Fishing (rod, perch and trout, grilling) and a mixed diet *(M1e)*
|
||||
- [ ] Hide armour, more recipes, sea fishing *(later M1 polish)*
|
||||
- **Done when:** gather → craft → build a tiny shelter, single-player.
|
||||
|
||||
## M2 — Multiplayer · ~2–4 months
|
||||
|
||||
@@ -20,6 +20,10 @@ tests/run_all.sh
|
||||
```
|
||||
Or one at a time:
|
||||
```bash
|
||||
# Wolves: den, grace period, hunting, fire and walls, pack tactics
|
||||
godot --headless --path . --script res://tests/test_wolves.gd
|
||||
# Fishing and the mixed diet
|
||||
godot --headless --path . --script res://tests/test_fishing_diet.gd
|
||||
# Wildlife, melee, spear, bow, butchering, cooking + buffs, cloak, drops
|
||||
godot --headless --path . --script res://tests/test_creatures_combat.gd
|
||||
# Weather, shelter, snap building, support, doors, beds, regrowth
|
||||
|
||||
@@ -159,7 +159,8 @@ Built in M1b (`scripts/player/survival.gd`), current numbers:
|
||||
| Deer | 40 | 9 m/s | 16 m (30 m if you sprint) | flees, outruns you | 2-3 meat, 1-2 hide |
|
||||
| Boar | 60 | 6.6 m/s | never | neutral; hit it and it charges and gores you for 14 every 1.6 s for 18 s, and flees below 30% HP | 3-4 meat, 1-2 hide |
|
||||
|
||||
- *(later)* **Wolf**: night predator, hunts in packs.
|
||||
- **Wolf** *(built)*: 45 HP, 8.6 m/s, bites for 9 (every 1.2 s at most).
|
||||
Butchering gives 1-2 meat and a wolf pelt. See 2.8a.
|
||||
- `scripts/creatures/creature.gd` runs each animal's state machine (idle,
|
||||
wander, flee, charge, dead). Steering is over the heightmap with no navmesh:
|
||||
a probe ahead turns the animal away from water, steep drops, the world edge
|
||||
@@ -174,6 +175,65 @@ Built in M1b (`scripts/player/survival.gd`), current numbers:
|
||||
arrows stuck in it come back to you. Carcasses rot away after 5 min.
|
||||
- Feathers lie in the meadows as ground pickups (70, regrowing like sticks).
|
||||
|
||||
### 2.8a Wolves and the den *(built)*
|
||||
- **The den** (`den.gd`): a cave of piled boulders at the foot of the
|
||||
mountain rim, chosen from the seed. It sits away from the sea and the
|
||||
spawn, opens toward the valley, and has a clearing in front of its mouth.
|
||||
It has a rock roof (it counts as shelter) and old bones on the floor.
|
||||
- **Grace period** (`wolf_pack.gd`):
|
||||
- Days 1-2: no wolves at all.
|
||||
- Day 3: wolves move into the den and howl at night, with a toast
|
||||
warning. They don't hunt yet.
|
||||
- Night 4 onward: the pack hunts (night is 19:30 to 05:30, the same as
|
||||
the bed). Pack size is 2, then 3 from day 6 and 4 from day 9. Wolves
|
||||
you kill are replaced at the den by day, while you're away from it.
|
||||
- **Temperament: wary pack hunters**, neither berserkers nor harmless:
|
||||
- The pack circles you about 10 m out, and one wolf at a time darts in to
|
||||
bite, every 4.5 s or so.
|
||||
- A **lit campfire** within 8 m is a safe zone: they circle 14 m out
|
||||
around the fire and never close in.
|
||||
- A **held torch** makes them hesitate (2.5x longer between darts).
|
||||
- **Walls work**: a bite needs a clear line from the wolf to you, so a
|
||||
closed hut is safe. You also can't sleep while wolves prowl within 40 m.
|
||||
- Hit one and the whole pack turns on you. Below 40% HP a wolf runs off
|
||||
for the night.
|
||||
- The **last wolf** of a pack is timid: it keeps its distance, backs off,
|
||||
and won't start a fight.
|
||||
- **By day** they rest in the den but defend it. Within 14 m they get up
|
||||
and watch you; within 8 m (or if you hit one) they attack.
|
||||
- At dawn they go home. Once out of your sight they slip straight back.
|
||||
- Wolves glow-eyed at night (emissive eyes). Howls are synthesised.
|
||||
- Animals now take a short committed detour when blocked, so they slide
|
||||
round huts and rocks instead of turning back into them.
|
||||
- **Wolf Cloak** (3 wolf pelt + 2 hide + 4 fiber, workbench): +25 warmth,
|
||||
wet chill x0.35.
|
||||
|
||||
### 2.8b Fishing *(built)*
|
||||
- **Fishing Rod** (2 sticks, 3 fiber, 1 flint at a workbench). LMB casts
|
||||
the float in a lobbed arc. It has to land on lake water at least 0.5 m
|
||||
deep: on land you're told so and nothing bites.
|
||||
- A bite comes after 5-14 s, sooner at dawn and dusk (x0.6) and in the rain
|
||||
(x0.8). The float bobs and dips; you have **1.5 s** to click and land the
|
||||
fish, or it gets away and you wait again. Clicking with nothing biting
|
||||
just reels in. Walking more than about 30 m off snaps the line, and
|
||||
switching away from the rod reels in.
|
||||
- Catch: perch (common) and trout (22%, or 40% at dawn and dusk). Grill
|
||||
them at a campfire. A few fish swim visibly in the lake.
|
||||
|
||||
### 2.8c Mixed diet *(built)*
|
||||
Every food belongs to a group: **meat** (raw meat 8, cooked 40), **fish**
|
||||
(raw 8-12, grilled perch 30, grilled trout 45) or **greens** (berries 14,
|
||||
mushroom 10, roasted mushroom 30). Each group has a level (0-100, starting
|
||||
at 60) that runs down over about 1.5 days (1800 s). The HUD shows three
|
||||
small Diet bars, and a low group blinks.
|
||||
- **One group under 15**: Poor diet (need fish). No natural healing.
|
||||
- **Two or more under 15**: Malnourished. Health drains 0.12/s and stamina
|
||||
recovers at 70%. Living on berries alone keeps you full but kills you in
|
||||
about a day and a half.
|
||||
- **All three at 40 or more**: Balanced diet, healing x1.5.
|
||||
- Diet is saved. After death each group is at least 30, so you don't
|
||||
respawn straight into malnutrition.
|
||||
|
||||
### 2.9 Weapons & combat *(built in M1d)*
|
||||
| Weapon | Recipe | Use | Damage |
|
||||
|---|---|---|---|
|
||||
|
||||
Reference in New Issue
Block a user