feat: Adds Monster Abilities (#1179)

* Adds ability to create monster abilities
* Adds Fire/Cold/Chaos Breath
* Adds Grasping Claw
* Adds Summon Skeletons & Summon Undead w/ Polymorph
This commit is contained in:
Kamron Batman 2022-10-01 21:09:36 -07:00 • committed by GitHub
parent 8a2c0ead3d
commit 43e7fe29c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 1262 additions and 977 deletions

View file

@ -0,0 +1,33 @@
namespace Server.Mobiles;
public class SummonLesserUndead : SummonUndead
{
private int _group;
public override void Trigger(BaseCreature source, Mobile target)
{
_group = Utility.Random(2);
base.Trigger(source, target);
}
public override BaseCreature CreateSummon(BaseCreature source)
{
return _group switch
{
0 => Utility.Random(4) switch
{
0 => new Skeleton(),
1 => new SkeletalMage(),
2 => new Mummy(),
3 => new Zombie(),
},
_ => Utility.Random(4) switch
{
0 => new Ghoul(),
1 => new Spectre(),
2 => new Shade(),
3 => new Bogle()
}
};
}
}