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
|
|
@ -2,91 +2,89 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class GolemController : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a golem controller corpse";
|
||||
[Constructible]
|
||||
public GolemController() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = NameList.RandomName( "golem controller" );
|
||||
Title = "the controller";
|
||||
public class GolemController : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public GolemController() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = NameList.RandomName("golem controller");
|
||||
Title = "the controller";
|
||||
|
||||
Body = 400;
|
||||
Hue = 0x455;
|
||||
Body = 400;
|
||||
Hue = 0x455;
|
||||
|
||||
AddArcane( new Robe() );
|
||||
AddArcane( new ThighBoots() );
|
||||
AddArcane( new LeatherGloves() );
|
||||
AddArcane( new Cloak() );
|
||||
AddArcane(new Robe());
|
||||
AddArcane(new ThighBoots());
|
||||
AddArcane(new LeatherGloves());
|
||||
AddArcane(new Cloak());
|
||||
|
||||
SetStr( 126, 150 );
|
||||
SetDex( 96, 120 );
|
||||
SetInt( 151, 175 );
|
||||
SetStr(126, 150);
|
||||
SetDex(96, 120);
|
||||
SetInt(151, 175);
|
||||
|
||||
SetHits( 76, 90 );
|
||||
SetHits(76, 90);
|
||||
|
||||
SetDamage( 6, 12 );
|
||||
SetDamage(6, 12);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 30, 40 );
|
||||
SetResistance( ResistanceType.Fire, 25, 35 );
|
||||
SetResistance( ResistanceType.Cold, 35, 45 );
|
||||
SetResistance( ResistanceType.Poison, 5, 15 );
|
||||
SetResistance( ResistanceType.Energy, 15, 25 );
|
||||
SetResistance(ResistanceType.Physical, 30, 40);
|
||||
SetResistance(ResistanceType.Fire, 25, 35);
|
||||
SetResistance(ResistanceType.Cold, 35, 45);
|
||||
SetResistance(ResistanceType.Poison, 5, 15);
|
||||
SetResistance(ResistanceType.Energy, 15, 25);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 95.1, 100.0 );
|
||||
SetSkill( SkillName.Magery, 95.1, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 95.1, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 102.5, 125.0 );
|
||||
SetSkill( SkillName.Tactics, 65.0, 87.5 );
|
||||
SetSkill( SkillName.Wrestling, 65.0, 87.5 );
|
||||
SetSkill(SkillName.EvalInt, 95.1, 100.0);
|
||||
SetSkill(SkillName.Magery, 95.1, 100.0);
|
||||
SetSkill(SkillName.Meditation, 95.1, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 102.5, 125.0);
|
||||
SetSkill(SkillName.Tactics, 65.0, 87.5);
|
||||
SetSkill(SkillName.Wrestling, 65.0, 87.5);
|
||||
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
|
||||
VirtualArmor = 16;
|
||||
VirtualArmor = 16;
|
||||
|
||||
if ( 0.7 > Utility.RandomDouble() )
|
||||
PackItem( new ArcaneGem() );
|
||||
}
|
||||
if (0.7 > Utility.RandomDouble())
|
||||
PackItem(new ArcaneGem());
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
}
|
||||
public GolemController(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public void AddArcane( Item item )
|
||||
{
|
||||
if ( item is IArcaneEquip eq )
|
||||
{
|
||||
eq.CurArcaneCharges = eq.MaxArcaneCharges = 20;
|
||||
}
|
||||
public override string CorpseName => "a golem controller corpse";
|
||||
|
||||
item.Hue = ArcaneGem.DefaultArcaneHue;
|
||||
item.LootType = LootType.Newbied;
|
||||
public override bool ClickTitle => false;
|
||||
public override bool ShowFameTitle => false;
|
||||
public override bool AlwaysMurderer => true;
|
||||
|
||||
AddItem( item );
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
}
|
||||
|
||||
public override bool ClickTitle => false;
|
||||
public override bool ShowFameTitle => false;
|
||||
public override bool AlwaysMurderer => true;
|
||||
public void AddArcane(Item item)
|
||||
{
|
||||
if (item is IArcaneEquip eq) eq.CurArcaneCharges = eq.MaxArcaneCharges = 20;
|
||||
|
||||
public GolemController( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
item.Hue = ArcaneGem.DefaultArcaneHue;
|
||||
item.LootType = LootType.Newbied;
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
AddItem(item);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue