Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -21,7 +21,7 @@ namespace Server.Factions
}
}
public override string DefaultName { get { return "faction stone"; } }
public override string DefaultName => "faction stone";
[Constructible]
public FactionStone() : this( null )
@ -102,4 +102,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -22,7 +22,7 @@ namespace Server.Factions
}
}
public override string DefaultName { get { return "faction signup stone"; } }
public override string DefaultName => "faction signup stone";
[Constructible]
public JoinStone() : this( null )
@ -78,4 +78,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -4,7 +4,7 @@ namespace Server.Factions
{
public class StrongholdMonolith : BaseMonolith
{
public override int DefaultLabelNumber{ get{ return 1041042; } } // A Faction Sigil Monolith
public override int DefaultLabelNumber => 1041042; // A Faction Sigil Monolith
public override void OnTownChanged()
{
@ -37,4 +37,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -4,7 +4,7 @@ namespace Server.Factions
{
public class TownMonolith : BaseMonolith
{
public override int DefaultLabelNumber{ get{ return 1041403; } } // A Faction Town Sigil Monolith
public override int DefaultLabelNumber => 1041403; // A Faction Town Sigil Monolith
public override void OnTownChanged()
{
@ -37,4 +37,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -21,7 +21,7 @@ namespace Server.Factions
}
}
public override string DefaultName { get { return "faction town stone"; } }
public override string DefaultName => "faction town stone";
[Constructible]
public TownStone() : this( null )
@ -84,4 +84,4 @@ namespace Server.Factions
}
}
}
}
}

View file

@ -5,14 +5,14 @@ namespace Server.Factions
{
public class FactionExplosionTrap : BaseFactionTrap
{
public override int LabelNumber{ get{ return 1044599; } } // faction explosion trap
public override int LabelNumber => 1044599; // faction explosion trap
public override int AttackMessage{ get{ return 1010543; } } // You are enveloped in an explosion of fire!
public override int DisarmMessage{ get{ return 1010539; } } // You carefully remove the pressure trigger and disable the trap.
public override int EffectSound{ get{ return 0x307; } }
public override int MessageHue{ get{ return 0x78; } }
public override int AttackMessage => 1010543; // You are enveloped in an explosion of fire!
public override int DisarmMessage => 1010539; // You carefully remove the pressure trigger and disable the trap.
public override int EffectSound => 0x307;
public override int MessageHue => 0x78;
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.AnyFactionTown; } }
public override AllowedPlacing AllowedPlacing => AllowedPlacing.AnyFactionTown;
public override void DoVisibleEffect()
{
@ -58,13 +58,13 @@ namespace Server.Factions
public class FactionExplosionTrapDeed : BaseFactionTrapDeed
{
public override Type TrapType{ get{ return typeof( FactionExplosionTrap ); } }
public override int LabelNumber{ get{ return 1044603; } } // faction explosion trap deed
public override Type TrapType => typeof( FactionExplosionTrap );
public override int LabelNumber => 1044603; // faction explosion trap deed
public FactionExplosionTrapDeed() : base( 0x36D2 )
{
}
public FactionExplosionTrapDeed( Serial serial ) : base( serial )
{
}
@ -82,4 +82,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -5,14 +5,14 @@ namespace Server.Factions
{
public class FactionGasTrap : BaseFactionTrap
{
public override int LabelNumber{ get{ return 1044598; } } // faction gas trap
public override int LabelNumber => 1044598; // faction gas trap
public override int AttackMessage{ get{ return 1010542; } } // A noxious green cloud of poison gas envelops you!
public override int DisarmMessage{ get{ return 502376; } } // The poison leaks harmlessly away due to your deft touch.
public override int EffectSound{ get{ return 0x230; } }
public override int MessageHue{ get{ return 0x44; } }
public override int AttackMessage => 1010542; // A noxious green cloud of poison gas envelops you!
public override int DisarmMessage => 502376; // The poison leaks harmlessly away due to your deft touch.
public override int EffectSound => 0x230;
public override int MessageHue => 0x44;
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.FactionStronghold; } }
public override AllowedPlacing AllowedPlacing => AllowedPlacing.FactionStronghold;
public override void DoVisibleEffect()
{
@ -58,13 +58,13 @@ namespace Server.Factions
public class FactionGasTrapDeed : BaseFactionTrapDeed
{
public override Type TrapType{ get{ return typeof( FactionGasTrap ); } }
public override int LabelNumber{ get{ return 1044602; } } // faction gas trap deed
public override Type TrapType => typeof( FactionGasTrap );
public override int LabelNumber => 1044602; // faction gas trap deed
public FactionGasTrapDeed() : base( 0x11AB )
{
}
public FactionGasTrapDeed( Serial serial ) : base( serial )
{
}
@ -82,4 +82,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -5,14 +5,14 @@ namespace Server.Factions
{
public class FactionSawTrap : BaseFactionTrap
{
public override int LabelNumber{ get{ return 1041047; } } // faction saw trap
public override int LabelNumber => 1041047; // faction saw trap
public override int AttackMessage{ get{ return 1010544; } } // The blade cuts deep into your skin!
public override int DisarmMessage{ get{ return 1010540; } } // You carefully dismantle the saw mechanism and disable the trap.
public override int EffectSound{ get{ return 0x218; } }
public override int MessageHue{ get{ return 0x5A; } }
public override int AttackMessage => 1010544; // The blade cuts deep into your skin!
public override int DisarmMessage => 1010540; // You carefully dismantle the saw mechanism and disable the trap.
public override int EffectSound => 0x218;
public override int MessageHue => 0x5A;
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.ControlledFactionTown; } }
public override AllowedPlacing AllowedPlacing => AllowedPlacing.ControlledFactionTown;
public override void DoVisibleEffect()
{
@ -58,13 +58,13 @@ namespace Server.Factions
public class FactionSawTrapDeed : BaseFactionTrapDeed
{
public override Type TrapType{ get{ return typeof( FactionSawTrap ); } }
public override int LabelNumber{ get{ return 1044604; } } // faction saw trap deed
public override Type TrapType => typeof( FactionSawTrap );
public override int LabelNumber => 1044604; // faction saw trap deed
public FactionSawTrapDeed() : base( 0x1107 )
{
}
public FactionSawTrapDeed( Serial serial ) : base( serial )
{
}
@ -82,4 +82,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -5,14 +5,14 @@ namespace Server.Factions
{
public class FactionSpikeTrap : BaseFactionTrap
{
public override int LabelNumber{ get{ return 1044601; } } // faction spike trap
public override int LabelNumber => 1044601; // faction spike trap
public override int AttackMessage{ get{ return 1010545; } } // Large spikes in the ground spring up piercing your skin!
public override int DisarmMessage{ get{ return 1010541; } } // You carefully dismantle the trigger on the spikes and disable the trap.
public override int EffectSound{ get{ return 0x22E; } }
public override int MessageHue{ get{ return 0x5A; } }
public override int AttackMessage => 1010545; // Large spikes in the ground spring up piercing your skin!
public override int DisarmMessage => 1010541; // You carefully dismantle the trigger on the spikes and disable the trap.
public override int EffectSound => 0x22E;
public override int MessageHue => 0x5A;
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.ControlledFactionTown; } }
public override AllowedPlacing AllowedPlacing => AllowedPlacing.ControlledFactionTown;
public override void DoVisibleEffect()
{
@ -58,13 +58,13 @@ namespace Server.Factions
public class FactionSpikeTrapDeed : BaseFactionTrapDeed
{
public override Type TrapType{ get{ return typeof( FactionSpikeTrap ); } }
public override int LabelNumber{ get{ return 1044605; } } // faction spike trap deed
public override Type TrapType => typeof( FactionSpikeTrap );
public override int LabelNumber => 1044605; // faction spike trap deed
public FactionSpikeTrapDeed() : base( 0x11A5 )
{
}
public FactionSpikeTrapDeed( Serial serial ) : base( serial )
{
}
@ -82,4 +82,4 @@ namespace Server.Factions
int version = reader.ReadInt();
}
}
}
}

View file

@ -15,7 +15,7 @@ namespace Server.Factions
set{ m_Charges = value; }
}
public override int LabelNumber{ get{ return 1041508; } } // a faction trap removal kit
public override int LabelNumber => 1041508; // a faction trap removal kit
[Constructible]
public FactionTrapRemovalKit() : base( 7867 )
@ -79,4 +79,4 @@ namespace Server.Factions
}
}
}
}
}