docs(runicnpc): stage 7 built and walked; API 6 and the dropLoot switch #320

Merged
whitlocktech merged 1 commits from docs/runicnpc-stage7-built into main 2026-10-06 07:17:22 +00:00
Member

What

  • runicnpc/API.md: version 6. Adds the profile's loot block, with an example, and a spawn's loot.dropTable override.
  • rust-link/PROTOCOL.md: §19.15, world.place's dropLoot.
  • runicnpc/PLAN.md: stage 7's "Built" section. It covers the three branches, the builds (Rust 25681086, Oxide 2.0.7801, Carbon 2.0.262), and the harness (s7 25/25, all 270/270, both rigs). It also has the walk table and what building it found:
    • Rust calls ApplyLoot after OnCorpsePopulate unless the hook answers with the corpse.
    • The NPC's inventory is already empty when the hook runs, so a kit start takes its items in OnDied.

Stacked on #319 (the spike and D300–D301). Merge #319 first and this diff is the build alone.

Code: runicnpc-rust (stage 7), Rust-Plugins and Module-Rust (feat/runicnpc-stage7).

Checklist

  • I have read CONTRIBUTING.md.
  • Docs only.
  • AI tools were used. Tool(s): Claude Code (Claude Opus 5.5). The commit carries the Co-Authored-By trailer.
  • I agree that my contribution is licensed under GPL-3.0-or-later.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY

## What - **`runicnpc/API.md`:** version 6. Adds the profile's `loot` block, with an example, and a spawn's `loot.dropTable` override. - **`rust-link/PROTOCOL.md`:** §19.15, `world.place`'s `dropLoot`. - **`runicnpc/PLAN.md`:** stage 7's "Built" section. It covers the three branches, the builds (Rust 25681086, Oxide 2.0.7801, Carbon 2.0.262), and the harness (`s7` 25/25, all 270/270, both rigs). It also has the walk table and what building it found: - Rust calls `ApplyLoot` after `OnCorpsePopulate` unless the hook answers with the corpse. - The NPC's inventory is already empty when the hook runs, so a kit start takes its items in `OnDied`. **Stacked on #319** (the spike and D300–D301). Merge #319 first and this diff is the build alone. Code: runicnpc-rust (stage 7), Rust-Plugins and Module-Rust (`feat/runicnpc-stage7`). ## Checklist - [x] I have read CONTRIBUTING.md. - [x] Docs only. - [x] AI tools were used. Tool(s): `Claude Code (Claude Opus 5.5)`. The commit carries the `Co-Authored-By` trailer. - [x] I agree that my contribution is licensed under GPL-3.0-or-later. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
wtclaude added 4 commits 2026-10-06 06:44:21 +00:00
The corpse is filled in OnCorpsePopulate (ApplyLoot is protected on
Oxide and public on Carbon, so no one override fits both); Rust's
crates spawn empty with their loot off; a locked crate's timer is its
starting count; a corpse's time is ResetRemovalTime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
D300 a "nothing" corpse is truly empty, clothes too; D301 a dropped crate
stays until emptied, the locked crate keeping Rust's own decay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
- runicnpc/API.md: version 6, the profile's loot block and a spawn's
  loot.dropTable override.
- rust-link/PROTOCOL.md: §19.15, world.place's dropLoot.
- runicnpc/PLAN.md: stage 7's "Built" section. It covers the builds it
  was tested on (Rust 25681086, Oxide 2.0.7801, Carbon 2.0.262), the
  harness (s7 25/25, all 270/270, both rigs) and the walk on both rigs
  through the site. It also lists what building it found: Rust's
  ApplyLoot after the hook, and the inventory already emptied when the
  hook runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
whitlocktech merged commit ae7f26d491 into main 2026-10-06 07:17:22 +00:00
whitlocktech deleted branch docs/runicnpc-stage7-built 2026-10-06 07:17:24 +00:00
Sign in to join this conversation.
No description provided.