Player attack-rating damage in 14.9.1
The supported QL 1 Kinetic Axe now scales normal damage with effective
1-Hand Edged. Its catalog entry, template 209283 in
server/gamedata/items/items_165.yaml, selects 100% stat 103 in attack-skill
section 12. Its unscaled damage is 5..20. Effective skill includes the shipped
30% Strength, 40% Agility and 30% Stamina trickle, with the native floating-point
truncation already used by the editable stats.
The July 2002 weapon guide
attributes the multiplier 1 + AR/400 to Rustot and illustrates tripling
weapon endpoints at AR 800. The
July 2002 damage experiments
independently describe the same ratio. These are contemporary player findings,
not the original server code. The implementation follows that period linear
formula, including ratings above 1000.
The client-side rating calculation is established separately in
client stat research: FUN_1008f1f0 weights attack
skills and adds stat 276 to a positive rating; FUN_1007c120 selects the
weapon's rating or Martial Arts when unarmed. The server shares this weighted
calculation across admitted weapons. The
Concrete Cushion uses 67% 1-Hand Blunt and 33% Heavy
Weapons, including trickle from its Strength/Stamina modifiers. Fists retain
their authored Martial Arts weight.
Normal player hits follow this order, after any supported axe overequipping adjustment to its base endpoints:
minimum = base_minimum + floor(base_minimum * AR / 400)
maximum = base_maximum + floor(base_maximum * AR / 400)
rolled = uniform_integer(minimum, maximum)
damage = rolled - min(rolled - minimum, floor(selected_AC / 10)) + matching_damage_modifier
The scaled minimum is the AC floor. Uniform sampling of integer endpoints, truncating fractional endpoints before rolling, and truncating AC/10 before subtraction remain explicit reconstruction policies. The sources establish the multiplier, not those exact integer and random-number operations.
| Effective axe AR | Normal endpoints before AC |
|---|---|
| 5 | 5..20 |
| 99 | 6..24 |
| 100 | 6..25 |
| 399 | 9..39 |
| 400 | 10..40 |
| 401 | 10..40 |
| 800 | 15..60 |
| 1000 | 17..70 |
| 1200 | 20..80 |
The fractional cases in this table describe the provisional truncation policy. At AR 400, any axe roll against the supported 875 Melee AC chest bottoms out at 10, rather than the unscaled minimum of 5.
NPC profiles still provide their unscaled catalog damage: their attack skills and Add All Offense values are not known. Player fists receive the multiplier but remain on the fixed QL 1 3..5 record; selecting their proper QL from Martial Arts is a separate TODO. Equipment damage additions follow the AC floor. Criticals now use the shared multiplier with the provisional critical rules; ordinary hit/miss selection remains separate work. These limits prevent a claim of complete canonical damage balance.
Verification
server/attack_rating_test.go uses controlled endpoint rolls around the
multiplier boundaries, a deliberately different Martial Arts skill to detect
the wrong skill selection, native equip/unequip requests, persistent stats and
ownership across restart, the scaled AC floor, and matching native damage/HP
for owner and observer. Existing armor tests continue to verify that NPC bites
retain their catalog damage.
The two-client WASM comparison is retained in local/attack-rating-smoke/.
Native controls equip and remove the axe and start Q combat. The existing
profile editor raises base 1-Hand Edged from 398 to 798; the actor reconnects
with that saved skill and the same equipped item. The native Stats window
shows 800 while unarmed, 400 with the first axe profile and 800 after the edit.
Temporary tracing confirms 10..40 axe endpoints at AR 400, 15..60 at AR 800,
and 9..15 for the fixed-QL fists after removal. Owner and observer combat
text show matching damage and weapon appearance.
The fixture raises owner Body Development and the Leet's HP to sustain the comparison. Between encounters, fixture-only cancellation restores HP and stops both actors. These are test controls, not production NPC balance rules.
verification.json and tmp_verify.py retain and check seven axe hits at AR
400, seven at AR 800, five fist hits, and eight axe hits after server restart.
The same item ID 102, QL 1 and right-hand slot 6 persist with base skill 798;
the native Stats window still reports AR 800. Both clients restore weapon
appearance and matching combat feedback. There are zero page errors or adapter
failures, and 16 expected socket refusals during the intentional restart.
The driver's finally closes both contexts and terminates the fixture server
before Go regression builds.
The full go test ./server/... suite passes. Focused -race checks for
attack rating, character stats, armor, equipment, combat, inventory and reclaim
also pass. Logs are retained alongside the WASM evidence.