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,80 +1,81 @@
|
|||
using System;
|
||||
using Server.Misc;
|
||||
using Server.Ethics;
|
||||
using Server.Items;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class DarkWisp : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
public class DarkWisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public DarkWisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 165;
|
||||
BaseSoundID = 466;
|
||||
|
||||
public override Ethics.Ethic EthicAllegiance => Ethics.Ethic.Evil;
|
||||
SetStr(196, 225);
|
||||
SetDex(196, 225);
|
||||
SetInt(196, 225);
|
||||
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 1.0 );
|
||||
SetHits(118, 135);
|
||||
|
||||
public override string DefaultName => "a wisp";
|
||||
SetDamage(17, 18);
|
||||
|
||||
[Constructible]
|
||||
public DarkWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 165;
|
||||
BaseSoundID = 466;
|
||||
SetDamageType(ResistanceType.Physical, 50);
|
||||
SetDamageType(ResistanceType.Energy, 50);
|
||||
|
||||
SetStr( 196, 225 );
|
||||
SetDex( 196, 225 );
|
||||
SetInt( 196, 225 );
|
||||
SetResistance(ResistanceType.Physical, 35, 45);
|
||||
SetResistance(ResistanceType.Fire, 20, 40);
|
||||
SetResistance(ResistanceType.Cold, 10, 30);
|
||||
SetResistance(ResistanceType.Poison, 5, 10);
|
||||
SetResistance(ResistanceType.Energy, 50, 70);
|
||||
|
||||
SetHits( 118, 135 );
|
||||
SetSkill(SkillName.EvalInt, 80.0);
|
||||
SetSkill(SkillName.Magery, 80.0);
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetDamage( 17, 18 );
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 50 );
|
||||
SetDamageType( ResistanceType.Energy, 50 );
|
||||
VirtualArmor = 40;
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 45 );
|
||||
SetResistance( ResistanceType.Fire, 20, 40 );
|
||||
SetResistance( ResistanceType.Cold, 10, 30 );
|
||||
SetResistance( ResistanceType.Poison, 5, 10 );
|
||||
SetResistance( ResistanceType.Energy, 50, 70 );
|
||||
AddItem(new LightSource());
|
||||
}
|
||||
|
||||
SetSkill( SkillName.EvalInt, 80.0 );
|
||||
SetSkill( SkillName.Magery, 80.0 );
|
||||
SetSkill( SkillName.MagicResist, 80.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
public DarkWisp(Serial serial)
|
||||
: base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
Fame = 4000;
|
||||
Karma = -4000;
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
|
||||
VirtualArmor = 40;
|
||||
public override Ethic EthicAllegiance => Ethic.Evil;
|
||||
|
||||
AddItem( new LightSource() );
|
||||
}
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds(1.0);
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Average );
|
||||
}
|
||||
public override string DefaultName => "a wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public DarkWisp( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3,141 +3,139 @@ using Server.Gumps;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class EtherealWarrior : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "an ethereal warrior corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
public class EtherealWarrior : BaseCreature
|
||||
{
|
||||
private static TimeSpan ResurrectDelay = TimeSpan.FromSeconds(2.0);
|
||||
|
||||
[Constructible]
|
||||
public EtherealWarrior() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = NameList.RandomName( "ethereal warrior" );
|
||||
Body = 123;
|
||||
private DateTime m_NextResurrect;
|
||||
|
||||
SetStr( 586, 785 );
|
||||
SetDex( 177, 255 );
|
||||
SetInt( 351, 450 );
|
||||
[Constructible]
|
||||
public EtherealWarrior() : base(AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = NameList.RandomName("ethereal warrior");
|
||||
Body = 123;
|
||||
|
||||
SetHits( 352, 471 );
|
||||
SetStr(586, 785);
|
||||
SetDex(177, 255);
|
||||
SetInt(351, 450);
|
||||
|
||||
SetDamage( 13, 19 );
|
||||
SetHits(352, 471);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetDamage(13, 19);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 80, 90 );
|
||||
SetResistance( ResistanceType.Fire, 40, 50 );
|
||||
SetResistance( ResistanceType.Cold, 40, 50 );
|
||||
SetResistance( ResistanceType.Poison, 40, 50 );
|
||||
SetResistance( ResistanceType.Energy, 40, 50 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetSkill( SkillName.Anatomy, 50.1, 75.0 );
|
||||
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Magery, 99.1, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 90.1, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 97.6, 100.0 );
|
||||
SetResistance(ResistanceType.Physical, 80, 90);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 50);
|
||||
SetResistance(ResistanceType.Poison, 40, 50);
|
||||
SetResistance(ResistanceType.Energy, 40, 50);
|
||||
|
||||
Fame = 7000;
|
||||
Karma = 7000;
|
||||
SetSkill(SkillName.Anatomy, 50.1, 75.0);
|
||||
SetSkill(SkillName.EvalInt, 90.1, 100.0);
|
||||
SetSkill(SkillName.Magery, 99.1, 100.0);
|
||||
SetSkill(SkillName.Meditation, 90.1, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 90.1, 100.0);
|
||||
SetSkill(SkillName.Tactics, 90.1, 100.0);
|
||||
SetSkill(SkillName.Wrestling, 97.6, 100.0);
|
||||
|
||||
VirtualArmor = 120;
|
||||
}
|
||||
Fame = 7000;
|
||||
Karma = 7000;
|
||||
|
||||
public override int TreasureMapLevel => Core.AOS ? 5 : 0;
|
||||
VirtualArmor = 120;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich, 3 );
|
||||
AddLoot( LootPack.Gems );
|
||||
}
|
||||
public EtherealWarrior(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
private DateTime m_NextResurrect;
|
||||
private static TimeSpan ResurrectDelay = TimeSpan.FromSeconds(2.0);
|
||||
public override string CorpseName => "an ethereal warrior corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override void OnMovement(Mobile from, Point3D oldLocation)
|
||||
{
|
||||
if (!from.Alive && (from is PlayerMobile))
|
||||
{
|
||||
if (!from.Frozen && (DateTime.UtcNow >= m_NextResurrect) && InRange(from, 4) && !InRange(oldLocation, 4) && InLOS(from))
|
||||
{
|
||||
m_NextResurrect = DateTime.UtcNow + ResurrectDelay;
|
||||
if (!from.Criminal && (from.Kills < 5) && (from.Karma > 0))
|
||||
{
|
||||
if (from.Map != null && from.Map.CanFit(from.Location, 16, false, false))
|
||||
{
|
||||
Direction = GetDirectionTo(from);
|
||||
from.PlaySound(0x1F2);
|
||||
from.FixedEffect(0x376A, 10, 16);
|
||||
from.CloseGump(typeof(ResurrectGump));
|
||||
from.SendGump(new ResurrectGump(from, ResurrectMessage.Healer));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public override int TreasureMapLevel => Core.AOS ? 5 : 0;
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override int Feathers => 100;
|
||||
public override int Feathers => 100;
|
||||
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich, 3);
|
||||
AddLoot(LootPack.Gems);
|
||||
}
|
||||
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
public override void OnMovement(Mobile from, Point3D oldLocation)
|
||||
{
|
||||
if (!from.Alive && from is PlayerMobile)
|
||||
if (!from.Frozen && DateTime.UtcNow >= m_NextResurrect && InRange(from, 4) && !InRange(oldLocation, 4) &&
|
||||
InLOS(from))
|
||||
{
|
||||
m_NextResurrect = DateTime.UtcNow + ResurrectDelay;
|
||||
if (!from.Criminal && from.Kills < 5 && from.Karma > 0)
|
||||
if (from.Map != null && from.Map.CanFit(from.Location, 16, false, false))
|
||||
{
|
||||
Direction = GetDirectionTo(from);
|
||||
from.PlaySound(0x1F2);
|
||||
from.FixedEffect(0x376A, 10, 16);
|
||||
from.CloseGump(typeof(ResurrectGump));
|
||||
from.SendGump(new ResurrectGump(from, ResurrectMessage.Healer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return Utility.Random( 0x2F5, 2 );
|
||||
}
|
||||
public override int GetAngerSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2F9;
|
||||
}
|
||||
public override int GetIdleSound()
|
||||
{
|
||||
return 0x2F8;
|
||||
}
|
||||
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2F7;
|
||||
}
|
||||
public override int GetAttackSound()
|
||||
{
|
||||
return Utility.Random(0x2F5, 2);
|
||||
}
|
||||
|
||||
public override void OnGaveMeleeAttack( Mobile defender )
|
||||
{
|
||||
base.OnGaveMeleeAttack( defender );
|
||||
public override int GetHurtSound()
|
||||
{
|
||||
return 0x2F9;
|
||||
}
|
||||
|
||||
defender.Damage( Utility.Random( 10, 10 ), this );
|
||||
defender.Stam -= Utility.Random( 10, 10 );
|
||||
defender.Mana -= Utility.Random( 10, 10 );
|
||||
}
|
||||
public override int GetDeathSound()
|
||||
{
|
||||
return 0x2F7;
|
||||
}
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
base.OnGotMeleeAttack( attacker );
|
||||
public override void OnGaveMeleeAttack(Mobile defender)
|
||||
{
|
||||
base.OnGaveMeleeAttack(defender);
|
||||
|
||||
attacker.Damage( Utility.Random( 10, 10 ), this );
|
||||
attacker.Stam -= Utility.Random( 10, 10 );
|
||||
attacker.Mana -= Utility.Random( 10, 10 );
|
||||
}
|
||||
defender.Damage(Utility.Random(10, 10), this);
|
||||
defender.Stam -= Utility.Random(10, 10);
|
||||
defender.Mana -= Utility.Random(10, 10);
|
||||
}
|
||||
|
||||
public EtherealWarrior( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnGotMeleeAttack(Mobile attacker)
|
||||
{
|
||||
base.OnGotMeleeAttack(attacker);
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
attacker.Damage(Utility.Random(10, 10), this);
|
||||
attacker.Stam -= Utility.Random(10, 10);
|
||||
attacker.Mana -= Utility.Random(10, 10);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,84 +2,84 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Pixie : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a pixie corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
public class Pixie : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Pixie() : base(AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Name = NameList.RandomName("pixie");
|
||||
Body = 128;
|
||||
BaseSoundID = 0x467;
|
||||
|
||||
[Constructible]
|
||||
public Pixie() : base( AIType.AI_Mage, FightMode.Evil, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = NameList.RandomName( "pixie" );
|
||||
Body = 128;
|
||||
BaseSoundID = 0x467;
|
||||
SetStr(21, 30);
|
||||
SetDex(301, 400);
|
||||
SetInt(201, 250);
|
||||
|
||||
SetStr( 21, 30 );
|
||||
SetDex( 301, 400 );
|
||||
SetInt( 201, 250 );
|
||||
SetHits(13, 18);
|
||||
|
||||
SetHits( 13, 18 );
|
||||
SetDamage(9, 15);
|
||||
|
||||
SetDamage( 9, 15 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 80, 90);
|
||||
SetResistance(ResistanceType.Fire, 40, 50);
|
||||
SetResistance(ResistanceType.Cold, 40, 50);
|
||||
SetResistance(ResistanceType.Poison, 40, 50);
|
||||
SetResistance(ResistanceType.Energy, 40, 50);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 80, 90 );
|
||||
SetResistance( ResistanceType.Fire, 40, 50 );
|
||||
SetResistance( ResistanceType.Cold, 40, 50 );
|
||||
SetResistance( ResistanceType.Poison, 40, 50 );
|
||||
SetResistance( ResistanceType.Energy, 40, 50 );
|
||||
SetSkill(SkillName.EvalInt, 90.1, 100.0);
|
||||
SetSkill(SkillName.Magery, 90.1, 100.0);
|
||||
SetSkill(SkillName.Meditation, 90.1, 100.0);
|
||||
SetSkill(SkillName.MagicResist, 100.5, 150.0);
|
||||
SetSkill(SkillName.Tactics, 10.1, 20.0);
|
||||
SetSkill(SkillName.Wrestling, 10.1, 12.5);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Magery, 90.1, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 90.1, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 100.5, 150.0 );
|
||||
SetSkill( SkillName.Tactics, 10.1, 20.0 );
|
||||
SetSkill( SkillName.Wrestling, 10.1, 12.5 );
|
||||
Fame = 7000;
|
||||
Karma = 7000;
|
||||
|
||||
Fame = 7000;
|
||||
Karma = 7000;
|
||||
VirtualArmor = 100;
|
||||
if (0.02 > Utility.RandomDouble())
|
||||
PackStatue();
|
||||
}
|
||||
|
||||
VirtualArmor = 100;
|
||||
if ( 0.02 > Utility.RandomDouble() )
|
||||
PackStatue();
|
||||
}
|
||||
public Pixie(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.LowScrolls );
|
||||
AddLoot( LootPack.Gems, 2 );
|
||||
}
|
||||
public override string CorpseName => "a pixie corpse";
|
||||
public override bool InitialInnocent => true;
|
||||
|
||||
public override void OnDeath( Container c )
|
||||
{
|
||||
base.OnDeath( c );
|
||||
public override HideType HideType => HideType.Spined;
|
||||
public override int Hides => 5;
|
||||
public override int Meat => 1;
|
||||
|
||||
if ( Utility.RandomDouble() < 0.35 )
|
||||
c.DropItem( new PixieLeg() );
|
||||
}
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public override HideType HideType => HideType.Spined;
|
||||
public override int Hides => 5;
|
||||
public override int Meat => 1;
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.LowScrolls);
|
||||
AddLoot(LootPack.Gems, 2);
|
||||
}
|
||||
|
||||
public Pixie( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void OnDeath(Container c)
|
||||
{
|
||||
base.OnDeath(c);
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
if (Utility.RandomDouble() < 0.35)
|
||||
c.DropItem(new PixieLeg());
|
||||
}
|
||||
|
||||
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 );
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,76 +2,96 @@ using Server.Items;
|
|||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class ShadowWisp : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override string DefaultName => "a shadow wisp";
|
||||
public class ShadowWisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public ShadowWisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.3, 0.6)
|
||||
{
|
||||
Body = 165;
|
||||
BaseSoundID = 466;
|
||||
|
||||
[Constructible]
|
||||
public ShadowWisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.3, 0.6 )
|
||||
{
|
||||
Body = 165;
|
||||
BaseSoundID = 466;
|
||||
SetStr(16, 40);
|
||||
SetDex(16, 45);
|
||||
SetInt(11, 25);
|
||||
|
||||
SetStr( 16, 40 );
|
||||
SetDex( 16, 45 );
|
||||
SetInt( 11, 25 );
|
||||
SetHits(10, 24);
|
||||
|
||||
SetHits( 10, 24 );
|
||||
SetDamage(5, 10);
|
||||
|
||||
SetDamage( 5, 10 );
|
||||
SetDamageType(ResistanceType.Physical, 100);
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
SetResistance(ResistanceType.Physical, 15, 20);
|
||||
SetResistance(ResistanceType.Fire, 5, 10);
|
||||
SetResistance(ResistanceType.Poison, 5, 10);
|
||||
SetResistance(ResistanceType.Energy, 15, 20);
|
||||
|
||||
SetResistance( ResistanceType.Physical, 15, 20 );
|
||||
SetResistance( ResistanceType.Fire, 5, 10 );
|
||||
SetResistance( ResistanceType.Poison, 5, 10 );
|
||||
SetResistance( ResistanceType.Energy, 15, 20 );
|
||||
SetSkill(SkillName.EvalInt, 40.0);
|
||||
SetSkill(SkillName.Magery, 50.0);
|
||||
SetSkill(SkillName.Meditation, 40.0);
|
||||
SetSkill(SkillName.MagicResist, 10.0);
|
||||
SetSkill(SkillName.Tactics, 0.1, 15.0);
|
||||
SetSkill(SkillName.Wrestling, 25.1, 40.0);
|
||||
|
||||
SetSkill( SkillName.EvalInt, 40.0 );
|
||||
SetSkill( SkillName.Magery, 50.0 );
|
||||
SetSkill( SkillName.Meditation, 40.0 );
|
||||
SetSkill( SkillName.MagicResist, 10.0 );
|
||||
SetSkill( SkillName.Tactics, 0.1, 15.0 );
|
||||
SetSkill( SkillName.Wrestling, 25.1, 40.0 );
|
||||
Fame = 500;
|
||||
|
||||
Fame = 500;
|
||||
VirtualArmor = 18;
|
||||
|
||||
VirtualArmor = 18;
|
||||
AddItem(new LightSource());
|
||||
|
||||
AddItem( new LightSource() );
|
||||
switch (Utility.Random(10))
|
||||
{
|
||||
case 0:
|
||||
PackItem(new LeftArm());
|
||||
break;
|
||||
case 1:
|
||||
PackItem(new RightArm());
|
||||
break;
|
||||
case 2:
|
||||
PackItem(new Torso());
|
||||
break;
|
||||
case 3:
|
||||
PackItem(new Bone());
|
||||
break;
|
||||
case 4:
|
||||
PackItem(new RibCage());
|
||||
break;
|
||||
case 5:
|
||||
PackItem(new RibCage());
|
||||
break;
|
||||
case 6:
|
||||
PackItem(new BonePile());
|
||||
break;
|
||||
case 7:
|
||||
PackItem(new BonePile());
|
||||
break;
|
||||
case 8:
|
||||
PackItem(new BonePile());
|
||||
break;
|
||||
case 9:
|
||||
PackItem(new BonePile());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
switch ( Utility.Random( 10 ))
|
||||
{
|
||||
case 0: PackItem( new LeftArm() ); break;
|
||||
case 1: PackItem( new RightArm() ); break;
|
||||
case 2: PackItem( new Torso() ); break;
|
||||
case 3: PackItem( new Bone() ); break;
|
||||
case 4: PackItem( new RibCage() ); break;
|
||||
case 5: PackItem( new RibCage() ); break;
|
||||
case 6: PackItem( new BonePile() ); break;
|
||||
case 7: PackItem( new BonePile() ); break;
|
||||
case 8: PackItem( new BonePile() ); break;
|
||||
case 9: PackItem( new BonePile() ); break;
|
||||
}
|
||||
}
|
||||
public ShadowWisp(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public ShadowWisp( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override string DefaultName => "a shadow wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,84 +1,86 @@
|
|||
using System;
|
||||
using Server.Misc;
|
||||
using Server.Items;
|
||||
using Server.Engines.Plants;
|
||||
using Server.Ethics;
|
||||
using Server.Factions;
|
||||
using Server.Items;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class Wisp : BaseCreature
|
||||
{
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
public class Wisp : BaseCreature
|
||||
{
|
||||
[Constructible]
|
||||
public Wisp() : base(AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4)
|
||||
{
|
||||
Body = 58;
|
||||
BaseSoundID = 466;
|
||||
|
||||
public override Faction FactionAllegiance => CouncilOfMages.Instance;
|
||||
public override Ethics.Ethic EthicAllegiance => Ethics.Ethic.Hero;
|
||||
SetStr(196, 225);
|
||||
SetDex(196, 225);
|
||||
SetInt(196, 225);
|
||||
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds( 1.0 );
|
||||
SetHits(118, 135);
|
||||
|
||||
public override string DefaultName => "a wisp";
|
||||
SetDamage(17, 18);
|
||||
|
||||
[Constructible]
|
||||
public Wisp() : base( AIType.AI_Mage, FightMode.Aggressor, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Body = 58;
|
||||
BaseSoundID = 466;
|
||||
SetDamageType(ResistanceType.Physical, 50);
|
||||
SetDamageType(ResistanceType.Energy, 50);
|
||||
|
||||
SetStr( 196, 225 );
|
||||
SetDex( 196, 225 );
|
||||
SetInt( 196, 225 );
|
||||
SetResistance(ResistanceType.Physical, 35, 45);
|
||||
SetResistance(ResistanceType.Fire, 20, 40);
|
||||
SetResistance(ResistanceType.Cold, 10, 30);
|
||||
SetResistance(ResistanceType.Poison, 5, 10);
|
||||
SetResistance(ResistanceType.Energy, 50, 70);
|
||||
|
||||
SetHits( 118, 135 );
|
||||
SetSkill(SkillName.EvalInt, 80.0);
|
||||
SetSkill(SkillName.Magery, 80.0);
|
||||
SetSkill(SkillName.MagicResist, 80.0);
|
||||
SetSkill(SkillName.Tactics, 80.0);
|
||||
SetSkill(SkillName.Wrestling, 80.0);
|
||||
|
||||
SetDamage( 17, 18 );
|
||||
Fame = 4000;
|
||||
Karma = 0;
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 50 );
|
||||
SetDamageType( ResistanceType.Energy, 50 );
|
||||
VirtualArmor = 40;
|
||||
|
||||
SetResistance( ResistanceType.Physical, 35, 45 );
|
||||
SetResistance( ResistanceType.Fire, 20, 40 );
|
||||
SetResistance( ResistanceType.Cold, 10, 30 );
|
||||
SetResistance( ResistanceType.Poison, 5, 10 );
|
||||
SetResistance( ResistanceType.Energy, 50, 70 );
|
||||
if (Core.ML && Utility.RandomDouble() < .33)
|
||||
PackItem(Seed.RandomPeculiarSeed(3));
|
||||
|
||||
SetSkill( SkillName.EvalInt, 80.0 );
|
||||
SetSkill( SkillName.Magery, 80.0 );
|
||||
SetSkill( SkillName.MagicResist, 80.0 );
|
||||
SetSkill( SkillName.Tactics, 80.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
AddItem(new LightSource());
|
||||
}
|
||||
|
||||
Fame = 4000;
|
||||
Karma = 0;
|
||||
public Wisp(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
VirtualArmor = 40;
|
||||
public override string CorpseName => "a wisp corpse";
|
||||
public override InhumanSpeech SpeechType => InhumanSpeech.Wisp;
|
||||
|
||||
if ( Core.ML && Utility.RandomDouble() < .33 )
|
||||
PackItem( Engines.Plants.Seed.RandomPeculiarSeed(3) );
|
||||
public override Faction FactionAllegiance => CouncilOfMages.Instance;
|
||||
public override Ethic EthicAllegiance => Ethic.Hero;
|
||||
|
||||
AddItem( new LightSource() );
|
||||
}
|
||||
public override TimeSpan ReacquireDelay => TimeSpan.FromSeconds(1.0);
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot( LootPack.Rich );
|
||||
AddLoot( LootPack.Average );
|
||||
}
|
||||
public override string DefaultName => "a wisp";
|
||||
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
public override OppositionGroup OppositionGroup => OppositionGroup.FeyAndUndead;
|
||||
|
||||
public Wisp( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
AddLoot(LootPack.Rich);
|
||||
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