arcane circle correction
insured/blessed items auto-equip when looting self
creepy portrait corrected.
issue blocking talisman summoning fixed.
horde minions drop loot at server up.
This commit is contained in:
xavier 2011-09-18 01:30:17 +00:00
parent da56ceccbb
commit af17f4bcbd
8 changed files with 242 additions and 92 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Server;
namespace Server.Items
@ -29,7 +30,32 @@ namespace Server.Items
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.WriteEncodedInt( 1 ); // version
}
private static List<ArcaneCircleAddon> m_ToFix;
public static void Configure()
{
m_ToFix = new List<ArcaneCircleAddon>();
}
public static void Initialize()
{
foreach ( ArcaneCircleAddon ac in m_ToFix )
{
foreach ( AddonComponent c in ac.Components )
{
if ( c.ItemID == 0x3083 )
{
c.Offset = new Point3D( -1, -1, 0 );
c.MoveToWorld( new Point3D( ac.X + c.Offset.X, ac.Y + c.Offset.Y, ac.Z + c.Offset.Z ), ac.Map );
}
}
}
m_ToFix.Clear();
m_ToFix = null;
}
public override void Deserialize( GenericReader reader )
@ -37,6 +63,9 @@ namespace Server.Items
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
if ( version == 0 )
m_ToFix.Add( this );
}
}