Files
DarkflameServer/dGame/dComponents
Aaron Kimbrell 3f3d74a6a2 fix(preconditions): a precondition only applies in the contexts its row names
LWOPreconditionComponent::CheckPrecondition is given the context
of the check and passes a precondition whose validContexts does not have that
context's bit: 0 buying from a vendor, 1 a vendor listing its items, 2
equipping an item that is bound to the player, and none (-1) for everything
else, which leaves out the rows that only name those three (a value under 5).
A row with no context at all fails. Every row was checked everywhere here.

Two things change:

- Preconditions 338 and 339 (mission 1926 / 1918 completed, validContexts 3)
  are for vendors only and no longer stop an item from being used or equipped.
- A bound item was equipped without any of its requirements. It is now checked
  in the bound item context, as the client checks it before asking: only the
  level requirements (validContexts 249) are left out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 01:02:35 -06:00
..