本文整理汇总了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;
}
示例2: GetArmorStealthValue
private static double GetArmorStealthValue(BaseArmor ar)
{
if (ar == null)
return 0.0;
//return ar.ArmorRatingScaled;
return ar.BaseArmorRating * ar.ArmorScalar;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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));
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
}