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,94 +2,94 @@ using Server.Items;
namespace Server.Mobiles
{
public class Gaman : BaseCreature
{
public override string CorpseName => "a gaman corpse";
public override string DefaultName => "a gaman";
public class Gaman : BaseCreature
{
[Constructible]
public Gaman() : base(AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4)
{
Body = 248;
[Constructible]
public Gaman() : base( AIType.AI_Animal, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
{
Body = 248;
SetStr(146, 175);
SetDex(111, 150);
SetInt(46, 60);
SetStr( 146, 175 );
SetDex( 111, 150 );
SetInt( 46, 60 );
SetHits(131, 160);
SetMana(0);
SetHits( 131, 160 );
SetMana( 0 );
SetDamage(6, 11);
SetDamage( 6, 11 );
SetDamageType(ResistanceType.Physical, 100);
SetDamageType( ResistanceType.Physical, 100 );
SetResistance(ResistanceType.Physical, 50, 70);
SetResistance(ResistanceType.Fire, 30, 50);
SetResistance(ResistanceType.Cold, 30, 50);
SetResistance(ResistanceType.Poison, 40, 60);
SetResistance(ResistanceType.Energy, 30, 50);
SetResistance( ResistanceType.Physical, 50, 70 );
SetResistance( ResistanceType.Fire, 30, 50 );
SetResistance( ResistanceType.Cold, 30, 50 );
SetResistance( ResistanceType.Poison, 40, 60 );
SetResistance( ResistanceType.Energy, 30, 50 );
SetSkill(SkillName.MagicResist, 37.6, 42.5);
SetSkill(SkillName.Tactics, 70.6, 83.0);
SetSkill(SkillName.Wrestling, 50.1, 57.5);
SetSkill( SkillName.MagicResist, 37.6, 42.5 );
SetSkill( SkillName.Tactics, 70.6, 83.0 );
SetSkill( SkillName.Wrestling, 50.1, 57.5 );
Fame = 2000;
Karma = -2000;
Fame = 2000;
Karma = -2000;
Tamable = true;
ControlSlots = 1;
MinTameSkill = 68.7;
}
Tamable = true;
ControlSlots = 1;
MinTameSkill = 68.7;
}
public Gaman(Serial serial) : base(serial)
{
}
public override int GetAngerSound()
{
return 0x4F8;
}
public override string CorpseName => "a gaman corpse";
public override string DefaultName => "a gaman";
public override int GetIdleSound()
{
return 0x4F7;
}
public override int Meat => 10;
public override int Hides => 15;
public override FoodType FavoriteFood => FoodType.GrainsAndHay;
public override int GetAttackSound()
{
return 0x4F6;
}
public override int GetAngerSound()
{
return 0x4F8;
}
public override int GetHurtSound()
{
return 0x4F9;
}
public override int GetIdleSound()
{
return 0x4F7;
}
public override int GetDeathSound()
{
return 0x4F5;
}
public override int GetAttackSound()
{
return 0x4F6;
}
public override int Meat => 10;
public override int Hides => 15;
public override FoodType FavoriteFood => FoodType.GrainsAndHay;
public override int GetHurtSound()
{
return 0x4F9;
}
public override void OnDeath( Container c )
{
base.OnDeath( c );
c.DropItem( new GamanHorns( Utility.RandomBool() ? 1 : 2 ) );
}
public override int GetDeathSound()
{
return 0x4F5;
}
public Gaman( Serial serial ) : base( serial )
{
}
public override void OnDeath(Container c)
{
base.OnDeath(c);
c.DropItem(new GamanHorns(Utility.RandomBool() ? 1 : 2));
}
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();
}
}
}