コード例 #1
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1070881, Dipper); // Hand Dipped by ~1_name~
            list.Add(1070880);         // Winter 2004
        }
コード例 #2
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1074502); // It looks explosive.
            list.Add(1075085); // Requirement: Mondain's Legacy
        }
コード例 #3
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            var index = CraftResources.GetIndex(Resource);

            if (index >= 1 && index <= 8)
            {
                return;
            }

            if (!CraftResources.IsStandard(Resource))
            {
                var num = CraftResources.GetLocalizationNumber(Resource);

                if (num > 0)
                {
                    list.Add(num);
                }
                else
                {
                    list.Add(CraftResources.GetName(Resource));
                }
            }
        }
コード例 #4
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (_guild?.Disbanded == false)
        {
            string name;
            string abbr;

            if ((name = _guild.Name) == null || (name = name.Trim()).Length <= 0)
            {
                name = "(unnamed)";
            }

            if ((abbr = _guild.Abbreviation) == null || (abbr = abbr.Trim()).Length <= 0)
            {
                abbr = "";
            }

            // list.Add( 1060802, Utility.FixHtml( name ) ); // Guild name: ~1_val~
            list.Add(1060802, $"{Utility.FixHtml(name)} [{Utility.FixHtml(abbr)}]");
        }
        else if (_guildName != null && _guildAbbrev != null)
        {
            list.Add(1060802, $"{Utility.FixHtml(_guildName)} [{Utility.FixHtml(_guildAbbrev)}]");
        }
    }
コード例 #5
0
ファイル: Hides.cs プロジェクト: AsYlum-/ModernUO
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1024216:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1024216); // pile of hides
     }
 }
コード例 #6
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            list.Add(GetDescription());

            if (!Dead && _timerToken.Running)
            {
                list.Add(1074507); // Gasping for air
            }
        }
コード例 #7
0
ファイル: Ingots.cs プロジェクト: AsYlum-/ModernUO
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1027154:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1027154); // ingots
     }
 }
コード例 #8
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (Amount > 1)
     {
         list.Add(1050039, $"{Amount}\t{1024199:#}"); // ~1_NUMBER~ ~2_ITEMNAME~
     }
     else
     {
         list.Add(1024199); // cut leather
     }
 }
コード例 #9
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (ItemID == 0x2006) // Corpse form
     {
         list.Add("a human corpse");
         list.Add(1049318, Name); // the remains of ~1_NAME~ the militia fighter
     }
     else
     {
         list.Add(1049319); // the remains of a militia fighter
     }
 }
コード例 #10
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (ItemID == 0x2006) // Corpse form
     {
         list.Add("a human corpse");
         list.Add(1049144, Name); // the remains of ~1_NAME~ the apprentice
     }
     else
     {
         list.Add(1049145); // the remains of a wizard's apprentice
     }
 }
コード例 #11
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (Weight >= 20)
            {
                if (_fisher != null)
                {
                    list.Add(1070857, _fisher.Name); // Caught by ~1_fisherman~
                }

                list.Add(1070858, $"{(int)Weight}"); // ~1_weight~ stones
            }
        }
コード例 #12
0
        public override void AddNameProperty(IPropertyList list)
        {
            if (_owner != null)
            {
                list.Add(1150295, _owner); // ~1_NAME~'s St. Valentine Bear
            }
            else
            {
                list.Add(1150294); // St. Valentine Bear
            }

            AddLine(list, 1150301, _line1); // [ ~1_LINE0~ ]
            AddLine(list, 1150302, _line2); // [ ~1_LINE1~ ]
            AddLine(list, 1150303, _line3); // [ ~1_LINE2~ ]
        }
コード例 #13
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            // NOTE: OSI does not list uses remaining; intentional difference
            list.Add(1060584, $"{Charges}"); // uses remaining: ~1_val~
        }
コード例 #14
0
ファイル: PromotionalToken.cs プロジェクト: AsYlum-/ModernUO
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (ItemName != null)
            {
                if (ItemName.Number > 0)
                {
                    list.Add(1070998, ItemName.Number); // Use this to redeem<br>your ~1_PROMO~
                }
                else
                {
                    list.Add(1070998, ItemName.String); // Use this to redeem<br>your ~1_PROMO~
                }
            }
        }
コード例 #15
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        // This is half a prize ticket! Double-click this ticket and target any other ticket marked NEW PLAYER and get a prize! This ticket will only work for YOU, so don't give it away!
        list.Add(1041492);
    }
