aorecomp

Anarchy Online classic in the browser

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


docs/medical-quality.md (6710B)


Selected-quality recovery supplies

Regular treatment laboratories, nano kits and nano rechargers now support the reviewed QL1..200 interval through the shared item-family rules. Either endpoint can identify an instance. Its selected QL drives requirements, restoration, price, native low/high delivery and persistence.

Family QL1 / QL200 templates Restoration at endpoints Package Lock
Treatment Laboratory 25812 / 25811 30 / 1500 health 50 Patient Treatment, 15s
Nano Kit 85366 / 85367 10..12 / 1000 nano 25 User First Aid, 40s
Nano Recharger 25820 / 25821 30 / 2000 nano 50 Patient Time and Space, 20s

These pairs have matching immediate-use structures, apart from the interpolated restoration limits and skill requirements. Laboratory activation metadata AddSkill53028 changes target1 to target3 between endpoints; this initializes the item's skill list, as described in medical consumables. Both metadata forms are supported; no character skill buff is applied. The original resource 1000020 payloads were freshly decoded and compared with the maintained catalog. Complete records, offsets, hashes and the comparison are retained under local/medical-quality/. The original index SHA-256 remains 46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71.

Original KKR FUN_100f00a0 selects parameter keys 2/37 for Hit53002, and FUN_100f0aa0 applies the shared FUN_100eff20 integer interpolation. The existing requirement interpolation and stat74 price curve use the same selected quality. KKR SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0; retained REA records are native-basics.json, native-function-dispatch.json and native-argument-0.json / native-argument-1.json.

Shared consumer

resourceKit decodes both endpoint contracts before interpolating the two restoration limits. Both must be fully supported and agree on resource kinds, lock and feedback. An unknown effect at either endpoint rejects the entire use. Item IDs do not appear in the consumer; the three pairs live in server/gamedata/item_families.yaml.

The existing use handler still evaluates the selected-quality requirements, target, range, posture, combat state and cooldown. It commits charge consumption, resources and the appropriate actor's lock together before acknowledging success. An exhausted stack is removed with the resolved native endpoint pair. Ordinary low-significance simulation persistence is unchanged.

Native categorical properties come from the nearer endpoint. At QL100 the laboratory retains its low name/icon; at QL101 it uses HQ Health Treatment Laboratory. Numeric restoration and requirements continue interpolating across that boundary rather than jumping to the endpoint's values.

The authored QL400 definitions remain supported at their exact qualities. QL201..399 is still unreviewed, and the startup laboratory remains fixed QL1. Health First Aid remains blocked by the separate incoming-hit delivery issue in First Aid. This change supplies no new stock, loot membership or quality-generation policy. In particular, the training terminal's QETS contents remain unresolved; the basic medical booths retain their existing QL1 subset.

Verification

The public item-use handler tests both stored anchors at QL1,2,100,101,199,200. Hardcoded expectations cover restoration limits, strict skill thresholds, price, native endpoint delivery, charge debit, fixed cooldown and cold ownership. Failure cases cover a required charge write, ignored charge/health writes, lock failure, deferred commit, retry and immediate replay. Another case rejects an unsupported upper effect. Last-charge checks retain the unrelated weapon and remove the consumed record and its native proxy for all three families.

The corrected negative baseline overlays only the old consumer while retaining the reviewed pairs and valid fixtures. It fails 45 child cases and their three root tests, with six endpoint controls and the unsupported-contract control passing. Earlier logs red.json / focused.json used invalid zero abilities; they are fixture failures and are excluded from that result. red-valid.json and focused-valid.json retain the corrected comparison.

The final focused recovery/startup/family run passed 14 roots / 129 total results. Race checks passed the quality/use and concurrent-replay cases, with the corrected last-charge test passing separately. Its initial assertion had used server slot65 instead of native slot49; charge removal itself was correct. Build and vet passed. The broader maintained run finished in 2072 seconds, exercising 1621 roots / 16077 test results. Its only failures were that old assertion's three cases and their parent; the corrected normal/race checks account for those separately. This is combined coverage, not a single clean full-suite run. The retained checkpoint includes test-verification.json. The earlier default 10-minute run timed out without an assertion failure and is not counted as a completed suite.

One owned, controlled visitor tested the actual WASM client on GPU/OpenGL. Its skills, level, resources and five items were fixtures; this is a quality/use check, not ordinary acquisition or an earned-income progression claim.

Native check Selected QL Observed result
Laboratory 2 Treatment11 rejected; 12 accepted; +37 health
Nano Kit 2 +16 nano on first use, within 15..17 limits
Nano Recharger 2 +40 nano
Laboratory 100 Treatment451 rejected; 452 accepted; +761 health
Laboratory 101 Treatment452 rejected; 457 accepted; +769 health

Received TemplateAction and subsequent absolute resource updates establish those deltas separately from passive regeneration. The native information windows independently show selected QLs, names and thresholds. Immediate cooldown repeats preserved charges. Two further QL2 nano-kit uses restored15 each; the final charge removed its exact instance. Page reconnect and an unchanged-database server restart retained the other four instances, qualities, endpoints and quantities.

Both native error lists are empty. The test client closed, and only its visitor and four remaining items were removed. Every unrelated table hash matched across cleanup, with foreign-key/integrity checks. The retained earned Enforcer's full profile, wallet, eight item rows and learned program matched the pre-test snapshot. One LAN preview remains on the default ports. Native streams, screenshots, frozen SQL phases and assertion results are retained in local/medical-quality/.