Reorganizes Project (#41)

This commit is contained in:
Kamron Batman 2019-08-02 18:13:40 -07:00 • committed by GitHub
parent 08bf44af9a
commit 3614a66aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3499 changed files with 79 additions and 55 deletions

View file

@ -0,0 +1,82 @@
using System;
namespace Server.Mobiles
{
public class CorporealBrume : BaseCreature
{
[Constructible]
public CorporealBrume()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0x104; // TODO: Verify
BaseSoundID = 0x56B;
SetStr(400, 450);
SetDex(100, 150);
SetInt(50, 60);
SetHits(1150, 1250);
SetDamage(21, 25);
SetDamageType(ResistanceType.Physical, 100);
SetResistance(ResistanceType.Physical, 100);
SetResistance(ResistanceType.Fire, 40, 50);
SetResistance(ResistanceType.Cold, 40, 50);
SetResistance(ResistanceType.Poison, 50, 60);
SetResistance(ResistanceType.Energy, 30, 40);
SetSkill(SkillName.Wrestling, 110.0, 115.0);
SetSkill(SkillName.Tactics, 110.0, 115.0);
SetSkill(SkillName.MagicResist, 80.0, 95.0);
SetSkill(SkillName.Anatomy, 100.0, 110.0);
Fame = 12000;
Karma = -12000;
}
public CorporealBrume(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a corporeal brume corpse";
public override string DefaultName => "a corporeal brume";
// TODO: Verify area attack specifics
public override bool HasAura => Combatant != null;
public override TimeSpan AuraInterval => TimeSpan.FromSeconds(20);
public override int AuraRange => 10;
public override int AuraBaseDamage => Utility.RandomMinMax(25, 35);
public override int AuraFireDamage => 0;
public override int AuraColdDamage => 100;
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich);
AddLoot(LootPack.Rich);
}
public override void AuraEffect(Mobile m)
{
m.FixedParticles(0x374A, 10, 15, 5038, 1181, 2, EffectLayer.Head);
m.PlaySound(0x213);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,82 @@
namespace Server.Mobiles
{
public class CrystalDaemon : BaseCreature
{
[Constructible]
public CrystalDaemon()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0x310;
Hue = 0x3E8;
BaseSoundID = 0x47D;
SetStr(140, 200);
SetDex(120, 150);
SetInt(800, 850);
SetHits(200, 220);
SetDamage(16, 20);
SetDamageType(ResistanceType.Physical, 0);
SetDamageType(ResistanceType.Cold, 40);
SetDamageType(ResistanceType.Energy, 60);
SetResistance(ResistanceType.Physical, 20, 40);
SetResistance(ResistanceType.Fire, 0, 20);
SetResistance(ResistanceType.Cold, 60, 80);
SetResistance(ResistanceType.Poison, 20, 40);
SetResistance(ResistanceType.Energy, 65, 75);
SetSkill(SkillName.Wrestling, 60.0, 80.0);
SetSkill(SkillName.Tactics, 70.0, 80.0);
SetSkill(SkillName.MagicResist, 100.0, 110.0);
SetSkill(SkillName.Magery, 120.0, 130.0);
SetSkill(SkillName.EvalInt, 100.0, 110.0);
SetSkill(SkillName.Meditation, 100.0, 110.0);
Fame = 15000;
Karma = -15000;
PackArcaneScroll(0, 1);
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.4 )
c.DropItem( new ScatteredCrystals() );
}
*/
public CrystalDaemon(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a crystal daemon corpse";
public override string DefaultName => "a crystal daemon";
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich, 3);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,169 @@
namespace Server.Mobiles
{
public class CrystalLatticeSeeker : BaseCreature
{
[Constructible]
public CrystalLatticeSeeker()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0x7B;
Hue = 0x47E;
SetStr(550, 850);
SetDex(190, 250);
SetInt(350, 450);
SetHits(350, 550);
SetDamage(13, 19);
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);
SetSkill(SkillName.Anatomy, 50.0, 75.0);
SetSkill(SkillName.EvalInt, 90.0, 100.0);
SetSkill(SkillName.Magery, 100.0, 100.0);
SetSkill(SkillName.Meditation, 90.0, 100.0);
SetSkill(SkillName.MagicResist, 90.0, 100.0);
SetSkill(SkillName.Tactics, 90.0, 100.0);
SetSkill(SkillName.Wrestling, 90.0, 100.0);
Fame = 17000;
Karma = -17000;
PackArcaneScroll(0, 2);
}
public CrystalLatticeSeeker(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a Crystal Lattice Seeker corpse";
public override string DefaultName => "Crystal Lattice Seeker";
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.75 )
c.DropItem( new CrystallineFragments() );
if ( Utility.RandomDouble() < 0.07 )
c.DropItem( new PiecesOfCrystal() );
}
*/
public override int Feathers => 100;
public override int TreasureMapLevel => 5;
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich, 4);
// TODO: uncomment once added
//AddLoot( LootPack.Parrot );
AddLoot(LootPack.Gems);
}
public override void OnGaveMeleeAttack(Mobile defender)
{
base.OnGaveMeleeAttack(defender);
if (Utility.RandomDouble() < 0.1)
Drain(defender);
}
public override void OnGotMeleeAttack(Mobile attacker)
{
base.OnGotMeleeAttack(attacker);
if (Utility.RandomDouble() < 0.1)
Drain(attacker);
}
public virtual void Drain(Mobile m)
{
int toDrain;
switch (Utility.Random(3))
{
case 0:
{
Say(1042156); // I can grant life, and I can sap it as easily.
PlaySound(0x1E6);
toDrain = Utility.RandomMinMax(3, 6);
Hits += toDrain;
m.Hits -= toDrain;
break;
}
case 1:
{
Say(1042157); // You'll go nowhere, unless I deem it should be so.
PlaySound(0x1DF);
toDrain = Utility.RandomMinMax(10, 25);
Stam += toDrain;
m.Stam -= toDrain;
break;
}
case 2:
{
Say(1042155); // Your power is mine to use as I will.
PlaySound(0x1F8);
toDrain = Utility.RandomMinMax(15, 25);
Mana += toDrain;
m.Mana -= toDrain;
break;
}
}
}
public override int GetAttackSound()
{
return 0x2F6;
}
public override int GetDeathSound()
{
return 0x2F7;
}
public override int GetAngerSound()
{
return 0x2F8;
}
public override int GetHurtSound()
{
return 0x2F9;
}
public override int GetIdleSound()
{
return 0x2FA;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,68 @@
namespace Server.Mobiles
{
public class CrystalSeaSerpent : SeaSerpent
{
[Constructible]
public CrystalSeaSerpent()
{
Hue = 0x47E;
SetStr(250, 450);
SetDex(100, 150);
SetInt(90, 190);
SetHits(230, 330);
SetDamage(10, 18);
SetDamageType(ResistanceType.Physical, 10);
SetDamageType(ResistanceType.Cold, 45);
SetDamageType(ResistanceType.Energy, 45);
SetResistance(ResistanceType.Physical, 50, 70);
SetResistance(ResistanceType.Fire, 0);
SetResistance(ResistanceType.Cold, 70, 90);
SetResistance(ResistanceType.Poison, 20, 30);
SetResistance(ResistanceType.Energy, 60, 80);
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.05 )
c.DropItem( new CrushedCrystals() );
if ( Utility.RandomDouble() < 0.1 )
c.DropItem( new IcyHeart() );
if ( Utility.RandomDouble() < 0.1 )
c.DropItem( new LuckyDagger() );
}
*/
public CrystalSeaSerpent(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a crystal sea serpent corpse";
public override string DefaultName => "a crystal sea serpent";
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,95 @@
namespace Server.Mobiles
{
public class CrystalVortex : BaseCreature
{
[Constructible]
public CrystalVortex()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0xD;
Hue = 0x2B2;
BaseSoundID = 0x107;
SetStr(800, 900);
SetDex(500, 600);
SetInt(200);
SetHits(350, 400);
SetMana(0);
SetDamage(15, 20);
SetDamageType(ResistanceType.Physical, 0);
SetDamageType(ResistanceType.Cold, 50);
SetDamageType(ResistanceType.Energy, 50);
SetResistance(ResistanceType.Physical, 60, 80);
SetResistance(ResistanceType.Fire, 0, 10);
SetResistance(ResistanceType.Cold, 70, 80);
SetResistance(ResistanceType.Poison, 40, 50);
SetResistance(ResistanceType.Energy, 60, 90);
SetSkill(SkillName.MagicResist, 120.0);
SetSkill(SkillName.Tactics, 120.0);
SetSkill(SkillName.Wrestling, 120.0);
Fame = 17000;
Karma = -17000;
PackArcaneScroll(0, 2);
}
public CrystalVortex(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a crystal vortex corpse";
public override string DefaultName => "a crystal vortex";
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich, 2);
// TODO: uncomment once added
//AddLoot( LootPack.Parrot );
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.75 )
c.DropItem( new CrystallineFragments() );
if ( Utility.RandomDouble() < 0.06 )
c.DropItem( new JaggedCrystals() );
}
*/
public override int GetAngerSound()
{
return 0x15;
}
public override int GetAttackSound()
{
return 0x28;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,34 @@
namespace Server.Mobiles
{
public class CrystalWisp : Wisp
{
[Constructible]
public CrystalWisp()
{
Hue = 0x482;
PackArcaneScroll(0, 1);
}
public CrystalWisp(Serial serial)
: base(serial)
{
}
public override string DefaultName => "a crystal wisp";
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,68 @@
namespace Server.Mobiles
{
public class MantraEffervescence : BaseCreature
{
[Constructible]
public MantraEffervescence()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 0x111;
BaseSoundID = 0x56E;
SetStr(130, 150);
SetDex(120, 130);
SetInt(150, 230);
SetHits(150, 250);
SetDamage(21, 25);
SetDamageType(ResistanceType.Physical, 30);
SetDamageType(ResistanceType.Energy, 70);
SetResistance(ResistanceType.Physical, 60, 65);
SetResistance(ResistanceType.Fire, 40, 50);
SetResistance(ResistanceType.Cold, 40, 50);
SetResistance(ResistanceType.Poison, 50, 60);
SetResistance(ResistanceType.Energy, 100);
SetSkill(SkillName.Wrestling, 80.0, 85.0);
SetSkill(SkillName.Tactics, 80.0, 85.0);
SetSkill(SkillName.MagicResist, 105.0, 115.0);
SetSkill(SkillName.Magery, 90.0, 110.0);
SetSkill(SkillName.EvalInt, 80.0, 90.0);
SetSkill(SkillName.Meditation, 90.0, 100.0);
Fame = 6500;
Karma = -6500;
}
public MantraEffervescence(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a mantra effervescence corpse";
public override string DefaultName => "a mantra effervescence";
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich);
AddLoot(LootPack.Rich);
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,107 @@
using Server.Items;
namespace Server.Mobiles
{
public class Protector : BaseCreature
{
[Constructible]
public Protector()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Body = 401;
Female = true;
Hue = Race.Human.RandomSkinHue();
HairItemID = Race.Human.RandomHair(this);
HairHue = Race.Human.RandomHairHue();
Title = "the mystic llamaherder";
SetStr(700, 800);
SetDex(100, 150);
SetInt(50, 75);
SetHits(350, 450);
SetDamage(6, 12);
SetDamageType(ResistanceType.Physical, 100);
SetResistance(ResistanceType.Physical, 30, 40);
SetResistance(ResistanceType.Fire, 20, 30);
SetResistance(ResistanceType.Cold, 35, 40);
SetResistance(ResistanceType.Poison, 30, 40);
SetResistance(ResistanceType.Energy, 30, 40);
SetSkill(SkillName.Wrestling, 70.0, 100.0);
SetSkill(SkillName.Tactics, 80.0, 100.0);
SetSkill(SkillName.MagicResist, 50.0, 70.0);
SetSkill(SkillName.Anatomy, 70.0, 100.0);
Fame = 10000;
Karma = -10000;
Item boots = new ThighBoots();
boots.Movable = false;
boots.Hue = Utility.Random(2);
Item shroud = new Item(0x204E);
shroud.Layer = Layer.OuterTorso;
shroud.Movable = false;
shroud.Hue = Utility.Random(2);
AddItem(boots);
AddItem(shroud);
}
public Protector(Serial serial)
: base(serial)
{
}
public override string CorpseName => "a human corpse";
public override string DefaultName => "a Protector";
public override bool AlwaysMurderer => true;
public override bool PropertyTitle => false;
public override bool ShowFameTitle => false;
public override void GenerateLoot(bool spawning)
{
if (spawning)
return; // No loot/backpack on spawn
base.GenerateLoot(true);
base.GenerateLoot(false);
}
public override void GenerateLoot()
{
AddLoot(LootPack.FilthyRich);
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.4 )
c.DropItem( new ProtectorsEssence() );
}
*/
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}

View file

@ -0,0 +1,87 @@
namespace Server.Mobiles
{
public class UnfrozenMummy : BaseCreature
{
[Constructible]
public UnfrozenMummy()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.4, 0.8)
{
Body = 0x9B;
Hue = 0x480;
BaseSoundID = 0x1D7;
SetStr(450, 500);
SetDex(200, 250);
SetInt(800, 850);
SetHits(1500);
SetDamage(16, 20);
SetDamageType(ResistanceType.Physical, 0);
SetDamageType(ResistanceType.Energy, 50);
SetDamageType(ResistanceType.Cold, 50);
SetResistance(ResistanceType.Physical, 35, 40);
SetResistance(ResistanceType.Fire, 20, 30);
SetResistance(ResistanceType.Cold, 60, 80);
SetResistance(ResistanceType.Poison, 20, 30);
SetResistance(ResistanceType.Energy, 70, 80);
SetSkill(SkillName.Wrestling, 90.0, 100.0);
SetSkill(SkillName.Tactics, 100.0);
SetSkill(SkillName.MagicResist, 250.0);
SetSkill(SkillName.Magery, 50.0, 60.0);
SetSkill(SkillName.EvalInt, 50.0, 60.0);
SetSkill(SkillName.Meditation, 80.0);
Fame = 25000;
Karma = -25000;
PackArcaneScroll(0, 2);
}
/*
// TODO: uncomment once added
public override void OnDeath( Container c )
{
base.OnDeath( c );
if ( Utility.RandomDouble() < 0.6 )
c.DropItem( new BrokenCrystals() );
if ( Utility.RandomDouble() < 0.1 )
c.DropItem( new ParrotItem() );
}
*/
public UnfrozenMummy(Serial serial)
: base(serial)
{
}
public override string CorpseName => "an unfrozen mummy corpse";
public override string DefaultName => "an unfrozen mummy";
public override void GenerateLoot()
{
AddLoot(LootPack.UltraRich, 2);
// TODO: uncomment once added
//AddLoot( LootPack.Parrot );
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}