Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,65 +1,65 @@
|
|||
namespace Server.Mobiles
|
||||
{
|
||||
public class Troll : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a troll corpse";
|
||||
public override string DefaultName => "a troll";
|
||||
public class Troll : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Troll() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = Utility.RandomList(53, 54);
|
||||
BaseSoundID = 461;
|
||||
|
||||
[Constructible]
|
||||
public Troll () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = Utility.RandomList( 53, 54 );
|
||||
BaseSoundID = 461;
|
||||
SetStr(176, 205);
|
||||
SetDex(46, 65);
|
||||
SetInt(46, 70);
|
||||
|
||||
SetStr( 176, 205 );
|
||||
SetDex( 46, 65 );
|
||||
SetInt( 46, 70 );
|
||||
SetHits(106, 123);
|
||||
|
||||
SetHits( 106, 123 );
|
||||
SetDamage(8, 14);
|
||||
|
||||
SetDamage( 8, 14 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 35, 45);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 15, 25);
|
||||
SetResistance(ResistanceType.Poison, 5, 15);
|
||||
SetResistance(ResistanceType.Energy, 5, 15);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 45 );
|
||||
SetResistance( ResistanceType.Fire, 25, 35 );
|
||||
SetResistance( ResistanceType.Cold, 15, 25 );
|
||||
SetResistance( ResistanceType.Poison, 5, 15 );
|
||||
SetResistance( ResistanceType.Energy, 5, 15 );
|
||||
SetSkill(SkillName.MagicResist, 45.1, 60.0);
|
||||
SetSkill(SkillName.Tactics, 50.1, 70.0);
|
||||
SetSkill(SkillName.Wrestling, 50.1, 70.0);
|
||||
|
||||
SetSkill( SkillName.MagicResist, 45.1, 60.0 );
|
||||
SetSkill( SkillName.Tactics, 50.1, 70.0 );
|
||||
SetSkill( SkillName.Wrestling, 50.1, 70.0 );
|
||||
Fame = 3500;
|
||||
Karma = -3500;
|
||||
|
||||
Fame = 3500;
|
||||
Karma = -3500;
|
||||
VirtualArmor = 40;
|
||||
}
|
||||
|
||||
VirtualArmor = 40;
|
||||
}
|
||||
public Troll(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Average );
|
||||
}
|
||||
public override string CorpseName => "a troll corpse";
|
||||
public override string DefaultName => "a troll";
|
||||
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 1;
|
||||
public override int Meat => 2;
|
||||
public override bool CanRummageCorpses => true;
|
||||
public override int TreasureMapLevel => 1;
|
||||
public override int Meat => 2;
|
||||
|
||||
public Troll( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Average);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue