Exemple #1
0
        public MonsterStatuette( MonsterStatuetteType type )
            : base(MonsterStatuetteInfo.GetInfo( type ).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;
        }
Exemple #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            case 0:
            {
                if (version < 1)
                {
                    m_Type = (MonsterStatuetteType)m_ConvertList[reader.ReadEncodedInt()];
                }
                else
                {
                    m_Type = (MonsterStatuetteType)reader.ReadEncodedInt();
                }

                m_TurnedOn     = reader.ReadBool();
                m_IsRewardItem = reader.ReadBool();
                break;
            }
            }
        }
 public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
 {
     Weight   = 1.0;
     LootType = LootType.Regular;
     Name     = MonsterStatuetteInfo.GetInfo(type).Description;
     m_Type   = type;
 }
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            Weight   = 1.0;
            LootType = LootType.Blessed;

            m_Type = type;
        }
Exemple #5
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;
            Dyable = true;
        }
		public static MonsterStatuetteInfo GetInfo( MonsterStatuetteType type )
		{
			int v = (int)type;

			if ( v < 0 || v >= m_Table.Length )
				v = 0;

			return m_Table[v];
		}
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Type     = (MonsterStatuetteType)reader.ReadEncodedInt();
            m_TurnedOn = reader.ReadBool();
        }
        public MonsterStatuette( MonsterStatuetteType type )
            : base(MonsterStatuetteInfo.GetInfo( type ).ItemID)
        {
            m_Type = type;

            if( m_Type == MonsterStatuetteType.Slime )
                Hue = Utility.RandomSlimeHue();
            else if( m_Type == MonsterStatuetteType.RedDeath )
                Hue = 0x21;
        }
Exemple #9
0
        public static MonsterStatuetteInfo GetInfo(MonsterStatuetteType type)
        {
            int v = (int)type;

            if (v < 0 || v >= m_Table.Length)
            {
                v = 0;
            }

            return(m_Table[v]);
        }
Exemple #10
0
        public MonsterStatuette(MonsterStatuetteType type)
            : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            this.LootType = LootType.Blessed;

            this.m_Type = type;

            if (this.m_Type == MonsterStatuetteType.Slime)
                this.Hue = Utility.RandomSlimeHue();
            else if (this.m_Type == MonsterStatuetteType.RedDeath)
                this.Hue = 0x21;
        }
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }
        }
        public MonsterStatuette(MonsterStatuetteType type)
            : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }
            else if (m_Type == MonsterStatuetteType.HalloweenGhoul)
            {
                Hue = 0xF4;
            }
            else if (m_Type == MonsterStatuetteType.ArchDemon)
            {
                Hue = 2021;
            }
            else if (m_Type == MonsterStatuetteType.SnowElemental)
            {
                Hue = 1150;
            }
            else if (m_Type == MonsterStatuetteType.SakkhranBirdOfPrey)
            {
                double ran = Utility.RandomDouble();
                if (0.01 > ran)
                {
                    Hue = 1907;
                }
                else if (0.1 > ran)
                {
                    Hue = 2562;
                }
                else if (0.25 > ran)
                {
                    Hue = 2525;
                }
                else
                {
                    Hue = 2309;
                }
            }
        }
Exemple #13
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                this.m_Type         = (MonsterStatuetteType)reader.ReadEncodedInt();
                this.m_TurnedOn     = reader.ReadBool();
                this.m_IsRewardItem = reader.ReadBool();
                break;
            }
            }
        }
Exemple #14
0
        public MonsterStatuette(MonsterStatuetteType type) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }

            ItemValue = ItemValue.Rare;
        }
Exemple #15
0
        public MonsterStatuette(MonsterStatuetteType type = MonsterStatuetteType.Crocodile) : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            LootType = LootType.Blessed;

            m_Type = type;

            if (m_Type == MonsterStatuetteType.Slime)
            {
                Hue = Utility.RandomSlimeHue();
            }
            else if (m_Type == MonsterStatuetteType.RedDeath)
            {
                Hue = 0x21;
            }
            else if (m_Type == MonsterStatuetteType.HalloweenGhoul)
            {
                Hue = 0xF4;
            }
        }
Exemple #16
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                m_EngravedText = reader.ReadString();
                goto case 0;

            case 0:
            {
                m_Type       = (MonsterStatuetteType)reader.ReadEncodedInt();
                m_TurnedOn   = reader.ReadBool();
                IsRewardItem = reader.ReadBool();
                break;
            }
            }
        }
Exemple #17
0
        public MonsterStatuette(MonsterStatuetteType type)
            : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            this.LootType = LootType.Blessed;

            this.m_Type = type;

            if (this.m_Type == MonsterStatuetteType.Slime)
            {
                this.Hue = Utility.RandomSlimeHue();
            }
            else if (this.m_Type == MonsterStatuetteType.RedDeath)
            {
                this.Hue = 0x21;
            }
            else if (this.m_Type == MonsterStatuetteType.HalloweenGhoul)
            {
                this.Hue = 0xF4;
            }
            else if (m_Type == MonsterStatuetteType.ArchDemon)
            {
                Hue = 2021;
            }
        }
		public MonsterStatuette( MonsterStatuetteType type ) : base( MonsterStatuetteInfo.GetInfo( type ).ItemID )
		{
			Weight = 1.0;
			LootType = LootType.Regular;
			Name = MonsterStatuetteInfo.GetInfo( type ).Description;
			m_Type = type;
		}
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					if ( version < 1 )
						m_Type = (MonsterStatuetteType)m_ConvertList[reader.ReadEncodedInt()];
					else
						m_Type = (MonsterStatuetteType)reader.ReadEncodedInt();

					m_TurnedOn = reader.ReadBool();
					m_IsRewardItem = reader.ReadBool();
					break;
				}
			}
		}
		public MonsterStatuette( MonsterStatuetteType type ) : base( MonsterStatuetteInfo.GetInfo( type ).ItemID )
		{
			LootType = LootType.Blessed;
			Weight = 1.0;
			m_Type = type;
//			Dyable = true;
		}
		public MonsterStatuette( MonsterStatuetteType type ) : base( MonsterStatuetteInfo.GetInfo( type ).ItemID )
		{
			LootType = LootType.Blessed;

			m_Type = type;

			if( m_Type == MonsterStatuetteType.Slime )
				Hue = Utility.RandomSlimeHue();
			else if( m_Type == MonsterStatuetteType.RedDeath )
				Hue = 0x21;
            else if (m_Type == MonsterStatuetteType.HalloweenGhoul)
                Hue = 0xF4;
		}
Exemple #22
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Type = (MonsterStatuetteType)reader.ReadEncodedInt();
                        this.m_TurnedOn = reader.ReadBool();
                        this.m_IsRewardItem = reader.ReadBool();
                        break;
                    }
            }
        }
Exemple #23
0
        public MonsterStatuette(MonsterStatuetteType type)
            : base(MonsterStatuetteInfo.GetInfo(type).ItemID)
        {
            this.LootType = LootType.Blessed;

            this.m_Type = type;

            if (this.m_Type == MonsterStatuetteType.Slime)
                this.Hue = Utility.RandomSlimeHue();
            else if (this.m_Type == MonsterStatuetteType.RedDeath)
                this.Hue = 0x21;
            else if (this.m_Type == MonsterStatuetteType.HalloweenGhoul)
                this.Hue = 0xF4;
            else if (m_Type == MonsterStatuetteType.ArchDemon)
                Hue = 2021;
        }
		public MonsterStatuette( MonsterStatuetteType type ) : base( MonsterStatuetteInfo.GetInfo( type ).ItemID )
		{
			LootType = LootType.Regular;

			m_Type = type;
			Dyable = true;
		    double rand = Utility.RandomDouble();
		    if (0.001 >= rand)
		    {
		        Hue = 1161;
		    }
            else if (0.01 >= rand)
            {
                Hue = 1153;             
            }
            else if (0.05 >= rand)
            {
                Hue = 1266; 
            }
		}