Inital Commit

This commit is contained in:
Ubuntu
2026-07-07 13:40:15 -04:00
parent 73701ff86e
commit b491e327dc
83 changed files with 8591 additions and 6895 deletions
+99 -87
View File
@@ -284,7 +284,7 @@ namespace Server.Items
}
}
public virtual bool CanAlter { get { return true; } }
public virtual bool CanAlter { get { return true; } }
public virtual bool UseIntOrDexProperty
{
@@ -401,9 +401,9 @@ namespace Server.Items
return m_ArmorBase;
}
set
{
{
m_ArmorBase = value;
Invalidate();
Invalidate();
}
}
@@ -424,7 +424,7 @@ namespace Server.Items
if (m_Protection != ArmorProtectionLevel.Regular)
ar += 10 + (5 * (int)m_Protection);
switch ( m_Resource )
switch (m_Resource)
{
case CraftResource.DullCopper:
ar += 2;
@@ -538,7 +538,7 @@ namespace Server.Items
armor.m_RefinedPoison > 0 ||
armor.m_RefinedEnergy > 0);
}
public override void AddResistanceProperties(ObjectPropertyList list)
{
if (PhysicalResistance != 0 || m_RefinedPhysical != 0)
@@ -761,9 +761,9 @@ namespace Server.Items
#region Runic Reforging
[CommandProperty(AccessLevel.GameMaster)]
public ReforgedPrefix ReforgedPrefix
{
get { return m_ReforgedPrefix; }
public ReforgedPrefix ReforgedPrefix
{
get { return m_ReforgedPrefix; }
set { m_ReforgedPrefix = value; InvalidateProperties(); }
}
@@ -776,9 +776,9 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public ItemPower ItemPower
{
get { return m_ItemPower; }
set { m_ItemPower = value; InvalidateProperties(); }
{
get { return m_ItemPower; }
set { m_ItemPower = value; InvalidateProperties(); }
}
#endregion
@@ -963,11 +963,11 @@ namespace Server.Items
[CommandProperty(AccessLevel.GameMaster)]
public int HitPoints
{
get
get
{
return m_HitPoints;
}
set
set
{
if (value != m_HitPoints && MaxHitPoints > 0)
{
@@ -1298,7 +1298,7 @@ namespace Server.Items
{
get
{
switch ( Layer )
switch (Layer)
{
default:
case Layer.Neck:
@@ -1327,7 +1327,7 @@ namespace Server.Items
public int GetProtOffset()
{
switch ( m_Protection )
switch (m_Protection)
{
case ArmorProtectionLevel.Guarding:
return 1;
@@ -1372,10 +1372,10 @@ namespace Server.Items
{
int bonus = 0;
if (m_Quality == ItemQuality.Exceptional &&!(this is GargishLeatherWingArmor))
if (m_Quality == ItemQuality.Exceptional && !(this is GargishLeatherWingArmor))
bonus += 20;
switch ( m_Durability )
switch (m_Durability)
{
case ArmorDurabilityLevel.Durable:
bonus += 20;
@@ -1630,10 +1630,10 @@ namespace Server.Items
PlayerConstructed = 0x01000000,
xAbsorptionAttributes = 0x02000000,
xWeaponAttributes = 0x04000000,
NegativeAttributes = 0x08000000,
Altered = 0x10000000,
NegativeAttributes = 0x08000000,
Altered = 0x10000000,
TalismanProtection = 0x20000000,
EngravedText = 0x40000000
EngravedText = 0x40000000
}
#region Mondain's Legacy Sets
@@ -1720,7 +1720,7 @@ namespace Server.Items
// Version 8
writer.Write((int)m_TimesImbued);
#endregion
writer.Write((Mobile)m_BlessedBy);
@@ -1903,7 +1903,7 @@ namespace Server.Items
int version = reader.ReadInt();
switch ( version )
switch (version)
{
case 15:
case 14:
@@ -1961,12 +1961,12 @@ namespace Server.Items
case 8:
{
m_TimesImbued = reader.ReadInt();
#endregion
m_BlessedBy = reader.ReadMobile();
SetFlag sflags = (SetFlag)reader.ReadEncodedInt();
SetFlag sflags = (SetFlag)reader.ReadEncodedInt();
if (GetSaveFlag(sflags, SetFlag.Attributes))
m_SetAttributes = new AosAttributes(this, reader);
@@ -2198,7 +2198,8 @@ namespace Server.Items
if (m_ArmorBase == RevertArmorBase)
m_ArmorBase = -1;
/*m_BodyPos = (ArmorBodyType)*/reader.ReadInt();
/*m_BodyPos = (ArmorBodyType)*/
reader.ReadInt();
if (version < 4)
{
@@ -2217,7 +2218,7 @@ namespace Server.Items
{
OreInfo info;
switch ( reader.ReadInt() )
switch (reader.ReadInt())
{
default:
case 0:
@@ -2595,7 +2596,7 @@ namespace Server.Items
damageTaken -= Absorbed;
if (damageTaken < 0)
if (damageTaken < 0)
damageTaken = 0;
if (Absorbed < 2)
@@ -2682,7 +2683,7 @@ namespace Server.Items
{
int oreType;
switch ( m_Resource )
switch (m_Resource)
{
case CraftResource.DullCopper: oreType = 1053108; break; // dull copper
case CraftResource.ShadowIron: oreType = 1053107; break; // shadow iron
@@ -2701,7 +2702,7 @@ namespace Server.Items
case CraftResource.GreenScales: oreType = 1060819; break; // green
case CraftResource.WhiteScales: oreType = 1060821; break; // white
case CraftResource.BlueScales: oreType = 1060815; break; // blue
case CraftResource.OakWood: oreType = 1072533; break; // oak
case CraftResource.OakWood: oreType = 1072533; break; // oak
case CraftResource.AshWood: oreType = 1072534; break; // ash
case CraftResource.YewWood: oreType = 1072535; break; // yew
case CraftResource.Heartwood: oreType = 1072536; break; // heartwood
@@ -2794,6 +2795,17 @@ namespace Server.Items
{
base.AddNameProperties(list);
// ===============================================
// DURABILITY TOOLTIP: TEMPERED / REPAIR LOCKED
// ===============================================
var dura = XmlAttach.FindAttachment(this, typeof(Server.Custom.DurabilityAttachment))
as Server.Custom.DurabilityAttachment;
if (dura != null && dura.RepairLocked)
{
list.Add("Tempered — Cannot be repaired");
}
#region Factions
FactionEquipment.AddFactionProperties(this, list);
#endregion
@@ -2895,14 +2907,14 @@ namespace Server.Items
if (m_TalismanProtection != null && !m_TalismanProtection.IsEmpty && m_TalismanProtection.Amount > 0)
list.Add(1072387, "{0}\t{1}", m_TalismanProtection.Name != null ? m_TalismanProtection.Name.ToString() : "Unknown", m_TalismanProtection.Amount); // ~1_NAME~ Protection: +~2_val~%
if ((prop = m_AosArmorAttributes.SoulCharge) != 0)
if ((prop = m_AosArmorAttributes.SoulCharge) != 0)
list.Add(1113630, prop.ToString()); // Soul Charge ~1_val~%
if((prop = m_AosArmorAttributes.ReactiveParalyze) != 0)
if ((prop = m_AosArmorAttributes.ReactiveParalyze) != 0)
list.Add(1112364); // reactive paralyze
if ((prop = m_SAAbsorptionAttributes.EaterFire) != 0)
if ((prop = m_SAAbsorptionAttributes.EaterFire) != 0)
list.Add(1113593, prop.ToString()); // Fire Eater ~1_Val~%
if ((prop = m_SAAbsorptionAttributes.EaterCold) != 0)
@@ -2919,8 +2931,8 @@ namespace Server.Items
if ((prop = m_SAAbsorptionAttributes.EaterDamage) != 0)
list.Add(1113598, prop.ToString()); // Damage Eater ~1_Val~%
if ((prop = m_SAAbsorptionAttributes.ResonanceFire) != 0)
if ((prop = m_SAAbsorptionAttributes.ResonanceFire) != 0)
list.Add(1113691, prop.ToString()); // Fire Resonance ~1_val~%
if ((prop = m_SAAbsorptionAttributes.ResonanceCold) != 0)
@@ -2934,41 +2946,41 @@ namespace Server.Items
if ((prop = m_SAAbsorptionAttributes.ResonanceKinetic) != 0)
list.Add(1113695, prop.ToString()); // Kinetic Resonance ~1_val~%
if ((prop = m_SAAbsorptionAttributes.CastingFocus) != 0)
if ((prop = m_SAAbsorptionAttributes.CastingFocus) != 0)
list.Add(1113696, prop.ToString()); // Casting Focus ~1_val~%
if ((prop = m_AosAttributes.SpellChanneling) != 0)
if ((prop = m_AosAttributes.SpellChanneling) != 0)
list.Add(1060482); // spell channeling
if ((prop = m_AosArmorAttributes.SelfRepair) != 0)
if ((prop = m_AosArmorAttributes.SelfRepair) != 0)
list.Add(1060450, prop.ToString()); // self repair ~1_val~
if ((prop = m_AosAttributes.NightSight) != 0)
if ((prop = m_AosAttributes.NightSight) != 0)
list.Add(1060441); // night sight
if ((prop = m_AosAttributes.BonusStr) != 0)
if ((prop = m_AosAttributes.BonusStr) != 0)
list.Add(1060485, prop.ToString()); // strength bonus ~1_val~
if ((prop = m_AosAttributes.BonusDex) != 0)
if ((prop = m_AosAttributes.BonusDex) != 0)
list.Add(1060409, prop.ToString()); // dexterity bonus ~1_val~
if ((prop = m_AosAttributes.BonusInt) != 0)
list.Add(1060432, prop.ToString()); // intelligence bonus ~1_val~
if ((prop = m_AosAttributes.BonusHits) != 0)
if ((prop = m_AosAttributes.BonusHits) != 0)
list.Add(1060431, prop.ToString()); // hit point increase ~1_val~
if ((prop = m_AosAttributes.BonusStam) != 0)
if ((prop = m_AosAttributes.BonusStam) != 0)
list.Add(1060484, prop.ToString()); // stamina increase ~1_val~
if ((prop = m_AosAttributes.BonusMana) != 0)
if ((prop = m_AosAttributes.BonusMana) != 0)
list.Add(1060439, prop.ToString()); // mana increase ~1_val~
if ((prop = m_AosAttributes.RegenHits) != 0)
if ((prop = m_AosAttributes.RegenHits) != 0)
list.Add(1060444, prop.ToString()); // hit point regeneration ~1_val~
if ((prop = m_AosAttributes.RegenStam) != 0)
if ((prop = m_AosAttributes.RegenStam) != 0)
list.Add(1060443, prop.ToString()); // stamina regeneration ~1_val~
if ((prop = m_AosAttributes.RegenMana) != 0)
@@ -2976,8 +2988,8 @@ namespace Server.Items
if ((prop = (GetLuckBonus() + m_AosAttributes.Luck)) != 0)
list.Add(1060436, prop.ToString()); // luck ~1_val~
if ((prop = m_AosAttributes.EnhancePotions) != 0)
if ((prop = m_AosAttributes.EnhancePotions) != 0)
list.Add(1060411, prop.ToString()); // enhance potions ~1_val~%
if ((prop = m_AosAttributes.ReflectPhysical) != 0)
@@ -2985,45 +2997,45 @@ namespace Server.Items
if (this is SurgeShield && ((SurgeShield)this).Surge > SurgeType.None)
list.Add(1153098, ((SurgeShield)this).Charges.ToString());
if ((prop = m_AosAttributes.AttackChance) != 0)
if ((prop = m_AosAttributes.AttackChance) != 0)
list.Add(1060415, prop.ToString()); // hit chance increase ~1_val~%
if ((prop = m_AosAttributes.WeaponSpeed) != 0)
if ((prop = m_AosAttributes.WeaponSpeed) != 0)
list.Add(1060486, prop.ToString()); // swing speed increase ~1_val~%
if ((prop = m_AosAttributes.WeaponDamage) != 0)
if ((prop = m_AosAttributes.WeaponDamage) != 0)
list.Add(1060401, prop.ToString()); // damage increase ~1_val~%
if ((prop = m_AosAttributes.DefendChance) != 0)
list.Add(1060408, prop.ToString()); // defense chance increase ~1_val~%
if ((prop = m_AosAttributes.CastRecovery) != 0)
if ((prop = m_AosAttributes.CastRecovery) != 0)
list.Add(1060412, prop.ToString()); // faster cast recovery ~1_val~
if ((prop = m_AosAttributes.CastSpeed) != 0)
if ((prop = m_AosAttributes.CastSpeed) != 0)
list.Add(1060413, prop.ToString()); // faster casting ~1_val~
if ((prop = m_AosAttributes.SpellDamage) != 0)
if ((prop = m_AosAttributes.SpellDamage) != 0)
list.Add(1060483, prop.ToString()); // spell damage increase ~1_val~%
if ((prop = m_AosAttributes.LowerManaCost) != 0)
if ((prop = m_AosAttributes.LowerManaCost) != 0)
list.Add(1060433, prop.ToString()); // lower mana cost ~1_val~%
if ((prop = m_AosAttributes.LowerRegCost) != 0)
list.Add(1060434, prop.ToString()); // lower reagent cost ~1_val~%
if (Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0)
if (Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0)
list.Add(1075210, prop.ToString()); // Increased Karma Loss ~1val~%
AddResistanceProperties(list);
if ((prop = m_AosArmorAttributes.MageArmor) != 0)
if ((prop = m_AosArmorAttributes.MageArmor) != 0)
list.Add(1060437); // mage armor
if ((prop = GetLowerStatReq()) != 0)
if ((prop = GetLowerStatReq()) != 0)
list.Add(1060435, prop.ToString()); // lower requirements ~1_val~%
if ((prop = ComputeStatReq(StatType.Str)) > 0)
list.Add(1061170, prop.ToString()); // strength requirement ~1_val~
@@ -3122,15 +3134,15 @@ namespace Server.Items
#region Mondain's Legacy
if (!Core.ML || !craftItem.ForceNonExceptional)
{
if (typeRes == null)
typeRes = craftItem.Resources.GetAt(0).ItemType;
if (typeRes == null)
typeRes = craftItem.Resources.GetAt(0).ItemType;
Resource = CraftResources.GetFromType(typeRes);
Resource = CraftResources.GetFromType(typeRes);
}
#endregion
if (typeRes == null || craftItem.ForceNonExceptional)
typeRes = craftItem.Resources.GetAt(0).ItemType;
typeRes = craftItem.Resources.GetAt(0).ItemType;
PlayerConstructed = true;
@@ -3239,7 +3251,7 @@ namespace Server.Items
}
info = GetResourceAttrs(m_Resource);
// add new bonus
m_PhysicalBonus += info.ArmorPhysicalResist;
m_FireBonus += info.ArmorFireResist;
@@ -1,5 +1,7 @@
using System;
using Server.Network;
using Server.Engines.XmlSpawner2;
namespace Server.Items
{
@@ -69,6 +71,16 @@ namespace Server.Items
public override void AddNameProperties(ObjectPropertyList list)
{
base.AddNameProperties(list);
// ===============================================
// DURABILITY TOOLTIP: TEMPERED / REPAIR LOCKED
// ===============================================
var dura = XmlAttach.FindAttachment(this, typeof(Server.Custom.DurabilityAttachment))
as Server.Custom.DurabilityAttachment;
if (dura != null && dura.RepairLocked)
{
list.Add("Tempered — Cannot be repaired");
}
if (Core.EJ && LastParryChance > 0)
{
@@ -5,6 +5,8 @@ using Server.Engines.Craft;
using Server.Factions;
using Server.Network;
using Server.Mobiles;
using Server.Engines.XmlSpawner2;
namespace Server.Items
{
@@ -78,7 +80,7 @@ namespace Server.Items
public virtual bool CanFortify { get { return !IsImbued && NegativeAttributes.Antique < 4; } }
public virtual bool CanRepair { get { return m_NegativeAttributes.NoRepair == 0; } }
public virtual bool CanAlter { get { return true; } }
public virtual bool CanAlter { get { return true; } }
private int m_MaxHitPoints;
private int m_HitPoints;
@@ -126,7 +128,7 @@ namespace Server.Items
public int HitPoints
{
get { return m_HitPoints; }
set
set
{
if (value != m_HitPoints && MaxHitPoints > 0)
{
@@ -362,10 +364,10 @@ namespace Server.Items
public AosArmorAttributes ClothingAttributes { get { return m_AosClothingAttributes; } set { } }
[CommandProperty(AccessLevel.GameMaster)]
public AosSkillBonuses SkillBonuses { get { return m_AosSkillBonuses; } set { } }
public AosSkillBonuses SkillBonuses { get { return m_AosSkillBonuses; } set { } }
[CommandProperty(AccessLevel.GameMaster)]
public AosElementAttributes Resistances { get { return m_AosResistances; } set { } }
public AosElementAttributes Resistances { get { return m_AosResistances; } set { } }
[CommandProperty(AccessLevel.GameMaster)]
public SAAbsorptionAttributes SAAbsorptionAttributes { get { return m_SAAbsorptionAttributes; } set { } }
@@ -381,7 +383,7 @@ namespace Server.Items
public virtual int BaseColdResistance { get { return 0; } }
public virtual int BasePoisonResistance { get { return 0; } }
public virtual int BaseEnergyResistance { get { return 0; } }
#region Mondain's Legacy Sets
public override int PhysicalResistance
{
@@ -779,7 +781,7 @@ namespace Server.Items
damageTaken -= Absorbed;
if (damageTaken < 0)
if (damageTaken < 0)
damageTaken = 0;
double chance = NegativeAttributes.Antique > 0 ? 80 : 25;
@@ -955,7 +957,7 @@ namespace Server.Items
{
int oreType;
switch ( m_Resource )
switch (m_Resource)
{
case CraftResource.DullCopper:
oreType = 1053108;
@@ -1071,6 +1073,16 @@ namespace Server.Items
public override void AddNameProperties(ObjectPropertyList list)
{
base.AddNameProperties(list);
// ===============================================
// DURABILITY TOOLTIP: TEMPERED / REPAIR LOCKED
// ===============================================
var dura = XmlAttach.FindAttachment(this, typeof(Server.Custom.DurabilityAttachment))
as Server.Custom.DurabilityAttachment;
if (dura != null && dura.RepairLocked)
{
list.Add("Tempered — Cannot be repaired");
}
#region Factions
FactionEquipment.AddFactionProperties(this, list);
@@ -1078,7 +1090,7 @@ namespace Server.Items
if (m_GorgonLenseCharges > 0)
list.Add(1112590, m_GorgonLenseCharges.ToString()); //Gorgon Lens Charges: ~1_val~
#region Mondain's Legacy Sets
if (IsSetItem)
{
@@ -1122,8 +1134,8 @@ namespace Server.Items
if ((prop = ArtifactRarity) > 0)
list.Add(1061078, prop.ToString()); // artifact rarity ~1_val~
#region SA
#region SA
if ((prop = m_SAAbsorptionAttributes.EaterFire) != 0)
list.Add(1113593, prop.ToString()); // Fire Eater ~1_Val~%
@@ -1156,8 +1168,8 @@ namespace Server.Items
if ((prop = m_SAAbsorptionAttributes.ResonanceKinetic) != 0)
list.Add(1113695, prop.ToString()); // Kinetic Resonance ~1_val~%
if ((prop = m_SAAbsorptionAttributes.CastingFocus) != 0)
if ((prop = m_SAAbsorptionAttributes.CastingFocus) != 0)
list.Add(1113696, prop.ToString()); // Casting Focus ~1_val~%
#endregion
@@ -1208,91 +1220,91 @@ namespace Server.Items
if ((prop = m_AosAttributes.SpellChanneling) != 0)
list.Add(1060482); // spell channeling
if ((prop = m_AosClothingAttributes.SelfRepair) != 0)
if ((prop = m_AosClothingAttributes.SelfRepair) != 0)
list.Add(1060450, prop.ToString()); // self repair ~1_val~
if ((prop = m_AosAttributes.NightSight) != 0)
if ((prop = m_AosAttributes.NightSight) != 0)
list.Add(1060441); // night sight
if ((prop = m_AosAttributes.BonusStr) != 0)
list.Add(1060485, prop.ToString()); // strength bonus ~1_val~
if ((prop = m_AosAttributes.BonusDex) != 0)
if ((prop = m_AosAttributes.BonusDex) != 0)
list.Add(1060409, prop.ToString()); // dexterity bonus ~1_val~
if ((prop = m_AosAttributes.BonusInt) != 0)
if ((prop = m_AosAttributes.BonusInt) != 0)
list.Add(1060432, prop.ToString()); // intelligence bonus ~1_val~
if ((prop = m_AosAttributes.BonusHits) != 0)
if ((prop = m_AosAttributes.BonusHits) != 0)
list.Add(1060431, prop.ToString()); // hit point increase ~1_val~
if ((prop = m_AosAttributes.BonusStam) != 0)
if ((prop = m_AosAttributes.BonusStam) != 0)
list.Add(1060484, prop.ToString()); // stamina increase ~1_val~
if ((prop = m_AosAttributes.BonusMana) != 0)
if ((prop = m_AosAttributes.BonusMana) != 0)
list.Add(1060439, prop.ToString()); // mana increase ~1_val~
if ((prop = m_AosAttributes.RegenHits) != 0)
list.Add(1060444, prop.ToString()); // hit point regeneration ~1_val~
if ((prop = m_AosAttributes.RegenStam) != 0)
if ((prop = m_AosAttributes.RegenStam) != 0)
list.Add(1060443, prop.ToString()); // stamina regeneration ~1_val~
if ((prop = m_AosAttributes.RegenMana) != 0)
if ((prop = m_AosAttributes.RegenMana) != 0)
list.Add(1060440, prop.ToString()); // mana regeneration ~1_val~
if ((prop = m_AosAttributes.Luck) != 0)
if ((prop = m_AosAttributes.Luck) != 0)
list.Add(1060436, prop.ToString()); // luck ~1_val~
if ((prop = m_AosAttributes.EnhancePotions) != 0)
if ((prop = m_AosAttributes.EnhancePotions) != 0)
list.Add(1060411, prop.ToString()); // enhance potions ~1_val~%
if ((prop = m_AosAttributes.ReflectPhysical) != 0)
if ((prop = m_AosAttributes.ReflectPhysical) != 0)
list.Add(1060442, prop.ToString()); // reflect physical damage ~1_val~%
if ((prop = m_AosAttributes.AttackChance) != 0)
if ((prop = m_AosAttributes.AttackChance) != 0)
list.Add(1060415, prop.ToString()); // hit chance increase ~1_val~%
if ((prop = m_AosAttributes.WeaponSpeed) != 0)
list.Add(1060486, prop.ToString()); // swing speed increase ~1_val~%
if ((prop = m_AosAttributes.WeaponDamage) != 0)
if ((prop = m_AosAttributes.WeaponDamage) != 0)
list.Add(1060401, prop.ToString()); // damage increase ~1_val~%
if ((prop = m_AosAttributes.DefendChance) != 0)
if ((prop = m_AosAttributes.DefendChance) != 0)
list.Add(1060408, prop.ToString()); // defense chance increase ~1_val~%
if ((prop = m_AosAttributes.CastRecovery) != 0)
if ((prop = m_AosAttributes.CastRecovery) != 0)
list.Add(1060412, prop.ToString()); // faster cast recovery ~1_val~
if ((prop = m_AosAttributes.CastSpeed) != 0)
if ((prop = m_AosAttributes.CastSpeed) != 0)
list.Add(1060413, prop.ToString()); // faster casting ~1_val~
if ((prop = m_AosAttributes.SpellDamage) != 0)
if ((prop = m_AosAttributes.SpellDamage) != 0)
list.Add(1060483, prop.ToString()); // spell damage increase ~1_val~%
if ((prop = m_AosAttributes.LowerManaCost) != 0)
if ((prop = m_AosAttributes.LowerManaCost) != 0)
list.Add(1060433, prop.ToString()); // lower mana cost ~1_val~%
if ((prop = m_AosAttributes.LowerRegCost) != 0)
list.Add(1060434, prop.ToString()); // lower reagent cost ~1_val~%
if ((prop = m_AosAttributes.LowerAmmoCost) != 0)
list.Add(1075208, prop.ToString()); // Lower Ammo Cost ~1_Percentage~%
list.Add(1075208, prop.ToString()); // Lower Ammo Cost ~1_Percentage~%
if (Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0)
list.Add(1075210, prop.ToString()); // Increased Karma Loss ~1val~%
base.AddResistanceProperties(list);
if ((prop = m_AosClothingAttributes.MageArmor) != 0)
if ((prop = m_AosClothingAttributes.MageArmor) != 0)
list.Add(1060437); // mage armor
if ((prop = m_AosClothingAttributes.LowerStatReq) != 0)
if ((prop = m_AosClothingAttributes.LowerStatReq) != 0)
list.Add(1060435, prop.ToString()); // lower requirements ~1_val~%
if ((prop = ComputeStatReq(StatType.Str)) > 0)
if ((prop = ComputeStatReq(StatType.Str)) > 0)
list.Add(1061170, prop.ToString()); // strength requirement ~1_val~
if ((prop = m_AosClothingAttributes.DurabilityBonus) > 0)
@@ -1402,7 +1414,7 @@ namespace Server.Items
Crafter = 0x00000100,
Quality = 0x00000200,
StrReq = 0x00000400,
NegativeAttributes = 0x00000800,
NegativeAttributes = 0x00000800,
#region Imbuing
//TimesImbued = 0x12000000,
#endregion
@@ -1614,7 +1626,7 @@ namespace Server.Items
int version = reader.ReadInt();
switch ( version )
switch (version)
{
case 12:
case 11:
@@ -1633,10 +1645,10 @@ namespace Server.Items
goto case 8;
}
case 8:
{
m_IsImbued = reader.ReadBool();
goto case 7;
}
{
m_IsImbued = reader.ReadBool();
goto case 7;
}
case 7:
{
m_SAAbsorptionAttributes = new SAAbsorptionAttributes(this, reader);
@@ -1668,11 +1680,11 @@ namespace Server.Items
}
case 6:
{
if(version == 6)
if (version == 6)
m_SAAbsorptionAttributes = new SAAbsorptionAttributes(this);
m_TimesImbued = reader.ReadInt();
#endregion
m_BlessedBy = reader.ReadMobile();
@@ -1933,7 +1945,7 @@ namespace Server.Items
{
for (int i = 0; i < amount; ++i)
{
switch ( Utility.Random(5) )
switch (Utility.Random(5))
{
case 0: ++m_AosResistances.Physical; break;
case 1: ++m_AosResistances.Fire; break;
File diff suppressed because it is too large Load Diff