aorecomp

Anarchy Online classic in the browser

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


docs/earned-creature-upgrade.md (6969B)


Earned creature armor progression

An ordinarily created Omni Atrox Enforcer now picks up and wears useful creature-dropped armor, earns another level, trains into a stronger retained drop and sells other creature loot. Both native WASM clients and SQLite agree on the equipment effects and durable ownership after page reload and a cold restart. This verifies the selected Omni training boss progression path; its mapping, balance and loot probabilities remain explicit reconstruction policy.

Ordinary acquisition

The retained character began at level 3, with 1,825 current-level XP, 8,309 IP, 90 credits and 23 owned items. Strength was 15 and Agility 11. Its previously earned QL 5 gloves 145 remained in inventory; bought Low-Tech gloves 38 and boots 147 were worn. Bought laboratory 144 held 48 charges. Creation used the current Options flow; the original game creation sequence remains a separate TODO.

Nine successive authored boss lives began at full 150 HP. The player began each fight at its full 138 HP, using the existing QL 3 bat and native Fast Attack. There were no grants, edited skills, health resets, moved enemies or controlled reward rolls. The control panel and SQLite were used for observation and consistent private snapshots. Normal sitting, self-targeting and laboratory use provided recovery. Brawl remains unavailable as described in its existing research; attempted B keys are not counted as attacks.

Boss instance Final captured player HP Corpse credits Equipment outcome
1068716 62 2 QL 3 gloves 156 expired unclaimed
1068717 76 1 QL 3 gloves 157 expired before pickup committed
1068718 59 1 No equipment
1068719 75 3 QL 5 pistol 158 picked up
1068720 66 1 QL 5 gloves 159 picked up
1068721 47 3 QL 3 gloves 160 picked up and worn
1068722 58 3 No equipment
1068723 49 4 QL 3 gloves 161 picked up
1068724 60 3 No equipment; earned level 4

HP values describe the retained native samples; passive recovery can advance before a later SQL read. The last boss still had 4 HP at the end of the timed fight capture. Its final blow and level-up occur in the subsequent ordinary backward-step capture, which supplies the final row above.

Each death awarded 150 XP. Native packet reconstruction identifies all nine corpses, mesh 25717 and death resource 25721, with 21 total rolled credits. The first corpse's two credits expired unclaimed; ordinary Use collected the other 19. The two expired glove drops never became player-owned. Opening a corpse window alone does not establish successful pickup.

The second client resumed the separately created level-1 character and walked to observe the final five fights. It remained at zero XP, 1,500 IP and zero credits with its same seven issued items. It saw the fighter's visible level change without receiving private XP/IP or its own level-up feedback.

Qualification and wear

At level 3, native training spent 31 IP on Strength 15->17 and 100 IP on Agility 11->15. Another Agility point was refused at the level cap. With the hands slot empty, gloves 145 still required Agility 18 and remained owned. Re-wearing the original Low-Tech pair restored its exact armor contribution.

New QL 3 gloves 160 qualified at Strength 17/Agility 15. Removing Low-Tech gloves 38 preserved them in inventory slot 85. Wearing 160 in hands slot 24 changed the complete AC vector, stats 90..97, from 9/19/3/3/3/3/3/3 to 10/19/6/5/3/3/3/3. Both clients agreed. Removal restored 6/16/2/2/2/2/2/2, and re-wear restored the selected-quality effects without stacking them. The gloves rendered on the character.

The ninth death raised the fighter to level 4 and granted 4,000 IP. Native training then admitted Agility 15->18 for exactly 96 IP. Retained QL 5 gloves 145 now wore in slot 24; the QL 3 pair remained in inventory slot 86. Both clients reported 12/21/8/7/4/4/4/4. Removal and re-wear repeated the same baseline and totals. No instance was replaced to make the stronger armor fit.

Sale and conservation

Ordinary travel returned both characters to the restored Startup Shop. It quoted 126 credits for pistol 158. Declining preserved that same instance and the 109-credit wallet. The native return selected the first free inventory slot, moving the pistol from 82 to 81. Selecting that returned instance and accepting a new offer removed only 158 and paid exactly 126 credits.

The final accounting is:

Both page reloads and a restart of the same server binary restored every native item identity, slot, quality and the laboratory count. Gloves 145 remained worn, the three new gloves remained owned, and the sold pistol stayed absent. All other original item records and placements were conserved apart from the documented equipment moves and consumed charges. Other players' inventories and the observer's progression remained unchanged. SQLite integrity and foreign-key checks passed.

Both isolated clients used the GPU OpenGL renderer. Their runs recorded no page errors or WASM aborts. The browsers were closed after verification; the single development preview remains available on its default ports.

Regression and remaining work

server/earned_armor_training_test.go follows rejected retained-armor wear and level-3 training through a killing action, level 4, the real 96-IP training price and durable wear/removal of the same instance. Its seeded near-boundary XP and one-hit target isolate qualification; the native fights above establish ordinary acquisition and full-health combat.

The focused regression passes. The related normal and race runs each pass 23 top-level tests and 125 results including subtests, with no skipped tests. go vet ./server/... ./tools/data/... passes. Production rules and data are unchanged from the preceding complete 1,701-test regression run.

Evidence, replay-aware packet reconstruction, exact SQL comparisons and native screenshots are under local/earned-creature-upgrade/, particularly combat-verified.json, native-verified.json and cold-restart.json.

Corpse presentation on slopes remains a P0 audit item. These native corpses existed at the recorded positions with visual instances, but sometimes only two small mesh portions protruded above the terrain. Backing away exposed clickable portions. Recover the original death-pose, root-motion and terrain placement contract before introducing offsets or species exceptions. Broader historical loot recovery, fresh-character regression, death/reclaim and the next enemy-level progression gate remain open.