Files

30 lines
3.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Q88 named-item durability logs
The two ordinary spell senders agree on the item entry and on the meaning of the selected equipment slot. For effect 111, the source emits the player's actual item entry and a signed −1 tail. The native sender supplies the item entry and the actual equipment slot. Its serializer calls the second int32 `Amount`. The native variable name comes from the packet structure, while the effect-handler argument provides its semantics. Both senders emit the pair (−1, −1) for group damage and only handle players.
| Spell ID | Source spell name | Native equipment slot |
| ---: | --- | --- |
| 21388 | Melt Weapon | 15, main hand |
| 22619 | Force Reactive Disk | 16, off hand |
| 23438 | Corrupt Weapon | 17, ranged |
The source TSV contains 30,790 spells and the Tortoise SQL base contains 27,916. All seven effect-111 slots agree by spell ID, index and signed misc value. IDs 5978 and 22068 have a negative slot. ID 16722 has two effect-111 slots with misc −2 and −1. Each produces the same explicit group tuple. A named item requires a positive signed int32 and an unambiguous, matching equipment-slot name in both games. A zero item, contradictory group marker for one of the three named spells, unknown named slot, non-player, invalid tail or unbound victim omits the event. An explicitly encoded group for an unknown spell retains the previous translation. Other execute effects keep their existing writer paths.
## Source and wire evidence
The Tortoise base SQL file `sql/base/tw_world_spell_template.sql` has SHA-256 `3c3b013e9b3c7def8922dc9c3456c7c9e469429f9b2d205f05b69e6fc6a6d36c`. The Octo `Spell.octo.tsv` dump has SHA-256 `de5fe7864479835883aa2e7a37e251e8117240419d944059fb7c3da7fea48b4a`. The join uses the labeled ID field in the TSV. Its leading column is a row ordinal. The two Player headers supply equipment-slot names. Bag-slot positions have different layouts between the two games.
Tortoise commit `fbf5f63a65271e8769d6ac2bc20d86d392d00072` defines the player-only emitter in `src/game/Spells/SpellEffects.cpp`, `Spell::EffectDurabilityDamage`. Its `Spell.cpp` writes the raw source victim GUID, item entry and unknown −1. Trinity commit `4ecbd289984d8d316e6baa0d120f3f9c967bf47a` calls `ExecuteLogEffectDurabilityDamage(effect, victim, item->GetEntry(), slot)` from `src/server/game/Spells/SpellEffects.cpp`. Its `Spell.cpp` assigns those values to `ItemID` and `Amount`. The writer in `src/server/game/Server/Packets/CombatLogPackets.cpp` serializes victim GUID, signed item entry and signed slot in the third of the six target lists.
## Offline checks
From this worktree, run the catalogue check against the project containing the public source trees and retained Octo dump. A normal host build also registers the generator regressions and two integration suites.
```sh
python3 -B ops/durability_effect_slots.py /mnt/Games/@project
cmake --build /mnt/Games/@project/build/q88-durability-slots-20261128/host --target source-combat-event-tests native-spell-interrupt-execute-tests
ctest --test-dir /mnt/Games/@project/build/q88-durability-slots-20261128/host -R '^(native-source-combat-event-notifications|native-spell-interrupt-execute|durability-effect-slot-profiles)$' --output-on-failure
```
The host fixtures exercise the normal world translator for all three named items, self and remote player bindings, the explicit equipment groups, accepted input bounds, contradictory records, unbound and non-player targets, and grouped all-or-nothing output. The source reference generator tests cover differing effect indices, missing spells, indistinguishable slots, equipment names and unmapped slots. Host results establish emitted bytes. Client presentation and a new operator deployment remain outside these checks.