Fixes body expression style.
This commit is contained in:
parent
3f0a72a62f
commit
33f5e77a24
957 changed files with 7424 additions and 15973 deletions
|
|
@ -24,18 +24,15 @@ namespace Server.Items
|
|||
|
||||
private List<MusicName> m_Tracks;
|
||||
|
||||
public List<MusicName> Tracks
|
||||
{
|
||||
get { return m_Tracks; }
|
||||
}
|
||||
public List<MusicName> Tracks => m_Tracks;
|
||||
|
||||
private SecureLevel m_Level;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public SecureLevel Level
|
||||
{
|
||||
get { return m_Level; }
|
||||
set { m_Level = value; }
|
||||
get => m_Level;
|
||||
set => m_Level = value;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -5,28 +5,19 @@ namespace Server.Items
|
|||
[Flippable( 0x1053, 0x1054 )]
|
||||
public class DawnsMusicGear : Item
|
||||
{
|
||||
public static DawnsMusicGear RandomCommon
|
||||
{
|
||||
get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Common ) ); }
|
||||
}
|
||||
public static DawnsMusicGear RandomCommon => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Common ) );
|
||||
|
||||
public static DawnsMusicGear RandomUncommon
|
||||
{
|
||||
get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Uncommon ) ); }
|
||||
}
|
||||
public static DawnsMusicGear RandomUncommon => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Uncommon ) );
|
||||
|
||||
public static DawnsMusicGear RandomRare
|
||||
{
|
||||
get { return new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Rare ) ); }
|
||||
}
|
||||
public static DawnsMusicGear RandomRare => new DawnsMusicGear( DawnsMusicBox.RandomTrack( DawnsMusicRarity.Rare ) );
|
||||
|
||||
private MusicName m_Music;
|
||||
|
||||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public MusicName Music
|
||||
{
|
||||
get { return m_Music; }
|
||||
set { m_Music = value; }
|
||||
get => m_Music;
|
||||
set => m_Music = value;
|
||||
}
|
||||
|
||||
[Constructible]
|
||||
|
|
|
|||
|
|
@ -11,17 +11,11 @@
|
|||
{
|
||||
private int m_Name;
|
||||
|
||||
public int Name
|
||||
{
|
||||
get { return m_Name; }
|
||||
}
|
||||
public int Name => m_Name;
|
||||
|
||||
private DawnsMusicRarity m_Rarity;
|
||||
|
||||
public DawnsMusicRarity Rarity
|
||||
{
|
||||
get { return m_Rarity; }
|
||||
}
|
||||
public DawnsMusicRarity Rarity => m_Rarity;
|
||||
|
||||
public DawnsMusicInfo( int name, DawnsMusicRarity rarity )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,17 +56,14 @@ namespace Server.Items
|
|||
[FlippableAttribute( 0x2AC0, 0x2AC3 )]
|
||||
public class FountainOfLife : BaseAddonContainer
|
||||
{
|
||||
public override BaseAddonContainerDeed Deed
|
||||
{
|
||||
get { return new FountainOfLifeDeed( m_Charges ); }
|
||||
}
|
||||
public override BaseAddonContainerDeed Deed => new FountainOfLifeDeed( m_Charges );
|
||||
|
||||
public override bool OnDragLift( Mobile from )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual TimeSpan RechargeTime { get { return TimeSpan.FromDays( 1 ); } }
|
||||
public virtual TimeSpan RechargeTime => TimeSpan.FromDays( 1 );
|
||||
|
||||
public override int LabelNumber => 1075197; // Fountain of Life
|
||||
public override int DefaultGumpID => 0x484;
|
||||
|
|
@ -78,7 +75,7 @@ namespace Server.Items
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Charges
|
||||
{
|
||||
get { return m_Charges; }
|
||||
get => m_Charges;
|
||||
set { m_Charges = Math.Min( value, 10 ); InvalidateProperties(); }
|
||||
}
|
||||
|
||||
|
|
@ -230,7 +227,7 @@ namespace Server.Items
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public int Charges
|
||||
{
|
||||
get { return m_Charges; }
|
||||
get => m_Charges;
|
||||
set { m_Charges = Math.Min( value, 10 ); InvalidateProperties(); }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue