GetHue() public static méthode

Returns the CraftResourceInfo.Hue property of 'resource' -or- 0 if an invalid resource was specified.
public static GetHue ( CraftResource resource ) : int
resource CraftResource
Résultat int
Exemple #1
0
        public BaseScales(CraftResource resource, int amount)
            : base(0x26B4)
        {
            this.Stackable = true;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
Exemple #2
0
        public BaseHides(CraftResource resource, int amount) : base(0x1079)
        {
            Stackable = true;
            Weight    = 5.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #3
0
        public BaseWoodBoard(CraftResource resource, int amount)
            : base(0x1BD7)
        {
            Stackable = true;
            Amount    = amount;

            m_Resource = resource;
            Hue        = CraftResources.GetHue(resource);
        }
Exemple #4
0
        public BaseIngot(CraftResource resource, int amount)
            : base(0x1BF2)
        {
            this.Stackable = true;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
Exemple #5
0
        public BaseOre(CraftResource resource, int amount) : base(0x19B9)
        {
            Stackable = true;
            Weight    = 20.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #6
0
        public Log(CraftResource resource, int amount) : base(0x1BDD)
        {
            Stackable = true;
            Weight    = 1.0;
            Amount    = amount;

            m_Resource = resource;
            Hue        = CraftResources.GetHue(resource);
        }
Exemple #7
0
        public Board(CraftResource resource, int amount)
            : base(0x1BD7)
        {
            this.Stackable = true;
            this.Amount    = amount;

            this.m_Resource = resource;
            this.Hue        = CraftResources.GetHue(resource);
        }
        public BaseLeather(CraftResource resource, int amount) : base(0x1081)
        {
            Stackable = true;
            Weight    = 1.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #9
0
//Modded from -         public BaseGranite( CraftResource resource ) : base( 0x1779 ) - to what it is below
        public BaseGranite(CraftResource resource, int amount) : base(0x1779)
        {
            Stackable = true;           //I ADDED
            Amount    = amount;         //I ADDED
            Hue       = CraftResources.GetHue(resource);
            Stackable = Core.ML;

            m_Resource = resource;
        }
Exemple #10
0
        public BaseIngot(CraftResource resource, int amount) : base(0x1BF2)
        {
            Stackable = true;
            Weight    = 0.1;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #11
0
        public BaseOre(CraftResource resource, int amount)
            : base(RandomSize())
        {
            this.Stackable = true;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
Exemple #12
0
        public BaseScales(CraftResource resource, int amount) : base(0x26B4)
        {
            Stackable = true;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
            ItemValue  = ItemValue.Resource;
        }
Exemple #13
0
        public BaseOre(CraftResource resource, int amount)
            : base(RandomSize())
        {
            Stackable = true;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
        public BaseScales(CraftResource resource, int amount) : base(0x26B4)
        {
            Stackable = true;
            Weight    = 0.1;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
        public BaseCold(CraftResource resource, int amount)
            : base(0x09B5)
        {
            Stackable = true;
            Weight    = 0.01;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #16
0
        public BaseGranite(CraftResource resource)
            : base(0x1779)
        {
            Weight = 1.0;
            Hue    = CraftResources.GetHue(resource);

            m_Resource = resource;

            Stackable = true;
        }
Exemple #17
0
        public BaseFouet(int itemID)
            : base(itemID)
        {
            m_Quality = FouetQuality.Regular;
            m_Crafter = null;
            NextUse   = DateTime.MinValue;
            Hue       = CraftResources.GetHue(m_Resource);

            this.Layer = Layer.OneHanded;
        }
Exemple #18
0
        public BaseHides(CraftResource resource, int amount)
            : base(0x1079)
        {
            this.Stackable = true;
            this.Weight    = 5.0;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
Exemple #19
0
        public BaseGlovesOfMining(int bonus, int itemID)
            : base(itemID)
        {
            this.m_Bonus = bonus;

            //this.Hue = CraftResources.GetHue((CraftResource)Utility.RandomMinMax((int)CraftResource.DullCopper, (int)CraftResource.Valorite));
            //daat99 OWLTR start = ores hues
            this.Hue = CraftResources.GetHue((CraftResource)Utility.RandomMinMax((int)CraftResource.DullCopper, (int)CraftResource.Platinum));
            //daat99 OWLTR end = ores hues
        }
Exemple #20
0
        public Log(CraftResource resource, int amount)
            : base(0x1BDD)
        {
            this.Stackable = true;
            this.Weight    = 2.0;
            this.Amount    = amount;

            this.m_Resource = resource;
            this.Hue        = CraftResources.GetHue(resource);
        }
Exemple #21
0
        public BaseBoards(CraftResource resource, int amount)
            : base(0x1BD7)
        {
            Stackable = true;
            Weight    = 1.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
        public BaseLeather(CraftResource resource, int amount)
            : base(0x1081)
        {
            this.Stackable = true;
            this.Weight    = 1.0;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
        public override void ResourceChange()
        {
            int resourceHue = CraftResources.GetHue(Resource);

            if (resourceHue != 0)
            {
                Hue = resourceHue;
            }

            DetermineUses();
        }
Exemple #24
0
        public BaseFish(CraftResource resource, int amount) : base(0x09CC) //Utility.Random(0x09CC, 4)
        {
            Stackable = true;
            Weight    = 1.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;

            //Name = "Poisson : " + resource.ToString();
        }
Exemple #25
0
        public BaseLog(CraftResource resource, int amount)
            : base(0x1BDD)
        {
            Stackable = true;
            Weight    = 0.3;
            Amount    = amount;

            m_Resource = resource;
            Name       = CraftResources.GetName(resource) + " log";
            Hue        = CraftResources.GetHue(resource);
        }
Exemple #26
0
        public override void GetProperties(ObjectPropertyList list)
        {
            int oldUses = m_UsesRemaining;

            CheckReplenishUses(false);

            base.GetProperties(list);

            if (m_Crafter != null)
            {
                list.Add(1050043, m_Crafter.RawName);                 // crafted by ~1_NAME~
            }

            if (m_Quality == InstrumentQuality.Exceptional)
            {
                list.Add(1060636);                 // exceptional
            }

            list.Add(1060584, m_UsesRemaining.ToString());             // uses remaining: ~1_val~

            if (m_ReplenishesCharges)
            {
                list.Add(1070928);                 // Replenish Charges
            }

            if (m_Slayer != SlayerName.None)
            {
                SlayerEntry entry = SlayerGroup.GetEntryByName(m_Slayer);
                if (entry != null)
                {
                    list.Add(entry.GetTitle(EraAOS));
                }
            }

            if (m_Slayer2 != SlayerName.None)
            {
                SlayerEntry entry = SlayerGroup.GetEntryByName(m_Slayer2);
                if (entry != null)
                {
                    list.Add(entry.GetTitle(EraAOS));
                }
            }

            if ((m_Resource >= CraftResource.OakWood && m_Resource <= CraftResource.Frostwood) &&
                Hue == CraftResources.GetHue(m_Resource))
            {
                list.Add(CraftResources.GetLocalizationNumber(m_Resource));
            }

            if (m_UsesRemaining != oldUses)
            {
                Timer.DelayCall(TimeSpan.Zero, InvalidateProperties);
            }
        }
Exemple #27
0
        public TAVOre(CraftResource resource, int amount)
            : base(resource)
        {
            ItemID    = 0x19B9;
            Stackable = true;
            Weight    = 3.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
Exemple #28
0
        public Log(CraftResource resource, int amount)
            : base(0x1BDD)
        {
            Stackable = true;
            Weight    = 2.0;
            Amount    = amount;

            m_Resource = resource;
            Hue        = CraftResources.GetHue(resource);

            ItemValue = ItemValue.Common;
        }
Exemple #29
0
        public BaseArmor(int itemID) :  base(itemID)
        {
            m_Quality    = ArmorQuality.Regular;
            m_Durability = ArmorDurabilityLevel.Regular;
            m_Crafter    = null;

            m_Resource = DefaultResource;
            Hue        = CraftResources.GetHue(m_Resource);

            m_HitPoints = m_MaxHitPoints = Utility.RandomMinMax(InitMinHits, InitMaxHits);

            this.Layer = (Layer)ItemData.Quality;
        }
        public int OnCraft(int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, ITool tool, CraftItem craftItem, int resHue)
        {
            Type resourceType = typeRes;

            if (resourceType == null)
            {
                resourceType = craftItem.Resources.GetAt(0).ItemType;
            }

            Hue = CraftResources.GetHue(CraftResources.GetFromType(resourceType));

            return(1);
        }