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,85 +2,89 @@ using Server.Items;
namespace Server.Mobiles
{
public class Treefellow : BaseCreature
{
public override string CorpseName => "a treefellow corpse";
public override WeaponAbility GetWeaponAbility() => WeaponAbility.Dismount;
public class Treefellow : BaseCreature
{
[Constructible]
public Treefellow() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4)
{
Body = 301;
public override string DefaultName => "a treefellow";
SetStr(196, 220);
SetDex(31, 55);
SetInt(66, 90);
[Constructible]
public Treefellow() : base( AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4 )
{
Body = 301;
SetHits(118, 132);
SetStr( 196, 220 );
SetDex( 31, 55 );
SetInt( 66, 90 );
SetDamage(12, 16);
SetHits( 118, 132 );
SetDamageType(ResistanceType.Physical, 100);
SetDamage( 12, 16 );
SetResistance(ResistanceType.Physical, 20, 25);
SetResistance(ResistanceType.Cold, 50, 60);
SetResistance(ResistanceType.Poison, 30, 35);
SetResistance(ResistanceType.Energy, 20, 30);
SetDamageType( ResistanceType.Physical, 100 );
SetSkill(SkillName.MagicResist, 40.1, 55.0);
SetSkill(SkillName.Tactics, 65.1, 90.0);
SetSkill(SkillName.Wrestling, 65.1, 85.0);
SetResistance( ResistanceType.Physical, 20, 25 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 30, 35 );
SetResistance( ResistanceType.Energy, 20, 30 );
Fame = 500;
Karma = 1500;
SetSkill( SkillName.MagicResist, 40.1, 55.0 );
SetSkill( SkillName.Tactics, 65.1, 90.0 );
SetSkill( SkillName.Wrestling, 65.1, 85.0 );
VirtualArmor = 24;
PackItem(new Log(Utility.RandomMinMax(23, 34)));
}
Fame = 500;
Karma = 1500;
public Treefellow(Serial serial) : base(serial)
{
}
VirtualArmor = 24;
PackItem( new Log( Utility.RandomMinMax( 23, 34 ) ) );
}
public override string CorpseName => "a treefellow corpse";
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override string DefaultName => "a treefellow";
public override int GetIdleSound()
{
return 443;
}
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
public override int GetDeathSound()
{
return 31;
}
public override bool BleedImmune => true;
public override int GetAttackSound()
{
return 672;
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.Dismount;
}
public override bool BleedImmune => true;
public override int GetIdleSound()
{
return 443;
}
public override void GenerateLoot()
{
AddLoot( LootPack.Average );
}
public override int GetDeathSound()
{
return 31;
}
public Treefellow( Serial serial ) : base( serial )
{
}
public override int GetAttackSound()
{
return 672;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void GenerateLoot()
{
AddLoot(LootPack.Average);
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
if ( BaseSoundID == 442 )
BaseSoundID = -1;
}
}
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
if (BaseSoundID == 442)
BaseSoundID = -1;
}
}
}