aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/research-notes/loot-quality-research/selection-evidence.md (4505B)


Loot quality selection: bounded evidence review

2026-10-27. Read-only preparation for the P0 level-appropriate loot task. No production loot rule or endpoint family changed in this review.

Current implementation

server/npc_loot.go:rollCorpseLoot_locked separates independent item membership rolls from the explicit quality retained in each NPCLoot row. Shared item-family interpolation already serves corpse pickup, requirements, equipment, pricing, missions and shops. The reviewed table has nine families. Monster Parts42640 (QL1) /42641 (QL400) are not yet listed as an interpolation family. Both admitted Leet levels still select fixed QL1 parts. The code-restricted level4 training boss selects QL4 Metaplast gloves and the reviewed Rusty pistol, at provisional chances. Do not replace those selections with either endpoint's own QL.

Sources and limitations

Next concrete checks

Audit both regular Monster Part payloads completely and verify their relationship before admitting the pair. Their empty effect sections should permit a narrow shared-family extension without new bespoke Go interpolation. Test native low/high/selected-QL delivery, control edits, corpse pickup, sale price, identity and cold recovery. Keep selecting a fixed profile QL separate from claiming a historical random distribution. Broader equipment family admission and a useful normal-play wear/purchase gate remain P0; the existing boss's earned glove has passed pickup/rejection/sale but still lacks ordinary qualified wear proof.

Endpoint audit result

tmp_audit_parts.py reread original records1000020/42640 and42641 and matched all decoded fields and payload hashes against the checked catalog. Both have header51005/2/15/23, identical flags/carry capability, identical strings and no sections. The only differing stats are QL54 (1/400), icon79 (144704/144701) and value74 (100/10000). monster-parts-audit.json retains the index digest, complete records and source offsets; the two126-byte payload slices are retained beside it. This corroborates a compatible family candidate. Native low/high instance interpolation and value rounding remain required before production admission.

A minimal candidate design for later implementation is to make each loot row's quality an explicit inclusive [low,high] interval, retaining [q,q] for fixed-QL items. It could use the existing roll source after a successful membership roll, validate the complete interval against a reviewed family, and retain the selected quality in the existing atomic outcome. This would keep distribution policy in species/level data rather than hardcode a universal NPC-level formula. This is an unimplemented design, not evidence of a historical uniform distribution.