コード例 #16
0
 private static void AddLine(IPropertyList list, int cliloc, string line)
 {
     if (line != null)
     {
         list.Add(cliloc, line);
     }
 }
コード例 #17
0
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (Commodity != null)
        {
            var args = Commodity.Name == null
                ? $"#{(Commodity as ICommodity)?.DescriptionNumber ?? Commodity.LabelNumber}\t{Commodity.Amount}"
                : $"{Commodity.Name}\t{Commodity.Amount}";

            list.Add(1060658, args); // ~1_val~: ~2_val~
        }
        else
        {
            list.Add(1060748); // unfilled
        }
    }
コード例 #18
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            var remaining = CreationTime + LifeSpan - Core.Now;

            list.Add(1072517, $"{(int)remaining.TotalSeconds}"); // Lifespan: ~1_val~ seconds
        }
コード例 #19
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (!CraftResources.IsStandard(_resource))
            {
                var num = CraftResources.GetLocalizationNumber(_resource);

                if (num > 0)
                {
                    list.Add(num);
                }
                else
                {
                    list.Add(CraftResources.GetName(_resource));
                }
            }
        }
コード例 #20
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (Core.ML && _isRewardItem)
            {
                list.Add(1076217); // 1st Year Veteran Reward
            }
        }
コード例 #21
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            if (IsShipwreckedItem)
            {
                list.Add(1041645); // recovered from a shipwreck
            }
        }
コード例 #22
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            AddQuestItemProperty(list);

            if (CanGiveMLQuest)
            {
                list.Add(1072269); // Quest Giver
            }
        }
コード例 #23
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (!string.IsNullOrEmpty(_title))
     {
         list.Add(_title);
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
コード例 #24
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (Name != null)
     {
         list.Add(1075257, Name); // Contents of ~1_PETNAME~'s pack.
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
コード例 #25
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (m_Boat?.ShipName != null)
     {
         list.Add(1042884, m_Boat.ShipName); // the tiller man of the ~1_SHIP_NAME~
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
コード例 #26
0
 public override void AddNameProperty(IPropertyList list)
 {
     if (_owner != null)
     {
         list.Add(1042887, _owner.Name); // a strong box owned by ~1_OWNER_NAME~
     }
     else
     {
         base.AddNameProperty(list);
     }
 }
コード例 #27
0
        public override void AddNameProperty(IPropertyList list)
        {
            if (CraftResources.IsStandard(Resource))
            {
                list.Add(1061119, " "); // ~1_LEATHER_TYPE~ runic sewing kit
                return;
            }

            var num = CraftResources.GetLocalizationNumber(Resource);

            if (num > 0)
            {
                // ~1_LEATHER_TYPE~ runic sewing kit
                list.Add(1061119, $"#{num}");
            }
            else
            {
                // ~1_LEATHER_TYPE~ runic sewing kit
                list.Add(1061119, CraftResources.GetName(Resource));
            }
        }
コード例 #28
0
        public override void AddNameProperties(IPropertyList list)
        {
            base.AddNameProperties(list);

            if (!Empty)
            {
                var fish = Fish;

                if (fish != null)
                {
                    list.Add(1074494, $"#{fish.LabelNumber}"); // Contains: ~1_CREATURE~
                }
            }
        }
コード例 #29
0
ファイル: CommodityDeed.cs プロジェクト: AsYlum-/ModernUO
    public override void GetProperties(IPropertyList list)
    {
        base.GetProperties(list);

        if (Commodity is ICommodity ic)
        {
            list.Add(1060658, $"{ic.DescriptionNumber:#}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
        }
        else if (Commodity != null)
        {
            if (Commodity.Name == null)
            {
                list.Add(1060658, $"{Commodity.LabelNumber:#}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
            }
            else
            {
                list.Add(1060658, $"{Commodity.Name}\t{Commodity.Amount}"); // ~1_val~: ~2_val~
            }
        }
        else
        {
            list.Add(1060748); // unfilled
        }
    }
コード例 #30
0
        public override void GetProperties(IPropertyList list)
        {
            base.GetProperties(list);

            if (_isRewardItem)
            {
                // X Year Veteran Reward
                list.Add(
                    RewardSystem.GetRewardYearLabel(
                        this,
                        new object[] { Hue, _number }
                        )
                    );
            }
        }