fix: Codegens spell items (#1765)

### Summary
- Fixes some serialization issues with spell items
- Fixes accessibility issues with field spells and removes the awkward "InternalItem" concept
- Codegens the fields/items used in spells
This commit is contained in:
Kamron Batman 2024-05-08 19:48:39 -07:00 • committed by GitHub
parent 542b672d9d
commit 8efa90b3ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 1389 additions and 1507 deletions

View file

@ -100,8 +100,7 @@ namespace Server.Spells.Third
using var queue = PooledRefQueue<Item>.Create();
foreach (var item in m.GetItemsAt())
{
if (item is ParalyzeFieldSpell.InternalItem or
PoisonFieldSpell.InternalItem or FireFieldSpell.FireFieldItem)
if (item is ParalyzeField or PoisonField or FireFieldItem)
{
// Use a queue just in case OnMoveOver changes the item's sector
queue.Enqueue(item);