Files
Aaron Kimbrell 221dd36d80 feat: deletion restrictions
Deleting an item now follows the item's DeletionRestrictions row (ItemComponent.delResIndex), as the client's LWOInventoryComponent_Common::CanRemoveFromInventory (0x00ce0d20) and CheckDeletionRestrictionIndex (0x00c94c20) do: an item the player is driving or riding can't be deleted, an operator can delete anything, and otherwise the row decides:
- LOTS_INCLUDED: only while the player has another item of any of the LOTs (the last rocket can't be deleted)
- LOTS_EXCLUDED: only while the player has other items of all of the LOTs
- ANY_RESTRICTION / ALL_RESTRICTIONS: any / all of the listed rows allow it (a row that names itself again allows it)
- ZONE: only in the listed zones
- ALWAYS_RESTRICTED: never
A missing, unrestricted or bad row (no valid ids, unknown check type) allows it. The client checks first and shows the row's failure reason; the server checks again and ignores a client's forceDeletion.

Refs issue 960

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 21:10:38 -05:00
..
2026-10-16 21:10:38 -05:00
2026-06-24 17:18:16 -05:00
2024-12-24 14:32:08 -08:00
2024-12-24 14:32:08 -08:00
2022-07-28 08:39:57 -05:00
2024-12-24 22:23:14 -08:00
2024-01-01 21:50:00 -06:00
2024-01-01 21:50:00 -06:00
2026-06-19 19:08:15 -07:00
2025-10-10 23:07:16 -05:00
2026-06-08 21:42:32 -07:00
2026-06-08 21:42:32 -07:00
2026-06-07 20:59:11 -07:00