Added inventory over websockets, death reporting, taper reporting.

This commit is contained in:
erik 2025-06-08 22:45:22 +02:00
parent ebf6fd0bf7
commit 28bdf7f312
7 changed files with 273 additions and 8 deletions

View file

@ -35,13 +35,19 @@ namespace Mag.Shared
for (int i = 0; i < wo.SpellCount; i++)
spells.Add(wo.Spell(i));
mwo.Init(wo.HasIdData, wo.Id, wo.LastIdTime, (int)wo.ObjectClass, boolValues, doubleValues, intValues, stringValues, activeSpells, spells);
mwo.Init(wo.HasIdData, wo.Id, wo.LastIdTime, (int)wo.ObjectClass, wo.Icon, boolValues, doubleValues, intValues, stringValues, activeSpells, spells);
return mwo;
}
public static MyWorldObject Combine(MyWorldObject older, WorldObject newer)
{
// Always repair missing icons from old JSON files (plugin upgrades)
if (older.Icon == 0 && newer.Icon != 0)
{
older.Icon = newer.Icon;
}
if (!older.HasIdData || newer.HasIdData)
return Create(newer);