GetHue() public static method

Returns the CraftResourceInfo.Hue property of 'resource' -or- 0 if an invalid resource was specified.
public static GetHue ( CraftResource resource ) : int
resource CraftResource
return int
コード例 #1
0
ファイル: Scales.cs プロジェクト: pallop/Servuo
        public BaseScales(CraftResource resource, int amount)
            : base(0x26B4)
        {
            this.Stackable = true;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
コード例 #2
0
ファイル: Hides.cs プロジェクト: jicomub/Temrael
        public BaseHides(CraftResource resource, int amount) : base(0x1079)
        {
            Stackable = true;
            Weight    = 5.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

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

            m_Resource = resource;
            Hue        = CraftResources.GetHue(resource);
        }
コード例 #4
0
ファイル: Ingots.cs プロジェクト: Ziden/ServUO
        public BaseIngot(CraftResource resource, int amount)
            : base(0x1BF2)
        {
            this.Stackable = true;
            this.Amount    = amount;
            this.Hue       = CraftResources.GetHue(resource);

            this.m_Resource = resource;
        }
コード例 #5
0
ファイル: Ore.cs プロジェクト: phpjunkie420/RunUO
        public BaseOre(CraftResource resource, int amount) : base(0x19B9)
        {
            Stackable = true;
            Weight    = 20.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

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

            m_Resource = resource;
            Hue        = CraftResources.GetHue(resource);
        }
コード例 #7
0
ファイル: Board.cs プロジェクト: D-Hiatt/Keepers-of-Time
        public Board(CraftResource resource, int amount)
            : base(0x1BD7)
        {
            this.Stackable = true;
            this.Amount    = amount;

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

            m_Resource = resource;
        }
コード例 #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;
        }
コード例 #10
0
ファイル: Ingots.cs プロジェクト: proxeeus/UORebirth
        public BaseIngot(CraftResource resource, int amount) : base(0x1BF2)
        {
            Stackable = true;
            Weight    = 0.1;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
コード例 #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;
        }
コード例 #12
0
ファイル: Scales.cs プロジェクト: nydehi/imagine-uo
        public BaseScales(CraftResource resource, int amount) : base(0x26B4)
        {
            Stackable = true;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
            ItemValue  = ItemValue.Resource;
        }
コード例 #13
0
ファイル: Ore.cs プロジェクト: Ziden/ServUO
        public BaseOre(CraftResource resource, int amount)
            : base(RandomSize())
        {
            Stackable = true;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

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

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

            m_Resource = resource;
        }
コード例 #16
0
ファイル: Granite.cs プロジェクト: nogu3ira/xrunuo
        public BaseGranite(CraftResource resource)
            : base(0x1779)
        {
            Weight = 1.0;
            Hue    = CraftResources.GetHue(resource);

            m_Resource = resource;

            Stackable = true;
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #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
        }
コード例 #20
0
ファイル: Log.cs プロジェクト: omni86/ServUO
        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);
        }
コード例 #21
0
ファイル: Board.cs プロジェクト: zerodowned/cov-shard-svn-1
        public BaseBoards(CraftResource resource, int amount)
            : base(0x1BD7)
        {
            Stackable = true;
            Weight    = 1.0;
            Amount    = amount;
            Hue       = CraftResources.GetHue(resource);

            m_Resource = resource;
        }
コード例 #22
0
        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;
        }
コード例 #23
0
        public override void ResourceChange()
        {
            int resourceHue = CraftResources.GetHue(Resource);

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

            DetermineUses();
        }
コード例 #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();
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #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;
        }
コード例 #28
0
ファイル: Log.cs プロジェクト: nydehi/imagine-uo
        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;
        }
コード例 #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;
        }
コード例 #30
0
        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);
        }