aorecomp

Anarchy Online classic in the browser

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


docs/jab-of-the-snake.md (3459B)


Martial Artist starter attack

The issued QL1 Jab of the Snake (117610) now executes through owned-item use, including a carried backpack. Previously the server rejected the starter item. It remains reusable and does not reset the ordinary weapon swing.

Original contract and provisional combat rules

server/gamedata/items/items_035.yaml contains the complete original record:

Field Value
Use requirements Nano >2, Martial Arts >10, unarmed, actively fighting
Attack/defense 100% Martial Arts / 100% Duck Explosions
Range 3m, with the shared actor extents and line-of-sight checks
Hit 2-4 melee damage to the fighting target
Cost 2 nano
Lock Martial Arts, 10 seconds before skill-lock modifiers
Presentation Original template action and "Snake" head text

The admitted record must retain its four supported OnUse functions. The original requirements do not impose a profession restriction, so any qualified unarmed player can use it. Targets follow the current creature-NPC combat scope.

The hit chance uses the existing provisional weapon curve with the item's own MA/Duck ratings. Damage rolls uniformly from 2 through 4, subtracts melee AC/10 with a floor of 2, then adds melee damage bonuses. It has no critical or attack-rating multiplier. This arithmetic is explicit alpha policy; the original server implementation has not been recovered. A miss still pays nano and starts the lock. No broader martial-arts attack catalog is claimed.

Persistence

Nano cost, skill lock, target damage, loot and kill reward commit atomically before success feedback. Rejected writes leave all of them unchanged. The item retains its exact identity and location. Repeated requests cannot bypass the lock, and cold loading preserves both the cost and remaining cooldown. Updating nano alone does not suppress a pending periodic health checkpoint.

Verification scope

TestSnakeJab* covers hits, Duck-based misses, invalid uses, duplicate requests, cooldown expiry, cold recovery, backpack ownership and failed kill writes with retry. TestCreatedMartialArtistCanUseIssuedJabAtLevelOne uses ordinary character creation and skill training: effective MA 11 costs 35 of the initial 1,500 IP. The fixture advances ordinary idle regeneration to fill its starting nano pool.

TestBrowserSnakeJab uses the maintained browser harness for native inventory clicks, targeting and combat entry. The controlled Leet is placed nearby with 100 HP, and ordinary swings are not advanced, isolating the item action. This is a starter-action check, not earned progression or a combat-balance sample.

November 5: the eight focused server roots and the native scenario pass, including both hits, refused reuse while locked, expiry, reconnect and cold recovery. The related weapon-rating, hit-chance, special-attack and skill-lock batch passes, as does go vet ./server. Logs are under local/alpha-profession-scope/; native evidence is local/alpha-snake-jab/20261105-170242/verification.json with the adjacent first, second and final snapshots. This closes the rejected issued action within A5, not A5's remaining profession scope or A7's progression matrix.

The generic HP-hit packet displays the correct melee amount but the native chat labels it "nanobots". Dedicated martial-arts damage wording remains a presentation limitation; it does not change the attack's melee armor or MA/Duck checks.