Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -7,7 +7,7 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a dragon corpse" )]
|
||||
public class AncientWyrm : BaseCreature
|
||||
{
|
||||
public override string DefaultName { get { return "an ancient wyrm"; } }
|
||||
public override string DefaultName => "an ancient wyrm";
|
||||
|
||||
[Constructible]
|
||||
public AncientWyrm () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
|
|
@ -64,14 +64,14 @@ namespace Server.Mobiles
|
|||
public override bool ReacquireOnMovement => true;
|
||||
public override bool HasBreath => true; // fire breath enabled
|
||||
public override bool AutoDispel => true;
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Hides{ get{ return 40; } }
|
||||
public override int Meat{ get{ return 19; } }
|
||||
public override int Scales{ get{ return 12; } }
|
||||
public override ScaleType ScaleType{ get{ return (ScaleType)Utility.Random( 4 ); } }
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override int Hides => 40;
|
||||
public override int Meat => 19;
|
||||
public override int Scales => 12;
|
||||
public override ScaleType ScaleType => (ScaleType)Utility.Random( 4 );
|
||||
public override Poison PoisonImmune => Poison.Regular;
|
||||
public override Poison HitPoison => Utility.RandomBool() ? Poison.Lesser : Poison.Regular;
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
public override int TreasureMapLevel => 5;
|
||||
public override bool CanFly => true;
|
||||
|
||||
public AncientWyrm( Serial serial ) : base( serial )
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a deep sea serpents corpse" )]
|
||||
public class DeepSeaSerpent : BaseCreature
|
||||
{
|
||||
public override string DefaultName { get { return "a deep sea serpent"; } }
|
||||
public override string DefaultName => "a deep sea serpent";
|
||||
|
||||
[Constructible]
|
||||
public DeepSeaSerpent() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
|
|
@ -58,9 +58,9 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override bool HasBreath => true;
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Scales{ get{ return 8; } }
|
||||
public override ScaleType ScaleType{ get{ return ScaleType.Blue; } }
|
||||
public override int Meat => 1;
|
||||
public override int Scales => 8;
|
||||
public override ScaleType ScaleType => ScaleType.Blue;
|
||||
|
||||
public DeepSeaSerpent( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,13 +56,13 @@ namespace Server.Mobiles
|
|||
public override bool ReacquireOnMovement => !Controlled;
|
||||
public override bool HasBreath => true; // fire breath enabled
|
||||
public override bool AutoDispel => !Controlled;
|
||||
public override int TreasureMapLevel{ get{ return 4; } }
|
||||
public override int Meat{ get{ return 19; } }
|
||||
public override int Hides{ get{ return 20; } }
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Scales{ get{ return 7; } }
|
||||
public override ScaleType ScaleType{ get{ return ( Body == 12 ? ScaleType.Yellow : ScaleType.Red ); } }
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
|
||||
public override int TreasureMapLevel => 4;
|
||||
public override int Meat => 19;
|
||||
public override int Hides => 20;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override int Scales => 7;
|
||||
public override ScaleType ScaleType => ( Body == 12 ? ScaleType.Yellow : ScaleType.Red );
|
||||
public override FoodType FavoriteFood => FoodType.Meat;
|
||||
public override bool CanAngerOnTame => true;
|
||||
public override bool CanFly => true;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,21 +78,21 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override bool HasBreath => true;
|
||||
public override int BreathPhysicalDamage{ get{ return 70; } } // TODO: Verify damage type
|
||||
public override int BreathColdDamage{ get{ return 30; } }
|
||||
public override int BreathFireDamage{ get{ return 0; } }
|
||||
public override int BreathEffectHue{ get{ return 0x1ED; } }
|
||||
public override double BreathDamageScalar{ get{ return 0.05; } }
|
||||
public override double BreathMinDelay{ get{ return 5.0; } }
|
||||
public override double BreathMaxDelay{ get{ return 7.5; } }
|
||||
public override int BreathPhysicalDamage => 70; // TODO: Verify damage type
|
||||
public override int BreathColdDamage => 30;
|
||||
public override int BreathFireDamage => 0;
|
||||
public override int BreathEffectHue => 0x1ED;
|
||||
public override double BreathDamageScalar => 0.05;
|
||||
public override double BreathMinDelay => 5.0;
|
||||
public override double BreathMaxDelay => 7.5;
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.FilthyRich, 5 );
|
||||
}
|
||||
|
||||
public override double TreasureMapChance{ get{ return 0.25; } }
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
public override double TreasureMapChance => 0.25;
|
||||
public override int TreasureMapLevel => 5;
|
||||
|
||||
public Leviathan( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
@ -112,7 +112,7 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public static Type[] Artifacts { get { return m_Artifacts; } }
|
||||
public static Type[] Artifacts => m_Artifacts;
|
||||
|
||||
private static Type[] m_Artifacts = new Type[]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.MedScrolls, 2 );
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int Meat => 1;
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
|
|
@ -82,4 +82,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ namespace Server.Mobiles
|
|||
AddLoot( LootPack.Potions );
|
||||
}
|
||||
|
||||
public override int Meat{ get{ return 1; } }
|
||||
public override int TreasureMapLevel{ get{ return 2; } }
|
||||
public override int Meat => 1;
|
||||
public override int TreasureMapLevel => 2;
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
|
|
@ -83,4 +83,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override int TreasureMapLevel{ get{ return 4; } }
|
||||
public override int TreasureMapLevel => 4;
|
||||
|
||||
public override OppositionGroup OppositionGroup
|
||||
{
|
||||
|
|
|
|||
|
|
@ -61,12 +61,12 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override bool HasBreath => true;
|
||||
public override int TreasureMapLevel{ get{ return 2; } }
|
||||
public override int TreasureMapLevel => 2;
|
||||
|
||||
public override int Hides{ get{ return 10; } }
|
||||
public override HideType HideType{ get{ return HideType.Horned; } }
|
||||
public override int Scales{ get{ return 8; } }
|
||||
public override ScaleType ScaleType{ get{ return ScaleType.Blue; } }
|
||||
public override int Hides => 10;
|
||||
public override HideType HideType => HideType.Horned;
|
||||
public override int Scales => 8;
|
||||
public override ScaleType ScaleType => ScaleType.Blue;
|
||||
|
||||
public SeaSerpent( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,15 +81,15 @@ namespace Server.Mobiles
|
|||
|
||||
public override bool ReacquireOnMovement => true;
|
||||
public override bool HasBreath => true; // fire breath enabled
|
||||
public override double BonusPetDamageScalar{ get{ return (Core.SE) ? 3.0 : 1.0; } }
|
||||
public override double BonusPetDamageScalar => (Core.SE) ? 3.0 : 1.0;
|
||||
|
||||
public override bool AutoDispel => true;
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Hides{ get{ return 20; } }
|
||||
public override int Meat{ get{ return 19; } }
|
||||
public override int Scales{ get{ return 6; } }
|
||||
public override ScaleType ScaleType{ get{ return ( Utility.RandomBool() ? ScaleType.Black : ScaleType.White ); } }
|
||||
public override int TreasureMapLevel{ get{ return 4; } }
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override int Hides => 20;
|
||||
public override int Meat => 19;
|
||||
public override int Scales => 6;
|
||||
public override ScaleType ScaleType => ( Utility.RandomBool() ? ScaleType.Black : ScaleType.White );
|
||||
public override int TreasureMapLevel => 4;
|
||||
|
||||
public SerpentineDragon( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -66,13 +66,13 @@ namespace Server.Mobiles
|
|||
public override bool AutoDispel => true;
|
||||
public override Poison PoisonImmune => Poison.Deadly;
|
||||
public override Poison HitPoison => Poison.Deadly;
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
public override int TreasureMapLevel => 5;
|
||||
|
||||
public override int Meat{ get{ return 19; } }
|
||||
public override int Hides{ get{ return 20; } }
|
||||
public override int Scales{ get{ return 10; } }
|
||||
public override ScaleType ScaleType{ get{ return ScaleType.Black; } }
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Meat => 19;
|
||||
public override int Hides => 20;
|
||||
public override int Scales => 10;
|
||||
public override ScaleType ScaleType => ScaleType.Black;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override bool CanFly => true;
|
||||
|
||||
public ShadowWyrm( Serial serial ) : base( serial )
|
||||
|
|
|
|||
|
|
@ -54,18 +54,18 @@ namespace Server.Mobiles
|
|||
|
||||
public override bool ReacquireOnMovement => true;
|
||||
public override bool HasBreath => true; // fire breath enabled
|
||||
public override int BreathFireDamage{ get{ return 0; } }
|
||||
public override int BreathColdDamage{ get{ return 100; } }
|
||||
public override int BreathEffectHue{ get{ return 0x480; } }
|
||||
public override double BonusPetDamageScalar{ get{ return (Core.SE)? 3.0 : 1.0; } }
|
||||
public override int BreathFireDamage => 0;
|
||||
public override int BreathColdDamage => 100;
|
||||
public override int BreathEffectHue => 0x480;
|
||||
public override double BonusPetDamageScalar => (Core.SE)? 3.0 : 1.0;
|
||||
// TODO: Undead summoning?
|
||||
|
||||
public override bool AutoDispel => true;
|
||||
public override Poison PoisonImmune => Poison.Lethal;
|
||||
public override bool BleedImmune => true;
|
||||
public override int Meat{ get{ return 19; } } // where's it hiding these? :)
|
||||
public override int Hides{ get{ return 20; } }
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Meat => 19; // where's it hiding these? :)
|
||||
public override int Hides => 20;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
|
||||
public SkeletalDragon( Serial serial ) : base( serial )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -56,13 +56,13 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override bool ReacquireOnMovement => true;
|
||||
public override int TreasureMapLevel{ get{ return 4; } }
|
||||
public override int Meat{ get{ return 19; } }
|
||||
public override int Hides{ get{ return 20; } }
|
||||
public override HideType HideType{ get{ return HideType.Barbed; } }
|
||||
public override int Scales{ get{ return 9; } }
|
||||
public override ScaleType ScaleType{ get{ return ScaleType.White; } }
|
||||
public override FoodType FavoriteFood{ get{ return FoodType.Meat | FoodType.Gold; } }
|
||||
public override int TreasureMapLevel => 4;
|
||||
public override int Meat => 19;
|
||||
public override int Hides => 20;
|
||||
public override HideType HideType => HideType.Barbed;
|
||||
public override int Scales => 9;
|
||||
public override ScaleType ScaleType => ScaleType.White;
|
||||
public override FoodType FavoriteFood => FoodType.Meat | FoodType.Gold;
|
||||
public override bool CanAngerOnTame => true;
|
||||
public override bool CanFly => true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue