feat: add ContainerId to MyWorldObject for inventory tracking
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
725bbf473f
commit
ce0fae7d10
2 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ namespace Mag.Shared
|
|||
spells.Add(wo.Spell(i));
|
||||
|
||||
mwo.Init(wo.HasIdData, wo.Id, wo.LastIdTime, (int)wo.ObjectClass, wo.Icon, boolValues, doubleValues, intValues, stringValues, activeSpells, spells);
|
||||
mwo.ContainerId = wo.Container;
|
||||
|
||||
return mwo;
|
||||
}
|
||||
|
|
@ -54,6 +55,7 @@ namespace Mag.Shared
|
|||
MyWorldObject mwo = Create(newer);
|
||||
|
||||
older.AddTo(mwo.BoolValues, mwo.DoubleValues, mwo.IntValues, mwo.StringValues);
|
||||
older.ContainerId = newer.Container;
|
||||
|
||||
return older;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue