aorecomp

Anarchy Online classic in the browser

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


commit 0c46ba329a185a05d5da3db21b24a2ed29f294eb
parent 9d575014fce5c110279a6b05acbf1d2c8fc66b31
Author: anon <anon@example.com>
Date:   Tue, 27 Oct 2026 00:06:08 +0000

Use original NPC weapon curves for a second Leet level

Construct profiled NPC weapons from catalog endpoints at actor quality, and
send the same endpoints to native clients. Add an explicit level-2 Leet
profile while retaining documented provisional HP, XP and loot choices.

Integrate the handoff's SR01 and DZRA identities for 82 placements, preserving
evidence, confidence and alternatives so placeholder bodies cannot acquire
the Leet combat profile. Track the separate starter population availability
gap and remaining NPC handoff work.

Validation: full server suite 1372 roots / 14666 results; focused race run
64 / 224; gamedata, 10 population/parser Python tests and go vet. Two GPU
WASM clients verified native QL1/QL2 construction, identical fights, XP/cash,
item pickup and cold reconstruction. Owned test fixtures were cleaned up;
the single shared HTTPS 8443 preview remains available.

Diffstat:
MTODO.md | 19++++++++++++++++++-
Mdocs/combat-npc-balance.md | 84++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------
Mdocs/corpse-loot.md | 7+++++++
Mdocs/npc-loot.md | 8+++++++-
Mserver/armor_damage_test.go | 6+++---
Mserver/armor_overequipping_test.go | 2+-
Mserver/equipment.go | 26+++++++++++++++++++++++++-
Mserver/gamedata/load.go | 7++++---
Mserver/gamedata/npc_combat.yaml | 18+++++++++++++++++-
Mserver/gamedata/npc_names.yaml | 18++++++++++++++++++
Mserver/gamedata/types.go | 2+-
Mserver/gamedata/zones/zone_565.yaml | 15+++++++++++----
Mserver/gamedata/zones/zone_646.yaml | 15+++++++++++----
Mserver/gamedata/zones/zone_716.yaml | 71+++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
Mserver/gamedata/zones/zone_717.yaml | 15+++++++++++----
Mserver/gamedata/zones/zone_800.yaml | 15+++++++++++----
Mserver/gamedata/zones/zone_950.yaml | 15+++++++++++----
Mserver/nano_armor_test.go | 6+++---
Mserver/npc_combat.go | 2+-
Mserver/npc_combat_test.go | 112+++++++++++++++++++++++++++++++++++++++++++------------------------------------
Aserver/npc_levels_test.go | 135+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mserver/target_protocol.go | 2+-
Aserver/testdata/npc-level-population-assignments.json | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 files changed, 557 insertions(+), 122 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -504,11 +504,28 @@ for exact records, protocol, tests and remaining reconstruction assumptions. gaps. Rerun the handoff's reproduction, coverage, structural and Python/Go checks against the merged checkout, add runtime integration regressions, and verify representative creatures, humans, summons and rocks in the WASM client. + Partial integration: SR01 and DZRA now use the handoff's provisional Tiny + Stalker and Rollerrat assignments (ten groups, 82 placements), retaining + confidence, evidence and alternatives in a verbatim source excerpt. Both + render in two WASM clients without inheriting Leet combat. The other codes, + summons, Carbonrich Rock and their runtime gaps remain open. - [x] Give one creature at one level an explicit combat profile. Check: its health, weapon and timing come from that profile rather than universal values; each value is identified as verified or provisional. -- [ ] [P0] Give that species a second level. Check: the two levels have independently +- [x] Give that species a second level. Check: the two levels have independently checked resources and combat values rather than an assumed scaling formula. + Levels 1 and 2 use the original Leet Bite endpoints at actor QL, producing + 4..8 and 4..9 normal damage before defenses. Health/XP and loot remain explicit + provisional values at each level. Two native clients verified both fights, + rewards, item pickup and cold reconstruction; automation covers both levels. + See [NPC combat balance](docs/combat-npc-balance.md). +- [ ] [P0] Make the next supported enemy level available through ordinary starter + play. Check: a new player can reach and identify supported level-1 and level-2 + enemies without admin placement. Resolve the generator's minimum-only choice + for Omni Training's authored LE02 level range 1..2 using evidence and a clear + population rule. Preserve provisional identity confidence: SR01 is a Stalker + inference, not another Leet. Verify native population levels across restart + and respawn, then include both levels in the ordinary progression scenario. - [ ] [P0] Verify a viable starter fight and recovery route. Check: a normally created character can train appropriate skills, equip its issued weapon, kill a starter enemy, recover and repeat without admin changes. Audit provisional diff --git a/docs/combat-npc-balance.md b/docs/combat-npc-balance.md @@ -2,7 +2,7 @@ The local wiki database provides useful weapon and behavior leads, but it does not supply a complete set of historical creature health, ratings and armor. -The server has an explicit level-1 Leet profile below. Other creatures retain +The server has explicit level-1 and level-2 Leet profiles below. Other creatures retain prototype 100 HP, 5 damage and one-second attack/recharge phases. ## Local wiki search @@ -54,21 +54,21 @@ receives it, which hand/variant it uses, or whether the historical server had additional overrides. Applying 4-8 as a universal NPC damage roll would replace one unsupported rule with another. -## Active level-1 Leet profile +## Explicit Leet profiles -`server/gamedata/npc_combat.yaml` selects only MonsterData 17655 at level 1. -The spawner binds that exact profile and initializes health from it; other -species and levels retain their existing prototype behavior. Catalog loading -rejects missing species, missing or mismatched exact-QL weapons, zero health, -and AggDef outside -100..100. +`server/gamedata/npc_combat.yaml` selects MonsterData 17655 separately at levels +1 and 2. The spawner binds that exact profile and initializes health from it; +other species and levels retain their existing prototype behavior. Catalog +loading rejects missing species, missing/nonweapon endpoints, an actor level +outside their QL range, zero health, and AggDef outside -100..100. | Value | Selected setting | Evidence status | | --- | --- | --- | -| Maximum health | 100 | Provisional, retained pending a historical measurement | -| Solo XP reward | 100 | Provisional; the atomic [XP path](kill-experience.md) does not establish original reward size or eligibility | -| Weapon | LeetBite1_001, 120910, QL 1 | Shipped definition verified; binding and choice of variant provisional | -| Normal damage endpoints | 4-8 | Verified weapon values; uniform always-hit roll and omitted actor rating remain local | -| Critical damage before AC | 12 | Verified maximum8 plus bonus4; [critical chance and AC policy](critical-hits.md) are provisional | +| Maximum health | 100 at each level | Provisional prototype value retained independently; no health scaling formula inferred | +| Solo XP reward | 100 at each level | Provisional; the atomic [XP path](kill-experience.md) does not establish original reward size or eligibility | +| Weapon | LeetBite1 endpoints 120910 / 120911, QL 1 or 2 | Shipped endpoints and native actor-level construction verified; binding and choice of variant provisional | +| Normal damage endpoints | Level 1: 4-8; level 2: 4-9 | Level 2 uses the shared recovered item interpolation; uniform always-hit roll and omitted actor rating remain local | +| Critical damage before AC | Level 1: 12; level 2: 13 | Interpolated maximum plus bonus4; [critical chance and AC policy](critical-hits.md) are provisional | | Initiative | 0 | Provisional actor value | | AggDef | 75 | Provisional actor value | | Attack/recharge phases | 1.75s / 1.75s | Derived from the shipped 175 cs delays and the selected initiative/AggDef using the recovered timing formula | @@ -84,6 +84,36 @@ Health, hit distribution, effective ratings, armor and original spawn binding remain gaps in canonical balance; the profile does not make those values historically verified. +The level-2 profile is a separate explicit record, with the same selected +initiative, AggDef, lifecycle and provisional fixed-QL1 loot policy. Its weapon +uses the original 1..400 endpoints at actor QL2. The server reuses +`interpolateItemValue` for weapon damage, range and delays, retaining categorical +fields from the nearer endpoint and leaving the shared catalog records unchanged. +Both initial native spawning and the later weapon update carry those endpoints. +No creature health, XP or loot-quality curve follows from weapon interpolation. + +### Population identity boundary + +The two handoff assignments that otherwise collide with the new profile are +retained verbatim in `server/testdata/npc-level-population-assignments.json`, +including the complete input catalog's digest, context groups, reasons, +confidence and alternatives. `SR01` selects Tiny Stalker / 17708 with medium +confidence; `DZRA` selects Rollerrat / 17687 with low confidence. Their ten +groups contain 82 placements. Names and bodies change; IDs, positions, levels, +counts, placement classifications and raw source records do not. + +`SR01` accounts for the four level-2 Leet stand-ins in Omni Training. The handoff's +training captures, source-population context and higher-level geography support +the Stalker inference; proximity alone does not prove a historical template. +The Rollerrat choice remains weaker. Neither assignment acquires Leet combat +or rewards through its former placeholder body. The remaining NPC handoff, +including summons and Carbonrich Rock, stays open in TODO. + +Genuine maintained LE02/LEET populations at level 2 exist outside training. +The current minimum-level policy leaves Omni Training's LE02 district at level +1 despite its authored 1..2 range. Starter access to a next supported enemy +level remains separate from implementing the second combat profile. + The replacement lifecycle and its timing limits are described in [creature respawn](npc-respawn.md). @@ -98,12 +128,12 @@ high template, skill/map key 100, and an unresolved parameter. The server currently also writes actor level into that final field; it is not established as QL. Ordinary player fists retain their existing list. -`server/npc_combat_test.go` checks native initialization and restart, initial +`server/npc_combat_test.go` checks both levels' native initialization and restart, initial weapon selection, the first and subsequent deadlines, normal damage bounds, slot-0 hit packets and identical results for two observers. Separate cases retain prototype behavior for another species, level 7 and extended level 300. -Published WASM checks with an attacker and an independent observer confirmed +The earlier level-1 WASM checks with an attacker and an independent observer confirmed template 120910/120910, skill/map key 100 and final row parameter 1 in both native heaps. Those row reads did not independently establish constructed item QL; the constructor uses the actor's level. A real @@ -114,6 +144,32 @@ selected and fresh NPC health. Evidence is retained in `local/npc-profile-smoke/ Quiet health corrections use the native zero-feedback message described in [combat regeneration](combat-regeneration.md), including after a long fight. +The current two-client GPU WASM check constructed endpoints 120910/120911 +at QL 1 and QL 2 in both native heaps. Their normal damage was 4..8 and 4..9, +with the same 175-centisecond attack and recharge values. Natural Leets in +Omni Training and Tir County delivered 13 and 15 bites respectively; both +clients received identical results. The total incoming damage was 83 and 93, +matching native health 2000 -> 1917 and 2000 -> 1907 before later recovery. +Observed bite intervals were 3.458..3.791 seconds under the simulation tick. + +The two kills awarded 200 XP total, eight credits and one QL 1 Monster Parts +instance. Native pickup, cursor cancellation, corpse expiry and a cold server +restart retained that exact item and all 14 issued instances. Both clients +reconstructed both weapon qualities after restart. The Stalker and Rollerrat +assignments rendered with their selected bodies and retained prototype fists, +without accidentally acquiring the former Leet stand-in's profile. + +These were controlled weapon/reward checks: Body Development 500, initial +health 2000, positions and AggDef 100 isolated the observed behavior. They do +not establish ordinary starter viability or historical HP, XP or drop rates. +The full server suite passed 1,372 top-level tests / 14,666 results; the focused +race run passed 64 / 224, alongside gamedata, ten population/parser Python +tests and `go vet ./server/...`. Exact source hashes and native evidence are +retained in `local/npc-levels/runtime-verification.json` and +`local/starter-upgrade-research/suite-verification.json`. The four owned test +accounts and 15 items were removed with all unrelated rows unchanged; only +the shared HTTPS preview remains available. + ## Online search and limits The web search cross-checked the Leets page and searched exact leet health/HP diff --git a/docs/corpse-loot.md b/docs/corpse-loot.md @@ -133,6 +133,13 @@ ContainerAddItem response carries the chosen destination translated into the `sub_36042750`, `sub_360614E0` and `sub_3605FB40` transfer the template proxy and update the corpse window without a replacement contents update. +One left click on a corpse item already places it in inventory. The shipped +`cd_image/text/help/The Inventory Window.txt` describes this automatic placement. +Clicking the newly owned inventory item again picks it up onto the native mouse +cursor; Escape returns it to its slot. A two-client level-2 Leet check confirmed +the same item ID and slot before and after that cancellation, with no ownership +change. This cursor state can otherwise look like a missing inventory item. + Failed saves, full inventory, stale sessions and unavailable items retain the previous owner. Repeated and concurrent requests cannot take the same item twice. Corpses, untaken contents and taken inventory survive reconnect and diff --git a/docs/npc-loot.md b/docs/npc-loot.md @@ -1,11 +1,17 @@ # NPC corpse rewards Normal deaths generate rewards from the exact MonsterData/level combat profile. -The current production profile is the level 1 Leet. Each configured loot row rolls +The current production profiles are level 1 and level 2 Leets. Each configured loot row rolls independently, creates one item at its catalog template's authored quality, and places it in a free corpse slot. Cash is selected inclusively from the configured range. Unprofiled creatures do not inherit a universal loot table. +Both explicit levels currently select the same provisional rewards below. +The level-2 weapon curve does not establish a loot-quality curve, larger cash +award or XP scaling formula. Its Monster Part therefore remains fixed QL1. +The [profile report](combat-npc-balance.md#explicit-leet-profiles) separates those +choices from the recovered weapon values and population identities. + The first table uses original Monster Parts 42640, QL 1, with a **provisional 50% chance and 1..5 credits**. Those probabilities and cash amounts are reconstruction values, not recovered 14.9.1 formulas. The independent-row/uniform-cash policy is diff --git a/server/armor_damage_test.go b/server/armor_damage_test.go @@ -48,7 +48,7 @@ func TestArmorDamageUsesTheAttacksProtectionType(t *testing.T) { gamedata.ItemTemplates[120911] = &weapon t.Cleanup(func() { gamedata.ItemTemplates[120911] = original }) npc := world.characters[1000000] - npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: 120911} + npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: [2]uint32{120911, 120911}} damage := npc.weaponDamage(world.characters[1], false, func(limit uint32) uint32 { if limit != 352 { @@ -74,7 +74,7 @@ func TestArmorDamageUsesTheAttacksProtectionType(t *testing.T) { func TestArmorDamageCannotCrossWeaponMinimum(t *testing.T) { world, _ := newArmorDamageWorld(t) npc := world.characters[1000000] - npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: 120910} + npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: [2]uint32{120910, 120910}} var hits []uint32 for _, roll := range []uint32{0, 1, 2, 3, 4} { @@ -135,7 +135,7 @@ func TestArmorDamageNativeCombatMatchesBothObservers(t *testing.T) { world, owner := newArmorDamageWorld(t) player, npc := world.characters[1], world.characters[1000000] player.health = 37 - npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: 120910} + npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: [2]uint32{120910, 120910}} observer := &combatTestConn{} world.characters[2] = &character{id: 2, playfield: 950, health: 100} world.clients[2] = &worldClient{id: 2, conn: observer, target: true, ready: true, npcs: map[uint32]bool{1000000: true}} diff --git a/server/armor_overequipping_test.go b/server/armor_overequipping_test.go @@ -32,7 +32,7 @@ func TestArmorOverequippingDustResourcesDamageAndRestart(t *testing.T) { } world.advanceEquipment(client.equipment.readyAt) npc := world.characters[1000000] - npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: 120911} + npc.combatProfile = &gamedata.NPCCombatProfile{Weapon: [2]uint32{120911, 120911}} profile := player.userData() profile.Stats.TradeRepair.ComputerLiteracy = scenario.computerLiteracy diff --git a/server/equipment.go b/server/equipment.go @@ -117,7 +117,31 @@ func (character *character) canMoveEquipment(item ownedItem, destination uint32, func (character *character) attackWeapon() *gamedata.Item { if character.npc && character.combatProfile != nil { - return gamedata.ItemTemplates[character.combatProfile.Weapon] + first, second := gamedata.ItemTemplates[character.combatProfile.Weapon[0]], gamedata.ItemTemplates[character.combatProfile.Weapon[1]] + if first == second || uint32(character.level) == *first.Quality { + return first + } + if uint32(character.level) == *second.Quality { + return second + } + + // client/game/kkr.dll/lifted-0035.c::sub_3607B9A0 constructs at actor level. + // Keep categorical fields from the nearer endpoint, as for other item qualities. + weapon := *first + if uint32(character.level)-*first.Quality >= *second.Quality-uint32(character.level) { + weapon = *second + } + quality := uint32(character.level) + weapon.Quality, weapon.Stats = &quality, slices.Clone(weapon.Stats) + for index, stat := range weapon.Stats { + switch stat[0] { + case 54: + weapon.Stats[index][1] = quality + case 210, 284, 285, 286, 287, 294: + weapon.Stats[index][1] = uint32(interpolateItemValue(int32(itemStat(first, stat[0])), int32(itemStat(second, stat[0])), *first.Quality, *second.Quality, quality)) + } + } + return &weapon } for _, item := range character.inventory.Items { if item.Slot == 6 && item.isWieldableWeapon() { diff --git a/server/gamedata/load.go b/server/gamedata/load.go @@ -160,13 +160,14 @@ func init() { } } - // Combat profiles bind only exact levels to existing catalog weapons. + // Combat profiles bind exact creature levels to catalog weapon endpoints. loadYAML("npc_combat.yaml", &NPCCombatProfiles) for monster, levels := range NPCCombatProfiles { for level, profile := range levels { - weapon := ItemTemplates[profile.Weapon] + first, second := ItemTemplates[profile.Weapon[0]], ItemTemplates[profile.Weapon[1]] if MonsterTemplates[monster] == nil || level == 0 || profile.Health == 0 || - weapon == nil || weapon.Quality == nil || *weapon.Quality != uint32(level) || + first == nil || second == nil || first.HeaderWords[0] != 51018 || second.HeaderWords[0] != 51018 || + first.Quality == nil || second.Quality == nil || *first.Quality > uint32(level) || *second.Quality < uint32(level) || profile.AggDef < -100 || profile.AggDef > 100 { panic(fmt.Errorf("NPC combat profile %d/%d has invalid health, weapon or AggDef", monster, level)) } diff --git a/server/gamedata/npc_combat.yaml b/server/gamedata/npc_combat.yaml @@ -8,7 +8,7 @@ # Health recovery uses the checked native NPC branch; see docs/npc-regeneration.md. # Shipped QL 1 LeetBite1_001. Choosing this variant for this spawn is provisional. # Base damage 4..8 and attack/recharge 175 cs are verified item data. - weapon: 120910 + weapon: [120910, 120911] # Provisional actor settings. Together they retain the weapon's base delays. initiative: 0 agg_def: 75 @@ -22,3 +22,19 @@ loot: - template: 42640 chance: 50 + 2: + # Retained prototype health and the same provisional solo reward, not a scaling formula. + health: 100 + experience: 100 + # Original LeetBite1 endpoints; the native constructor uses creature level as QL. + weapon: [120910, 120911] + # Actor initiative, AggDef and lifecycle values remain provisional as at level 1. + initiative: 0 + agg_def: 75 + respawn_seconds: 100 + corpse_seconds: 180 + # Fixed QL1 Monster Parts and cash policy remain provisional; no QL curve is inferred. + credits: [1, 5] + loot: + - template: 42640 + chance: 50 diff --git a/server/gamedata/npc_names.yaml b/server/gamedata/npc_names.yaml @@ -83,6 +83,7 @@ sources: aorebirth_rome: https://github.com/subarumike/AORebirth/blob/a4db30bcbfbc4e0e5f3bbcb8b3e2ac7f5c0ce79b/tools-temp/rome_blue_npcs.json aodb_enigma: https://wiki.aodb.us/wiki/Enigma + npc_mapping_handoff: server/testdata/npc-level-population-assignments.json playfields: 120: confidence: inferred @@ -3066,3 +3067,20 @@ templates: comment: The Nano Technician quest speaker is listed inside Smugglers Den. The Nadybot location note specifies behind Ash at (21, 217); the unique NOTC fixed spawn is at (21, 216). Name inferred from the role and location; original appearance remains unresolved. + SR01: + name: "Tiny Stalker" + monster_data: 17708 + confidence: "medium" + source: "npc_mapping_handoff" + comment: >- + Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 metres of original + SR01 points in Omni Training. Other captured creature families match its LE/RT/SN/ML groups; higher + SR geography also fits Stalkers. This infers the code binding, rather than recovering an original + template. Full evidence and source URLs remain in the handoff fixture. Alternatives: Tree Stalker; + Mist Stalker; Striker Stalker; Modern capture and original template association remains inferred. + DZRA: + name: "Rollerrat" + monster_data: 17687 + confidence: "low" + source: "npc_mapping_handoff" + comment: "Select the role or encounter supported by the abbreviation and its authored site/level. This is a best-effort reconstruction; exact historical identity, head and equipment are not asserted. Alternatives: Another local guard, worker or encounter variant." diff --git a/server/gamedata/types.go b/server/gamedata/types.go @@ -25,7 +25,7 @@ type NPCData struct { type NPCCombatProfile struct { Health uint32 `yaml:"health"` Experience uint32 `yaml:"experience"` - Weapon uint32 `yaml:"weapon"` + Weapon [2]uint32 `yaml:"weapon,flow"` Initiative int32 `yaml:"initiative"` AggDef int32 `yaml:"agg_def"` RespawnSeconds uint32 `yaml:"respawn_seconds"` diff --git a/server/gamedata/zones/zone_565.yaml b/server/gamedata/zones/zone_565.yaml @@ -1471,13 +1471,20 @@ districts: id: 565/district/3/group/4/spread_authored_point source_index: 4 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 1 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [1292.0398, 30.6, 2184.3674] - [2483.0735, 39.75, 2168.2307] diff --git a/server/gamedata/zones/zone_646.yaml b/server/gamedata/zones/zone_646.yaml @@ -1266,13 +1266,20 @@ districts: id: 646/district/6/group/22/spread_authored_point source_index: 22 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 3 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [2297.3594, 14.331381, 1360.2771] - [2890.6282, 12.398209, 1175.8258] diff --git a/server/gamedata/zones/zone_716.yaml b/server/gamedata/zones/zone_716.yaml @@ -350,13 +350,20 @@ districts: id: 716/district/1/group/14/spread_authored_point source_index: 14 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 3 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [739.7166, 13.013641, 2380.357] - [672.61676, 13.438306, 2488.24] @@ -3362,13 +3369,18 @@ districts: id: 716/district/33/group/1/authored_point source_index: 1 - template_code: DZRA - name: Placeholder DZRA - monster_data: 17655 + name: "Rollerrat" + monster_data: 17687 appearance: 229 level: 2 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: low. Select the role or encounter supported by the abbreviation and its authored + site/level. This is a best-effort reconstruction; exact historical identity, head and equipment are + not asserted. Alternatives: Another local guard, worker or encounter variant. Source: + server/testdata/npc-level-population-assignments.json positions: - [244.25726, 10.902234, 1269.1086] id: 716/district/33/group/2/spread_authored_point @@ -4368,13 +4380,20 @@ districts: id: 716/district/39/group/12/spread_authored_point source_index: 12 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 3 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [537.17163, 11.349206, 1468.1466] - [536.4321, 9.985412, 1456.2142] @@ -4964,13 +4983,20 @@ districts: id: 716/district/46/group/15/spread_authored_point source_index: 15 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 2 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [423.89713, 16.283602, 2073.9053] - [445.8258, 19.764048, 2038.0298] @@ -6949,13 +6975,18 @@ districts: id: 716/district/63/group/1/authored_point source_index: 1 - template_code: DZRA - name: Placeholder DZRA - monster_data: 17655 + name: "Rollerrat" + monster_data: 17687 appearance: 229 level: 2 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: low. Select the role or encounter supported by the abbreviation and its authored + site/level. This is a best-effort reconstruction; exact historical identity, head and equipment are + not asserted. Alternatives: Another local guard, worker or encounter variant. Source: + server/testdata/npc-level-population-assignments.json positions: - [401.6545, 6.3240886, 1440.9664] id: 716/district/63/group/2/authored_point diff --git a/server/gamedata/zones/zone_717.yaml b/server/gamedata/zones/zone_717.yaml @@ -2905,13 +2905,20 @@ districts: id: 717/district/24/group/19/spread_authored_point source_index: 19 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 1 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [2254.9753, 13.923205, 3249.2742] - [2153.3215, 13.319202, 3252.1646] diff --git a/server/gamedata/zones/zone_800.yaml b/server/gamedata/zones/zone_800.yaml @@ -419,13 +419,20 @@ districts: id: 800/district/4/group/3/spread_authored_point source_index: 3 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 1 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: spread_authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [631.34155, 34.45805, 796.5625] - [638.7558, 39.070034, 810.1482] diff --git a/server/gamedata/zones/zone_950.yaml b/server/gamedata/zones/zone_950.yaml @@ -223,13 +223,20 @@ districts: id: 950/district/4/group/2/authored_point source_index: 2 - template_code: SR01 - name: Placeholder SR01 - monster_data: 17655 + name: "Tiny Stalker" + monster_data: 17708 appearance: 229 level: 2 - appearance_status: placeholder_creature + appearance_status: "inferred_species" placement_status: authored_point - comment: Original template unresolved; Leet used as a visible stand-in. + comment: >- + Base appearance inferred; exact variant, equipment and original template remain unknown. Name + confidence: medium. Captured Tiny Stalker / MonsterData 17708 positions are within 0.60 and 6.50 + metres of original SR01 points in Omni Training. Other captured creature families match its + LE/RT/SN/ML groups; higher SR geography also fits Stalkers. This infers the code binding, rather + than recovering an original template. Full evidence and source URLs remain in the handoff fixture. + Alternatives: Tree Stalker; Mist Stalker; Striker Stalker; Modern capture and original template + association remains inferred. Source: server/testdata/npc-level-population-assignments.json positions: - [192.56673, 15.348891, 119.31118] - [169.29759, 15.62034, 129.39377] diff --git a/server/nano_armor_test.go b/server/nano_armor_test.go @@ -218,7 +218,7 @@ func TestArmorNanoProtectsWithItsAuthoredDamageTypeAmounts(t *testing.T) { world, _ := newArmorNanoWorld(t, armorNanoFixture{Profession: 2}) player := world.characters[1] player.inventory.LearnedNanos = []uint32{28905} - attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: 120911}} + attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: [2]uint32{120911, 120911}}} before := attacker.weaponDamage(player, false, func(uint32) uint32 { return 145 }) castTestBuff(t, world, 1, 1, 28905) @@ -317,7 +317,7 @@ func TestArmorNanoProtectionAddsAfterEquipmentOverequipping(t *testing.T) { if err := world.saveUser_locked(player); err != nil { t.Fatal(err) } - attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: 120911}} + attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: [2]uint32{120911, 120911}}} castTestBuff(t, world, 1, 1, 28905) cold := newTestInventoryServer(t).characters[1] @@ -355,7 +355,7 @@ func TestArmorNanoDamageTypesUseIndependentProtectionAndTheWeaponFloor(t *testin } gamedata.ItemTemplates[120911] = &weapon t.Cleanup(func() { gamedata.ItemTemplates[120911] = original }) - attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: 120911}} + attacker := &character{npc: true, combatProfile: &gamedata.NPCCombatProfile{Weapon: [2]uint32{120911, 120911}}} castTestBuff(t, world, 1, 1, 28905) damage := attacker.weaponDamage(player, false, func(uint32) uint32 { return 145 }) diff --git a/server/npc_combat.go b/server/npc_combat.go @@ -5,7 +5,7 @@ import "encoding/binary" func npcCombatPacket(character *character) []byte { // kkr.dll sub_36083F00/sub_36083FB0: weapon list, initiatives and AggDef. var body []byte - for _, value := range []uint32{2018, character.combatProfile.Weapon, character.combatProfile.Weapon, 100, uint32(character.level), + for _, value := range []uint32{2018, character.combatProfile.Weapon[0], character.combatProfile.Weapon[1], 100, uint32(character.level), uint32(character.combatProfile.Initiative), 0, 0, 0, uint32(character.combatProfile.AggDef)} { body = binary.BigEndian.AppendUint32(body, value) } diff --git a/server/npc_combat_test.go b/server/npc_combat_test.go @@ -4,68 +4,78 @@ import ( "bytes" "encoding/binary" "encoding/hex" + "fmt" "net" "testing" "time" ) func TestNPCProfileNativeSpawnUsesLeetBiteAfterRestart(t *testing.T) { - data := testNPCData() - data.Playfields[0].Districts[0].Groups[0].Level = 1 - useNPCData(t, data) - world := newTestServer(t) - if err := world.saveUser_locked(world.newCharacter()); err != nil { - t.Fatal(err) - } - - for range 2 { - client, connection := net.Pipe() - client.SetDeadline(time.Now().Add(5 * time.Second)) - done := make(chan error, 1) - go func() { defer connection.Close(); done <- world.serveWorldConnection(connection) }() - cookie, _ := hex.DecodeString("dfdf00010001002000000001000000020000001b000000010000000000000000") - client.Write(cookie) - var weapon []byte - spawned := false - for { - packet, err := readPacket(client) - if err != nil { - client.Close() + for _, level := range []uint16{1, 2} { + t.Run(fmt.Sprint(level), func(t *testing.T) { + data := testNPCData() + data.Playfields[0].Districts[0].Groups[0].Level = level + useNPCData(t, data) + world := newTestServer(t) + if err := world.saveUser_locked(world.newCharacter()); err != nil { t.Fatal(err) } - key := binary.BigEndian.Uint32(packet[16:20]) - if key == 0x271b3a6b && binary.BigEndian.Uint32(packet[24:28]) == 1000000 { - spawned = true - end := int(binary.BigEndian.Uint16(packet[6:8])) - if hex.EncodeToString(packet[end-20:end]) != "000007e20001d84e0001d84e0000006400000001" { - client.Close() - t.Fatalf("initial native Leet Bite weapon: %x", packet[end-20:end]) + + for range 2 { + client, connection := net.Pipe() + client.SetDeadline(time.Now().Add(5 * time.Second)) + done := make(chan error, 1) + go func() { defer connection.Close(); done <- world.serveWorldConnection(connection) }() + cookie, _ := hex.DecodeString("dfdf00010001002000000001000000020000001b000000010000000000000000") + client.Write(cookie) + var weapon []byte + spawned := false + for { + packet, err := readPacket(client) + if err != nil { + client.Close() + t.Fatal(err) + } + key := binary.BigEndian.Uint32(packet[16:20]) + if key == 0x271b3a6b && binary.BigEndian.Uint32(packet[24:28]) == 1000000 { + spawned = true + end := int(binary.BigEndian.Uint16(packet[6:8])) + expected := map[uint16]string{1: "000007e20001d84e0001d84f0000006400000001", 2: "000007e20001d84e0001d84f0000006400000002"}[level] + if hex.EncodeToString(packet[end-20:end]) != expected { + client.Close() + t.Fatalf("initial native Leet Bite weapon: %x", packet[end-20:end]) + } + } + if key == 0x1d3c0f1c { + if !spawned { + client.Close() + t.Fatal("weapon arrived before its NPC") + } + weapon = packet + } + if key == 0x5f52412e { + break + } } - } - if key == 0x1d3c0f1c { - if !spawned { - client.Close() - t.Fatal("weapon arrived before its NPC") + client.Close() + if err := <-done; err != nil { + t.Fatal(err) } - weapon = packet - } - if key == 0x5f52412e { - break - } - } - client.Close() - if err := <-done; err != nil { - t.Fatal(err) - } - if len(weapon) == 0 || binary.BigEndian.Uint32(weapon[24:28]) != 1000000 || - hex.EncodeToString(weapon[29:69]) != "000007e20001d84e0001d84e0000006400000001000000000000000000000000000000000000004b" { - t.Fatalf("native Leet Bite profile: %x", weapon) - } - if world.characters[1000000].health != 100 { - t.Fatal("profile did not initialize the NPC's health") - } - world = newServer() + expected := map[uint16]string{ + 1: "000007e20001d84e0001d84f0000006400000001000000000000000000000000000000000000004b", + 2: "000007e20001d84e0001d84f0000006400000002000000000000000000000000000000000000004b", + }[level] + if len(weapon) == 0 || binary.BigEndian.Uint32(weapon[24:28]) != 1000000 || + hex.EncodeToString(weapon[29:69]) != expected { + t.Fatalf("native Leet Bite profile: %x", weapon) + } + if world.characters[1000000].health != 100 { + t.Fatal("profile did not initialize the NPC's health") + } + world = newServer() + } + }) } } diff --git a/server/npc_levels_test.go b/server/npc_levels_test.go @@ -0,0 +1,135 @@ +package main + +import ( + "ao/server/gamedata" + "bytes" + _ "embed" + "encoding/binary" + "encoding/json" + "slices" + "strings" + "testing" + "time" +) + +//go:embed testdata/npc-level-population-assignments.json +var npcLevelPopulationAssignments []byte + +func TestNPCLevelPopulationAssignmentsRetainHandoffEvidence(t *testing.T) { + var fixture struct { + Assignments map[string]struct { + Variants []struct { + Alternatives []string + Groups []string + } + } + } + if err := json.Unmarshal(npcLevelPopulationAssignments, &fixture); err != nil { + t.Fatal(err) + } + groups, placements := 0, 0 + + for _, scenario := range []struct { + code, name, confidence string + monster uint32 + }{{"SR01", "Tiny Stalker", "medium", 17708}, {"DZRA", "Rollerrat", "low", 17687}} { + mapping := gamedata.NPCNames.Templates[scenario.code] + if mapping.Name != scenario.name || mapping.MonsterData != scenario.monster || mapping.Confidence != scenario.confidence || gamedata.NPCNames.Sources[mapping.Source] != "server/testdata/npc-level-population-assignments.json" { + t.Fatal("selected identity lost its source or confidence", scenario.code, mapping) + } + for _, variant := range fixture.Assignments[scenario.code].Variants { + for _, alternative := range variant.Alternatives { + if !strings.Contains(mapping.Comment, alternative) { + t.Fatal("selected identity discarded a documented alternative", scenario.code, alternative) + } + } + for _, id := range variant.Groups { + group := gamedata.NPCGroups[id] + if group == nil || group.TemplateCode != scenario.code || group.Name != scenario.name || group.MonsterData != scenario.monster || group.AppearanceStatus != "inferred_species" { + t.Fatal("population retained a Leet stand-in instead of its selected assignment", id, group) + } + groups++ + placements += len(group.Positions) + } + } + } + if groups != 10 || placements != 82 { + t.Fatal("handoff scope lost groups or placements", groups, placements) + } +} + +func TestNPCLevelTwoUsesInterpolatedBiteForBothObservers(t *testing.T) { + data := testNPCData() + data.Playfields[0].Districts[0].Groups[0].Level = 2 + useNPCData(t, data) + world := newTestServer(t) + player, observer := world.newCharacter(), world.newCharacter() + first, second := &combatTestConn{}, &combatTestConn{} + world.clients[player.id] = &worldClient{id: player.id, conn: first, target: true, ready: true, npcs: map[uint32]bool{1000000: true}} + world.clients[observer.id] = &worldClient{id: observer.id, conn: second, target: true, ready: true, npcs: map[uint32]bool{1000000: true}} + npc := world.characters[1000000] + + if err := world.handleCombat(world.clients[player.id], attackPacket(player.id, npc.id)[20:]); err != nil { + t.Fatal(err) + } + start := player.nextAttack + world.advanceCombat(start) + world.advanceCombat(start.Add(1750*time.Millisecond - time.Nanosecond)) + if player.health != 34 || npc.nextAttack != start.Add(1750*time.Millisecond) { + t.Fatal("level-2 bite did not retain its authored attack phase", player.health, npc.nextAttack.Sub(start)) + } + world.advanceCombat(start.Add(1750 * time.Millisecond)) + world.advanceCombat(start.Add(5250 * time.Millisecond)) + + var damage []uint32 + for index, packet := range first.packets { + if index >= len(second.packets) || !bytes.Equal(packet[16:], second.packets[index][16:]) { + t.Fatal("observers received different level-2 combat results") + } + if binary.BigEndian.Uint32(packet[16:20]) == 0x46002f16 && binary.BigEndian.Uint32(packet[24:28]) == npc.id { + damage = append(damage, binary.BigEndian.Uint32(packet[29:33])) + } + } + if !slices.Equal(damage, []uint32{9, 9}) || player.health != 16 || npc.maximumHealth() != 100 || npc.nextAttack != start.Add(8750*time.Millisecond) { + t.Fatal("level-2 profile did not use QL2 damage, selected resources and catalog timing", damage, player.health, npc.maximumHealth(), npc.nextAttack.Sub(start)) + } + if itemStat(gamedata.ItemTemplates[120910], 285) != 8 || itemStat(gamedata.ItemTemplates[120911], 285) != 406 { + t.Fatal("interpolation changed a shared catalog endpoint") + } +} + +func TestNPCLevelTwoDeathRetainsProductionRewardsAcrossColdPickup(t *testing.T) { + world, _ := newKillExperienceWorld(t, "unarmed") + target := world.characters[1000000] + target.level, target.combatProfile = 2, gamedata.NPCCombatProfiles[17655][2] + world.combatRoll = func(uint32) uint32 { return 0 } + if err := world.flushWorld(); err != nil { + t.Fatal(err) + } + identity := world.nextItem + 1 + + attackForExperience(t, world, "unarmed") + world = newTestInventoryServer(t) + client := &worldClient{id: 1, conn: &combatTestConn{}, target: true, ready: true, npcs: map[uint32]bool{1000000: true}} + world.clients[1] = client + if err := world.handleLootUse(client, lootUseRequest(1)); err != nil { + t.Fatal(err) + } + if err := world.handleInventory(client, lootTakeRequest()); err != nil { + t.Fatal(err) + } + if err := world.handleLootUse(client, lootUseRequest(1)); err != nil { + t.Fatal(err) + } + cold := newTestInventoryServer(t) + + expected := []ownedItem{{ID: identity, Type: 51005, Template: 42640, Quality: 1, Slot: 64, Count: 1}} + for _, current := range []*server{world, cold} { + if !slices.Equal(current.characters[1].inventory.Items, expected) || current.characters[1].inventory.Credits != 1 || current.characters[1].experience != 100 || current.nextItem != identity { + t.Fatal("level-2 kill, cold pickup or repeated open lost or repeated rewards", current.characters[1].inventory, current.characters[1].experience) + } + if current.characters[1000000].combatProfile == nil || current.characters[1000000].level != 2 || len(current.characters[1000000].corpse.items) != 0 { + t.Fatal("cold state lost the exact-level profile or retained its collected item") + } + } +} diff --git a/server/target_protocol.go b/server/target_protocol.go @@ -80,7 +80,7 @@ func targetPacket(packet []byte) []byte { monsterOffset++ } if profile := gamedata.NPCCombatProfiles[binary.BigEndian.Uint32(packet[monsterOffset:])][level]; profile != nil { - weaponLow, weaponHigh, weaponParameter = profile.Weapon, profile.Weapon, uint32(level) + weaponLow, weaponHigh, weaponParameter = profile.Weapon[0], profile.Weapon[1], uint32(level) } } binary.BigEndian.PutUint32(packet[37:41], flags|0x100) diff --git a/server/testdata/npc-level-population-assignments.json b/server/testdata/npc-level-population-assignments.json @@ -0,0 +1,79 @@ +{ + "source": "reports/all-npc-code-assignments.json", + "source_sha256": "0db82f6bd1dde17f95c921daf3ccb1a99c28c0761929d8fcba5be46d8ebdc6ac", + "assignments": { + "SR01": { + "scope": "maintained_population", + "selected": { + "name": "Tiny Stalker", + "asset": { + "kind": "monster_data", + "id": 17708 + }, + "appearance": 229, + "confidence": "medium" + }, + "variants": [ + { + "name": "Tiny Stalker", + "asset": { + "kind": "monster_data", + "id": 17708 + }, + "appearance": 229, + "confidence": "medium", + "reason": "The public AORebirth Omni-Tek Virtual Training Ground capture contains Tiny Stalker / MonsterData 17708. Original playfield 950 has LE/RT/SN/ML creature populations already accounting for the captured Leet, Reet, Snake and Malle families, leaving SR01 in the same level 2-4 area as the remaining Stalker family. Captured Tiny Stalkers occur within 0.60 and 6.50 metres of original SR01 points, but other species share this area, so proximity alone is not an exact template binding. SR is consistent with StalkeR. Faunlore independently describes the higher Stalker forms in the Artery Valley, matching SR02-05 geography and increasing authored levels. Replace the contradicted Scavenger Dog guess. Numbered higher forms remain unnamed. Sources: evidence/training-enemy-state.csv; reports/training-location-matches.json; https://github.com/subarumike/AORebirth/tree/08b546aa7bbfb8148e88b991688cf9b55dfa013d/For%20Repo ; https://faunlore.aodb.us/rk_terraformers/main_stalkers.html", + "alternatives": [ + "Tree Stalker", + "Mist Stalker", + "Striker Stalker", + "Modern capture and original template association remains inferred" + ], + "groups": [ + "565/district/3/group/5/spread_authored_point", + "646/district/6/group/23/spread_authored_point", + "716/district/1/group/15/spread_authored_point", + "716/district/39/group/13/spread_authored_point", + "716/district/46/group/16/spread_authored_point", + "717/district/24/group/20/spread_authored_point", + "800/district/4/group/4/spread_authored_point", + "950/district/4/group/3/authored_point" + ], + "placements": 80 + } + ] + }, + "DZRA": { + "scope": "maintained_population", + "selected": { + "name": "Rollerrat", + "asset": { + "kind": "monster_data", + "id": 17687 + }, + "appearance": 229, + "confidence": "low" + }, + "variants": [ + { + "name": "Rollerrat", + "asset": { + "kind": "monster_data", + "id": 17687 + }, + "appearance": 229, + "confidence": "low", + "reason": "Select the role or encounter supported by the abbreviation and its authored site/level. This is a best-effort reconstruction; exact historical identity, head and equipment are not asserted.", + "alternatives": [ + "Another local guard, worker or encounter variant" + ], + "groups": [ + "716/district/33/group/2/spread_authored_point", + "716/district/63/group/2/authored_point" + ], + "placements": 2 + } + ] + } + } +}