Fixes packet length & PropertyList (#82)
This commit is contained in:
parent
1f1ceade8c
commit
27e8d823bd
20 changed files with 251 additions and 225 deletions
|
|
@ -1370,9 +1370,9 @@ namespace Server.Items
|
|||
return base.CanEquip(from);
|
||||
}
|
||||
|
||||
public override bool CheckPropertyConfliction(Mobile m)
|
||||
public override bool CheckPropertyConflict(Mobile m)
|
||||
{
|
||||
if (base.CheckPropertyConfliction(m))
|
||||
if (base.CheckPropertyConflict(m))
|
||||
return true;
|
||||
|
||||
if (Layer == Layer.Pants)
|
||||
|
|
|
|||
|
|
@ -544,9 +544,9 @@ namespace Server.Items
|
|||
return Attributes.SpellChanneling != 0;
|
||||
}
|
||||
|
||||
public override bool CheckPropertyConfliction(Mobile m)
|
||||
public override bool CheckPropertyConflict(Mobile m)
|
||||
{
|
||||
if (base.CheckPropertyConfliction(m))
|
||||
if (base.CheckPropertyConflict(m))
|
||||
return true;
|
||||
|
||||
if (Layer == Layer.Pants)
|
||||
|
|
|
|||
|
|
@ -541,31 +541,22 @@ namespace Server.Items
|
|||
|
||||
writer.WriteDeltaTime(TimeOfDeath);
|
||||
|
||||
List<KeyValuePair<Item, Point3D>> list = m_RestoreTable == null
|
||||
? null
|
||||
: new List<KeyValuePair<Item, Point3D>>(m_RestoreTable);
|
||||
int count = list?.Count ?? 0;
|
||||
|
||||
int count = m_RestoreTable?.Count ?? 0;
|
||||
writer.Write(count);
|
||||
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
KeyValuePair<Item, Point3D> kvp = list[i];
|
||||
Item item = kvp.Key;
|
||||
Point3D loc = kvp.Value;
|
||||
|
||||
writer.Write(item);
|
||||
|
||||
if (item.Location == loc)
|
||||
if (m_RestoreTable != null)
|
||||
foreach (var (item, loc) in m_RestoreTable)
|
||||
{
|
||||
writer.Write(false);
|
||||
writer.Write(item);
|
||||
|
||||
if (item.Location == loc)
|
||||
writer.Write(false);
|
||||
else
|
||||
{
|
||||
writer.Write(true);
|
||||
writer.Write(loc);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.Write(true);
|
||||
writer.Write(loc);
|
||||
}
|
||||
}
|
||||
|
||||
writer.Write(m_DecayTimer != null);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<WarningsAsErrors />
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<OutDir>..\..\Distribution\Assemblies</OutDir>
|
||||
<OutputPath>..\..\Distribution\Assemblies</OutputPath>
|
||||
<PublishDir>..\..\Distribution\Assemblies</PublishDir>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue