aorecomp

Anarchy Online classic in the browser

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


docs/leather-armor.md (9299B)


Leather armor quality contracts

Seven reviewed regular Leather pairs use the shared selected-quality equipment, requirements, price and native-delivery paths at QL1..200. No family-specific gameplay branch is needed. These item contracts do not establish original shop, mission or creature-drop membership; acquisition remains separate research.

Original records

All fourteen complete records are independently decoded from the selected 14.9.1 resource database and compared against the maintained catalog. Raw bytes, offsets, payload hashes and the original index hash are retained in local/todo-progression-play/leather-audit/audit.json. The index SHA-256 is 46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71.

Piece QL1 / QL200 templates Wear slot Base value QL1 / QL2 AC90..97 at QL2
Vest 85481 / 85690 21 1000 / 1024 9/10/2/2/9/9/2/6
Pants 85521 / 85520 27 625 / 640 6/6/1/1/6/6/1/1
Helmet 85562 / 85561 18 750 / 768 6/7/2/2/6/6/2/2
Gloves 85602 / 85601 24 250 / 255 2/2/1/1/2/2/1/1
Boots 85645 / 85644 30 375 / 384 3/3/1/1/3/3/1/1
Body armor 85697 / 85696 21 1000 / 1024 9/10/2/2/9/9/2/2
Sleeves 85750 / 85749 23 or 25 250 / 255 2/2/1/1/2/2/1/1

Each pair has identical remaining descriptors after normalizing scalar properties1/2/54/74, the eight armor amounts and the two wear thresholds. QL1 requires Sense and Agility each greater than 7; QL200 requires them greater than 510 and 460. The selected criteria retain their strict comparisons: QL2 needs Sense 11/Agility 10, QL100 needs 258/233 and QL101 needs 261/236. The native-derived shared interpolation retains its rounding and quadratic price curve. Either stored anchor resolves the same selected contract.

Vest and body armor are distinct original styles. The vest has PoisonAC97=5 at QL1 and6 at QL2; body armor has1 and2. Their other armor amounts match. Both sleeves retain independent identities and either authored arm slot.

The local fandom page3383, touched2007-12-25, corroborates the regular set's later QL200 totals. A later Apocalypse crafting guide lists ordinary Leather as shop, chest and mission material, but its dated 2005/2007 contributions do not recover14.9.1 membership or probabilities. Bounded period searches found no precise stock or loot table. The current production shop and mission selections are unchanged.

Verification scope

Public inventory-handler cases cover both anchors, all seven pieces, the two arm slots, strict equality rejection, exact native endpoint delivery, all eight ACs, original values, removal and cold ownership. The glove matrix additionally checks QL5/100/101/199 rounding boundaries. Sale cases use the original startup terminal's five-percent modifier, covering cancelled offers, accepted sales, duplicate acceptance and cold recovery of unrelated ownership. An explicitly controlled creature-drop case also checks original endpoint presentation, repeated pickup, wear/removal and cold retention of the same QL100 glove stored at the high anchor. Its injected membership establishes no historical Leather drop table.

TestBrowserLeatherArmorQualities starts a controlled level100 Opifex with eleven physical instances before either WASM client connects. Actual browser input removes and re-wears all seven pieces, keeping both sleeve identities. Right-click selects default arm25 and can replace its current sleeve. To target the other arm, the fixture picks up that sleeve and places it explicitly in arm23 after the native action gate clears. Read-only snapshots expose the original action types3/6 used by kkr.dll's inventory admission gate; no timer or guest mutation is used to bypass it. Placement uses click-to-pick-up/click-to-place.

QL100 gloves stored at the high anchor wear at Sense 260/Agility 235. QL101 rejects locally with the original Sense 261/Agility 236 messages and sends no wear packet. The native skill window spends 495 IP for those two points, reducing 2000 to 1505, after which the exact QL101 instance wears. QL200 still rejects and remains owned. The separate public-handler matrix establishes the same server-side criteria even when a client submits an unqualified request.

The basic armor machine uses its original six-percent sale modifier: the QL100 glove's 59074 base value returns 3544 credits. Cancellation restores that same instance to the first free inventory cell, without changing the wallet; retrying and accepting leaves 3644 credits and ten exact remaining instances. The original body instance remains in inventory when the distinct vest wears. Owner and observer state, native template endpoints and selected qualities are checked through page reconnect and cold database loading.

Rendered Stats show Projectile/Melee/Energy AC 137/155/27 with QL100 gloves and 138/156/27 after QL101 training. Read-only server totals include all eight ACs: the final vest set is 138/156/27/27/138/138/27/31. Native raw stats90..97 are separate dictionary values; they must not be mistaken for the effective armor. Those screenshots prompted the shared skin-compositing audit. The original Leather sleeve/pants textures contain authored green cloth, which must remain. The RGB565 fix restores partial-texture skin merging separately. Settled owner/observer captures after ordinary movement retain the helmet, including after cold startup; immediate translucent spawn frames had obscured that comparison. Native wear effects and rendered appearance are checked separately.

Controlled fixture checks establish item behavior, not earned acquisition.

The maintained run local/game-tests/leather-20261031-024054/ passes in 36.07s. Its independently checked stopped world.sqlite matches every physical item, slot, count, quality, wallet and trained stat. A separate two-client fresh WASM startup from that unchanged database passes in 14.95s at local/game-tests/leather-cold-20261031-024246/. All ten item records and locations, both player records and all non-pose character columns remain identical. Native positions differ from the saved values by 0.014863m and quaternion dots exceed 0.9999999; neither client reports a runtime error. Final page and cold Stats retain 138/156/27. The native action-gate procedure evidence is retained in local/todo-progression-play/leather-native-actions-evidence.json beside the original resource audit and independent ownership reports.

The four focused Go test roots produce 128 passing test/subtest results under the race detector, including generated pickup and both stored anchors. The frame-snapshot C check and all 126 JavaScript harness tests also pass. The published WASM bundle includes the matching read-only action snapshot change. The full go test ./server/... -count=1 -timeout=1h run also passes: 16959 test/subtest results across 1728 passing roots, with the four browser-gated roots skipped in that run. The server package takes 2657.123s; game data takes 7.779s. go vet ./server/... passes. Full and focused race JSON logs remain in local/todo-progression-play/leather-go-full-verified.json and local/todo-progression-play/leather-go-race-verified.json.

Strict requirement boundaries

For QL2 vest85481/85690, the interpolated action6 operands are Sense10 and Agility9 with operator2 (strictly larger). Minimum abilities are therefore Sense11/Agility10. The sense/agility fields in TestLeatherArmorQualitiesWearRemoveAndRecover store these operands; its successful fixture adds one. Reading those fields as minimum abilities caused the reported disagreement with a native10/10 refusal. No gameplay formula change is required.

Independent original-resource reads recover7/7 at QL1 and510/460 at QL200. Original KKR FUN_100effe0 interpolates criteria values through FUN_100eff20, which adds0.5 before truncating the interpolated difference. The resulting QL2 operands are10/9. Original evaluator FUN_100056e0 requires the local effective stat to be strictly greater. The maintained server follows those same operations.

TestBrowserArmorRequirementBoundaries checks four controlled ability pairs for each stored anchor, keeping selected QL2. Actual right-clicks reject 10/10 on Sense and11/9 on Agility without sending a wear packet;11/10 and 12/11 send requests and equip the exact vest. Native feedback explicitly requires Sense11 and Agility10. All eight instances retain their stored anchor, selected quality and expected carried/worn slot after cold loading. These are controlled contract checks, not earned progression.

The eight native cases pass in62.22s under local/armor-requirement-boundaries/20261104-080632/, with no client errors or dropped events. The combined native/public-handler run passes2 roots/66 results in79.777s, including the existing QL1..200 armor matrix. Original payloads/hashes, static evidence, screenshot review and independent packet/ state checks are retained in that folder's parent.

AO_GAME_TEST=1 go test ./server -run '^(TestBrowserArmorRequirementBoundaries|TestLeatherArmorQualitiesWearRemoveAndRecover)$' -count=1 -timeout=5m -v