Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -2,73 +2,73 @@ using Server.Items;
namespace Server.Mobiles
{
public class Gargoyle : BaseCreature
{
public override string CorpseName => "a gargoyle corpse";
public override string DefaultName => "a gargoyle";
public class Gargoyle : BaseCreature
{
[Constructible]
public Gargoyle() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 4;
BaseSoundID = 372;
[Constructible]
public Gargoyle() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 4;
BaseSoundID = 372;
SetStr(146, 175);
SetDex(76, 95);
SetInt(81, 105);
SetStr( 146, 175 );
SetDex( 76, 95 );
SetInt( 81, 105 );
SetHits(88, 105);
SetHits( 88, 105 );
SetDamage(7, 14);
SetDamage( 7, 14 );
SetDamageType(ResistanceType.Physical, 100);
SetDamageType( ResistanceType.Physical, 100 );
SetResistance(ResistanceType.Physical, 30, 35);
SetResistance(ResistanceType.Fire, 25, 35);
SetResistance(ResistanceType.Cold, 5, 10);
SetResistance(ResistanceType.Poison, 15, 25);
SetResistance( ResistanceType.Physical, 30, 35 );
SetResistance( ResistanceType.Fire, 25, 35 );
SetResistance( ResistanceType.Cold, 5, 10 );
SetResistance( ResistanceType.Poison, 15, 25 );
SetSkill(SkillName.EvalInt, 70.1, 85.0);
SetSkill(SkillName.Magery, 70.1, 85.0);
SetSkill(SkillName.MagicResist, 70.1, 85.0);
SetSkill(SkillName.Tactics, 50.1, 70.0);
SetSkill(SkillName.Wrestling, 40.1, 80.0);
SetSkill( SkillName.EvalInt, 70.1, 85.0 );
SetSkill( SkillName.Magery, 70.1, 85.0 );
SetSkill( SkillName.MagicResist, 70.1, 85.0 );
SetSkill( SkillName.Tactics, 50.1, 70.0 );
SetSkill( SkillName.Wrestling, 40.1, 80.0 );
Fame = 3500;
Karma = -3500;
Fame = 3500;
Karma = -3500;
VirtualArmor = 32;
VirtualArmor = 32;
if (0.025 > Utility.RandomDouble())
PackItem(new GargoylesPickaxe());
}
if ( 0.025 > Utility.RandomDouble() )
PackItem( new GargoylesPickaxe() );
}
public Gargoyle(Serial serial) : base(serial)
{
}
public override bool CanFly => true;
public override string CorpseName => "a gargoyle corpse";
public override string DefaultName => "a gargoyle";
public override void GenerateLoot()
{
AddLoot( LootPack.Average );
AddLoot( LootPack.MedScrolls );
AddLoot( LootPack.Gems, Utility.RandomMinMax( 1, 4 ) );
}
public override bool CanFly => true;
public override int TreasureMapLevel => 1;
public override int Meat => 1;
public override int TreasureMapLevel => 1;
public override int Meat => 1;
public Gargoyle( Serial serial ) : base( serial )
{
}
public override void GenerateLoot()
{
AddLoot(LootPack.Average);
AddLoot(LootPack.MedScrolls);
AddLoot(LootPack.Gems, Utility.RandomMinMax(1, 4));
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}