P3 thieves and barrow: crows and foxes steal food left out; the barrow with its guards, coffin loot and key pieces; blunt club vs bone (protocol 10)

This commit is contained in:
Paul Bailey
2026-11-05 09:23:31 +00:00
parent 96aac29606
commit 9528f91e47
20 changed files with 1695 additions and 21 deletions

View File

@@ -115,6 +115,7 @@ static func build(key: String) -> ArrayMesh:
"bear_hide": m = _pelt(BEAR_FUR)
"bear_fat": m = _pebble(271, Color(0.92, 0.86, 0.68), Vector3(0.1, 0.06, 0.08), 0.1)
"fur_rug": m = _rug()
"barrow_key": m = _barrow_key()
"berry_bush": m = _berry_bush(true)
"berry_bush_bare": m = _berry_bush(false)
_:
@@ -1002,3 +1003,19 @@ static func _rug() -> ArrayMesh:
_box(st, Vector3(sx, 0.11, -0.8), Vector3(0.08, 0.05, 0.05), P._mul(BEAR_FUR, 0.8))
_box(st, Vector3(0, 0.02, 0.92), Vector3(0.12, 0.03, 0.12), BEAR_FUR)
return P._commit(st)
# --- P3 the barrow --------------------------------------------------------------------
## A third of a carved stone disc, with a groove and a pale inlay.
static func _barrow_key() -> ArrayMesh:
var st := P._begin()
var r := _rng(311)
var segs := 5
for i in range(segs):
var a0 := -0.55 + 1.1 * i / segs
var a1 := -0.55 + 1.1 * (i + 1) / segs
var c := Vector3(sin((a0 + a1) * 0.5), 0, cos((a0 + a1) * 0.5)) * 0.09
var w := 2.0 * 0.09 * sin((a1 - a0) * 0.5) + 0.006
_box(st, c + Vector3(0, 0.02, 0), Vector3(w, 0.04, 0.12), P._mul(Color(0.45, 0.46, 0.44), r.randf_range(0.9, 1.05)), Basis(Vector3.UP, (a0 + a1) * 0.5))
_box(st, Vector3(0, 0.042, 0.1), Vector3(0.1, 0.006, 0.02), Color(0.82, 0.8, 0.7))
return P._commit(st)