Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -6,10 +6,10 @@ namespace Server.Items
|
|||
{
|
||||
public class BaseQuiver : Container, ICraftable
|
||||
{
|
||||
public override int DefaultGumpID{ get{ return 0x108; } }
|
||||
public override int DefaultMaxItems{ get{ return 1; } }
|
||||
public override int DefaultMaxWeight{ get{ return 50; } }
|
||||
public override double DefaultWeight{ get{ return 2.0; } }
|
||||
public override int DefaultGumpID => 0x108;
|
||||
public override int DefaultMaxItems => 1;
|
||||
public override int DefaultMaxWeight => 50;
|
||||
public override double DefaultWeight => 2.0;
|
||||
|
||||
private AosAttributes m_Attributes;
|
||||
private int m_Capacity;
|
||||
|
|
@ -68,7 +68,7 @@ namespace Server.Items
|
|||
get{ return m_Quality; }
|
||||
set{ m_Quality = value; InvalidateProperties(); }
|
||||
}
|
||||
|
||||
|
||||
public Item Ammo
|
||||
{
|
||||
get{ return Items.Count > 0 ? Items[ 0 ] : null; }
|
||||
|
|
@ -184,7 +184,7 @@ namespace Server.Items
|
|||
|
||||
InvalidateWeight();
|
||||
}
|
||||
|
||||
|
||||
public override void RemoveItem( Item dropped )
|
||||
{
|
||||
base.RemoveItem( dropped );
|
||||
|
|
@ -215,7 +215,7 @@ namespace Server.Items
|
|||
public override void GetProperties( ObjectPropertyList list )
|
||||
{
|
||||
base.GetProperties( list );
|
||||
|
||||
|
||||
if ( m_Crafter != null )
|
||||
list.Add( 1050043, m_Crafter.Name ); // crafted by ~1_NAME~
|
||||
|
||||
|
|
@ -238,7 +238,7 @@ namespace Server.Items
|
|||
|
||||
if ( (prop = m_DamageIncrease) != 0 )
|
||||
list.Add( 1074762, prop.ToString() ); // Damage modifier: ~1_PERCENT~%
|
||||
|
||||
|
||||
int phys, fire, cold, pois, nrgy, chaos, direct;
|
||||
phys = fire = cold = pois = nrgy = chaos = direct = 0;
|
||||
|
||||
|
|
@ -295,7 +295,7 @@ namespace Server.Items
|
|||
list.Add( 1060433, prop.ToString() ); // lower mana cost ~1_val~%
|
||||
|
||||
if ( (prop = m_Attributes.LowerRegCost) != 0 )
|
||||
list.Add( 1060434, prop.ToString() ); // lower reagent cost ~1_val~%
|
||||
list.Add( 1060434, prop.ToString() ); // lower reagent cost ~1_val~%
|
||||
|
||||
if ( (prop = m_Attributes.Luck) != 0 )
|
||||
list.Add( 1060436, prop.ToString() ); // luck ~1_val~
|
||||
|
|
@ -341,9 +341,9 @@ namespace Server.Items
|
|||
list.Add( 1072241, "{0}\t{1}\t{2}\t{3}", Items.Count, DefaultMaxItems, (int) weight, DefaultMaxWeight ); // Contents: ~1_COUNT~/~2_MAXCOUNT items, ~3_WEIGHT~/~4_MAXWEIGHT~ stones
|
||||
|
||||
if ( (prop = m_WeightReduction) != 0 )
|
||||
list.Add( 1072210, prop.ToString() ); // Weight reduction: ~1_PERCENTAGE~%
|
||||
list.Add( 1072210, prop.ToString() ); // Weight reduction: ~1_PERCENTAGE~%
|
||||
}
|
||||
|
||||
|
||||
private static void SetSaveFlag( ref SaveFlag flags, SaveFlag toSet, bool setIf )
|
||||
{
|
||||
if ( setIf )
|
||||
|
|
@ -454,7 +454,7 @@ namespace Server.Items
|
|||
m.UpdateTotals();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region ICraftable
|
||||
public virtual int OnCraft( int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CraftItem craftItem, int resHue )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Items
|
|||
[FlippableAttribute( 0x2FB7, 0x3171 )]
|
||||
public class ElvenQuiver : BaseQuiver
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1032657; } } // elven quiver
|
||||
|
||||
public override int LabelNumber => 1032657; // elven quiver
|
||||
|
||||
[Constructible]
|
||||
public ElvenQuiver() : base()
|
||||
public ElvenQuiver()
|
||||
{
|
||||
WeightReduction = 30;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Server.Items
|
|||
{
|
||||
public class QuiverOfBlight : ElvenQuiver
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1073111; } } // Quiver of Blight
|
||||
|
||||
public override int LabelNumber => 1073111; // Quiver of Blight
|
||||
|
||||
[Constructible]
|
||||
public QuiverOfBlight() : base()
|
||||
public QuiverOfBlight()
|
||||
{
|
||||
Hue = 0x4F3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Server.Items
|
|||
{
|
||||
public class QuiverOfFire : ElvenQuiver
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1073109; } } // quiver of fire
|
||||
|
||||
public override int LabelNumber => 1073109; // quiver of fire
|
||||
|
||||
[Constructible]
|
||||
public QuiverOfFire() : base()
|
||||
public QuiverOfFire()
|
||||
{
|
||||
Hue = 0x4E7;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ namespace Server.Items
|
|||
{
|
||||
public class QuiverOfIce : ElvenQuiver
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1073110; } } // quiver of ice
|
||||
|
||||
public override int LabelNumber => 1073110; // quiver of ice
|
||||
|
||||
[Constructible]
|
||||
public QuiverOfIce() : base()
|
||||
public QuiverOfIce()
|
||||
{
|
||||
Hue = 0x4ED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ using Server;
|
|||
namespace Server.Items
|
||||
{
|
||||
public class QuiverOfLightning : ElvenQuiver
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1073112; } } // Quiver of Lightning
|
||||
|
||||
{
|
||||
public override int LabelNumber => 1073112; // Quiver of Lightning
|
||||
|
||||
[Constructible]
|
||||
public QuiverOfLightning() : base()
|
||||
public QuiverOfLightning()
|
||||
{
|
||||
Hue = 0x4F9;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue