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

@ -123,8 +123,26 @@ namespace Server.Mobiles
int version = reader.ReadInt();
DropPackContents();
Delete();
m_ToRemove.Add( this );
}
private static List<BaseFamiliar> m_ToRemove;
public static void Configure()
{
m_ToRemove = new List<BaseFamiliar>();
}
public static void Initialize()
{
foreach( BaseFamiliar f in m_ToRemove )
{
f.DropPackContents();
f.Delete();
}
m_ToRemove.Clear();
m_ToRemove = null;
}
private class ReleaseEntry : ContextMenuEntry

View file

@ -91,6 +91,15 @@ namespace Server.Mobiles
}
}
public virtual Mobile countThis { get { return m_countThis; } set { m_countThis = value; } }
public virtual int CombatMiss { get { return m_CombatMiss; } set { m_CombatMiss = value; } }
public virtual int CombatHits { get { return m_CombatHits; } set { m_CombatHits = value; } }
private int m_CombatMiss;
private int m_CombatHits;
private Mobile m_countThis;
private DesignContext m_DesignContext;
private NpcGuild m_NpcGuild;
@ -2094,9 +2103,16 @@ namespace Server.Mobiles
private int m_InsuranceCost;
private int m_InsuranceBonus;
private List<Item> m_EquipSnapshot;
public List<Item> EquipSnapshot
{
get { return m_EquipSnapshot; }
}
private bool FindItems_Callback(Item item)
{
if (!item.Deleted && (item.LootType == LootType.Blessed || item.Insured == true))
if (!item.Deleted && (item.LootType == LootType.Blessed || item.Insured))
{
if (this.Backpack != item.ParentEntity)
{
@ -2125,6 +2141,8 @@ namespace Server.Mobiles
}
}
m_EquipSnapshot = new List<Item>( this.Items );
m_NonAutoreinsuredItems = 0;
m_InsuranceCost = 0;
m_InsuranceAward = base.FindMostRecentDamager( false );
@ -2231,6 +2249,8 @@ namespace Server.Mobiles
base.OnDeath(c);
m_EquipSnapshot = null;
HueMod = -1;
NameMod = null;
SavagePaintExpiration = TimeSpan.Zero;