当前位置: 首页>>代码示例>>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;未经允许,请勿转载。