Beispiel #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            case 0:
            {
                m_Bonus = reader.ReadInt();
                break;
            }
            }

            if (m_Bonus != 0 && Parent is Mobile)
            {
                if (m_SkillMod != null)
                {
                    m_SkillMod.Remove();
                }

                m_SkillMod = new DefaultSkillMod(SkillName.Blacksmith, true, m_Bonus);
                ((Mobile)Parent).AddSkillMod(m_SkillMod);
            }

            if (Hue == 0)
            {
                Hue = 0x482;
            }

            if (version == 0)
            {
                AncientSmithHammerWeapon hammer = new AncientSmithHammerWeapon(m_Bonus, UsesRemaining);
                Timer.DelayCall <Item>(TimeSpan.FromSeconds(1.0), new TimerStateCallback <Item>(Replace_Item), hammer);
            }
        }
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					m_Bonus = reader.ReadInt();
					break;
				}
			}

			if ( m_Bonus != 0 && Parent is Mobile )
			{
				if ( m_SkillMod != null )
					m_SkillMod.Remove();

				m_SkillMod = new DefaultSkillMod( SkillName.Blacksmith, true, m_Bonus );
				((Mobile)Parent).AddSkillMod( m_SkillMod );
			}

			if ( Hue == 0 )
				Hue = 0x482;

			if ( version == 0 )
			{
				AncientSmithHammerWeapon hammer = new AncientSmithHammerWeapon( m_Bonus, UsesRemaining );
				Timer.DelayCall<Item>( TimeSpan.FromSeconds( 1.0 ), new TimerStateCallback<Item>( Replace_Item ), hammer );
			}
		}