當前位置: 首頁>>代碼示例>>C#>>正文


C# Items.BaseArmor類代碼示例

本文整理匯總了C#中Server.Items.BaseArmor的典型用法代碼示例。如果您正苦於以下問題:C# BaseArmor類的具體用法?C# BaseArmor怎麽用?C# BaseArmor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BaseArmor類屬於Server.Items命名空間,在下文中一共展示了BaseArmor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: IsMeditable

        private static bool IsMeditable( BaseArmor ar )
        {
            if ( ar == null || ar.ArmorAttributes.MageArmor != 0 || ar.Attributes.SpellChanneling != 0 )
                return true;

            return ar.Meditable;
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:7,代碼來源:RegenRates.cs

示例2: GetArmorStealthValue

        private static double GetArmorStealthValue(BaseArmor ar)
        {
            if (ar == null)
                return 0.0;

            //return ar.ArmorRatingScaled;
            return ar.BaseArmorRating * ar.ArmorScalar;
        }
開發者ID:greeduomacro,項目名稱:divinity,代碼行數:8,代碼來源:Stealth.cs

示例3: ApplyBonusSingle

 public static void ApplyBonusSingle( BaseArmor ba )
 {
     //ba.Resistances.Physical -= 20;
     //ba.Resistances.Fire -= 20;
     //ba.Resistances.Cold -= 20;
     //ba.Resistances.Poison -= 20;
     //ba.Resistances.Energy -= 20;
 }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:8,代碼來源:VirtueSet.cs

示例4: CanConvertArmor

 public static bool CanConvertArmor(BaseArmor armor)
 {
     if (armor.ArtifactRarity != 0)
         return false;
     if (armor.ArmorAttributes.MageArmor == 0 &&
         Server.SkillHandlers.Imbuing.GetTotalMods(armor) > 4)
         return false;
     return true;
 }
開發者ID:Crome696,項目名稱:ServUO,代碼行數:9,代碼來源:MageGuildmaster.cs

示例5: MakeBloodArmor

		public static BaseArmor MakeBloodArmor( BaseArmor armor )
		{
			if ( 0.995 > Utility.RandomDouble() )
				armor.SetSavedFlag( 0x01, true );

			armor.Resource = CraftResource.BloodScales;
			armor.Identified = true;

			return armor;
		}
開發者ID:greeduomacro,項目名稱:UO-Forever,代碼行數:10,代碼來源:UndeadKnight.cs

示例6: ApplyBonus

 public static void ApplyBonus( BaseArmor ba )
 {
     ba.ArmorAttributes.SelfRepair = 3;
     ba.Resistances.Physical = 2;
     ba.Resistances.Fire = 5;
     ba.Resistances.Cold = 5;
     ba.Resistances.Poison = 3;
     ba.Resistances.Energy = 5;
     ba.Hue = 1172;
 }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:10,代碼來源:DarkwoodSet.cs

示例7: ApplyBonus

 public static void ApplyBonus( BaseArmor ba )
 {
     ba.Resistances.Physical = 3;
     ba.Resistances.Fire = 3;
     ba.Resistances.Cold = 3;
     ba.Resistances.Poison = 3;
     ba.Resistances.Energy = 3;
     ba.ArmorAttributes.SelfRepair = 3;
     ba.Hue = 203;
     ba.Attributes.NightSight = 1;
 }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:11,代碼來源:AcolyteSet.cs

示例8: isArmaduraPesada

        public static bool isArmaduraPesada(BaseArmor armadura)
        {
            //FIXME testar as armaduas por outra forma, e nao pelo material.
            if(armadura.MaterialType.Equals(ArmorMaterialType.Plate) ||
               armadura.MaterialType.Equals(ArmorMaterialType.Dragon)) {

                return true;
            }

            return false;
        }
開發者ID:evildude807,項目名稱:kaltar,代碼行數:11,代碼來源:ArmaduraUtil.cs

示例9: isArmaduraLeve

        public static bool isArmaduraLeve(BaseArmor armadura)
        {
            //FIXME testar as armaduas por outra forma, e nao pelo material.
            if(armadura.MaterialType.Equals(ArmorMaterialType.Leather) ||
               armadura.MaterialType.Equals(ArmorMaterialType.Studded)) {

                return true;
            }

            return false;
        }
開發者ID:evildude807,項目名稱:kaltar,代碼行數:11,代碼來源:ArmaduraUtil.cs

示例10: PlayerWantsToUpgrade

        public void PlayerWantsToUpgrade(Mobile from, BaseArmor armor)
		{
            if(!CanConvertArmor(armor))
			{
				from.SendLocalizedMessage(1154119); // This action would exceed a stat cap
				return;
			}

			from.SendLocalizedMessage(1154117); // Ah yes, I will convert this piece of armor but it's gonna cost you 250,000 gold coin. Payment is due immediately. Just hand me the armor.
            m_PendingConverts.Add(new PendingConvert(from, armor));
		}
開發者ID:Crome696,項目名稱:ServUO,代碼行數:11,代碼來源:MageGuildmaster.cs

示例11: ApplyBonus

        public static void ApplyBonus( BaseArmor ba )
        {
            ba.ArmorAttributes.SelfRepair = 5;
            ba.Hue = 0;

            ba.Resistances.Physical += 5;
            ba.Resistances.Fire += 5;
            ba.Resistances.Cold += 5;
            ba.Resistances.Poison += 5;
            ba.Resistances.Energy += 5;
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:11,代碼來源:VirtueSet.cs

示例12: AlterFrom

        public override void AlterFrom( BaseArmor orig )
        {
            base.AlterFrom( orig );

            var shield = orig as GargishSurgeShield;

            if ( shield != null )
            {
                Charges = shield.Charges;
                SurgeEffect = shield.SurgeEffect;
            }
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:12,代碼來源:SurgeShield.cs

示例13: isArmaduraMedia

        public static bool isArmaduraMedia(BaseArmor armadura)
        {
            //FIXME testar as armaduas por outra forma, e nao pelo material.
            if(armadura.MaterialType.Equals(ArmorMaterialType.Ringmail) ||
               armadura.MaterialType.Equals(ArmorMaterialType.Chainmail) ||
               armadura.MaterialType.Equals(ArmorMaterialType.Bone)) {

                return true;
            }

            return false;
        }
開發者ID:evildude807,項目名稱:kaltar,代碼行數:12,代碼來源:ArmaduraUtil.cs

示例14: DefaultArmorList

        public static BaseArmor[] DefaultArmorList(Mobile m)
        {
            BaseArmor[] armorList = new BaseArmor[] { new PlateHelm(), new PlateGorget(), new PlateArms(), new PlateGloves(), new PlateChest(), new PlateLegs(),new MetalKiteShield() };

            for (int i = 0; i < armorList.Length; ++i)
            {
                BaseArmor armor = armorList[i];
                if (armor.StrRequirement > m.Str)
                    armor.Delete();
            }

            return armorList;
        }
開發者ID:FreeReign,項目名稱:imaginenation,代碼行數:13,代碼來源:SupplySystem.cs

示例15: GetArmorMeditationValue

        private static double GetArmorMeditationValue( BaseArmor ar )
        {
            if ( ar == null || ar.ArmorAttributes.MageArmor != 0 || ar.Attributes.SpellChanneling != 0 )
                return 0.0;

            switch ( ar.MeditationAllowance )
            {
                default:
                case ArmorMeditationAllowance.None: return ar.BaseArmorRatingScaled;
                case ArmorMeditationAllowance.Half: return ar.BaseArmorRatingScaled / 2.0;
                case ArmorMeditationAllowance.All:  return 0.0;
            }
        }
開發者ID:notsentient,項目名稱:RunZHA,代碼行數:13,代碼來源:RegenRates.cs


注:本文中的Server.Items.BaseArmor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。