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

@ -1,70 +1,70 @@
namespace Server.Mobiles
{
public class Alligator : BaseCreature
{
public override string CorpseName => "an alligator corpse";
public override string DefaultName => "an alligator";
public class Alligator : BaseCreature
{
[Constructible]
public Alligator() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0xCA;
BaseSoundID = 660;
[Constructible]
public Alligator() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Body = 0xCA;
BaseSoundID = 660;
SetStr(76, 100);
SetDex(6, 25);
SetInt(11, 20);
SetStr( 76, 100 );
SetDex( 6, 25 );
SetInt( 11, 20 );
SetHits(46, 60);
SetStam(46, 65);
SetMana(0);
SetHits( 46, 60 );
SetStam( 46, 65 );
SetMana( 0 );
SetDamage(5, 15);
SetDamage( 5, 15 );
SetDamageType(ResistanceType.Physical, 100);
SetDamageType( ResistanceType.Physical, 100 );
SetResistance(ResistanceType.Physical, 25, 35);
SetResistance(ResistanceType.Fire, 5, 10);
SetResistance(ResistanceType.Poison, 5, 10);
SetResistance( ResistanceType.Physical, 25, 35 );
SetResistance( ResistanceType.Fire, 5, 10 );
SetResistance( ResistanceType.Poison, 5, 10 );
SetSkill(SkillName.MagicResist, 25.1, 40.0);
SetSkill(SkillName.Tactics, 40.1, 60.0);
SetSkill(SkillName.Wrestling, 40.1, 60.0);
SetSkill( SkillName.MagicResist, 25.1, 40.0 );
SetSkill( SkillName.Tactics, 40.1, 60.0 );
SetSkill( SkillName.Wrestling, 40.1, 60.0 );
Fame = 600;
Karma = -600;
Fame = 600;
Karma = -600;
VirtualArmor = 30;
VirtualArmor = 30;
Tamable = true;
ControlSlots = 1;
MinTameSkill = 47.1;
}
Tamable = true;
ControlSlots = 1;
MinTameSkill = 47.1;
}
public Alligator(Serial serial) : base(serial)
{
}
public override int Meat => 1;
public override int Hides => 12;
public override HideType HideType => HideType.Spined;
public override FoodType FavoriteFood => FoodType.Meat | FoodType.Fish;
public override string CorpseName => "an alligator corpse";
public override string DefaultName => "an alligator";
public Alligator(Serial serial) : base(serial)
{
}
public override int Meat => 1;
public override int Hides => 12;
public override HideType HideType => HideType.Spined;
public override FoodType FavoriteFood => FoodType.Meat | FoodType.Fish;
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int) 0);
}
writer.Write(0);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int version = reader.ReadInt();
if ( BaseSoundID == 0x5A )
BaseSoundID = 660;
}
}
}
if (BaseSoundID == 0x5A)
BaseSoundID = 660;
}
}
}