feat: Adds stun, death explosion, poison gas, throw hatchet abilities (#1180)
* Adds Colossal Blow * Adds Death Explosion * Adds Poison Gas * Adds AOE Poison Gas (Counter) * Adds Stun * Adds Throw Hatchet
This commit is contained in:
parent
43e7fe29c2
commit
dc6f75c3b4
27 changed files with 1062 additions and 935 deletions
29
Projects/UOContent/Mobiles/Abilities/DeathExplosion.cs
Normal file
29
Projects/UOContent/Mobiles/Abilities/DeathExplosion.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Mobiles;
|
||||
|
||||
public class DeathExplosion : AreaEffectMonsterAbility
|
||||
{
|
||||
public override MonsterAbilityTrigger AbilityTrigger => MonsterAbilityTrigger.OnDeath;
|
||||
|
||||
public override double ChanceToTrigger => 1.0;
|
||||
public override TimeSpan MinTriggerCooldown => TimeSpan.Zero;
|
||||
public override TimeSpan MaxTriggerCooldown => TimeSpan.Zero;
|
||||
|
||||
public override bool CanTrigger(BaseCreature source) => true;
|
||||
|
||||
public override void Trigger(BaseCreature source, Mobile target)
|
||||
{
|
||||
source.FixedParticles(0x36BD, 20, 10, 5044, EffectLayer.Head);
|
||||
source. PlaySound(0x307);
|
||||
|
||||
base.Trigger(source, target);
|
||||
}
|
||||
|
||||
protected override void DoEffectTarget(BaseCreature source, Mobile defender)
|
||||
{
|
||||
source.DoHarmful(defender);
|
||||
// TODO: Is the damage type correct?
|
||||
AOS.Damage(defender, source, defender.HitsMax / 5, true, 100, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue