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:
parent
542b672d9d
commit
8efa90b3ce
25 changed files with 1389 additions and 1507 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue