Formats UO Content (#201)
This commit is contained in:
parent
86b7b3aed1
commit
ad3775c4d7
3249 changed files with 431083 additions and 440981 deletions
|
|
@ -1,58 +1,76 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Spells.Chivalry
|
||||
{
|
||||
public class HolyLightSpell : PaladinSpell
|
||||
{
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Holy Light", "Augus Luminos",
|
||||
-1,
|
||||
9002);
|
||||
|
||||
public HolyLightSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
public class HolyLightSpell : PaladinSpell
|
||||
{
|
||||
}
|
||||
private static readonly SpellInfo m_Info = new SpellInfo(
|
||||
"Holy Light",
|
||||
"Augus Luminos",
|
||||
-1,
|
||||
9002
|
||||
);
|
||||
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(1.75);
|
||||
|
||||
public override double RequiredSkill => 55.0;
|
||||
public override int RequiredMana => 10;
|
||||
public override int RequiredTithing => 10;
|
||||
public override int MantraNumber => 1060724; // Augus Luminos
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
if (CheckSequence())
|
||||
{
|
||||
Caster.PlaySound(0x212);
|
||||
Caster.PlaySound(0x206);
|
||||
|
||||
Effects.SendLocationParticles(EffectItem.Create(Caster.Location, Caster.Map, EffectItem.DefaultDuration),
|
||||
0x376A, 1, 29, 0x47D, 2, 9962, 0);
|
||||
Effects.SendLocationParticles(
|
||||
EffectItem.Create(new Point3D(Caster.X, Caster.Y, Caster.Z - 7), Caster.Map, EffectItem.DefaultDuration),
|
||||
0x37C4, 1, 29, 0x47D, 2, 9502, 0);
|
||||
|
||||
IEnumerable<Mobile> targets = Caster.GetMobilesInRange(3)
|
||||
.Where(m => Caster != m && SpellHelper.ValidIndirectTarget(Caster, m) && Caster.CanBeHarmful(m, false) &&
|
||||
(!Core.AOS || Caster.InLOS(m)));
|
||||
|
||||
foreach (Mobile m in targets)
|
||||
public HolyLightSpell(Mobile caster, Item scroll = null) : base(caster, scroll, m_Info)
|
||||
{
|
||||
int damage = Math.Clamp(ComputePowerValue(10) + Utility.RandomMinMax(0, 2), 8, 24);
|
||||
|
||||
Caster.DoHarmful(m);
|
||||
SpellHelper.Damage(this, m, damage, 0, 0, 0, 0, 100);
|
||||
}
|
||||
}
|
||||
|
||||
FinishSequence();
|
||||
public override TimeSpan CastDelayBase => TimeSpan.FromSeconds(1.75);
|
||||
|
||||
public override double RequiredSkill => 55.0;
|
||||
public override int RequiredMana => 10;
|
||||
public override int RequiredTithing => 10;
|
||||
public override int MantraNumber => 1060724; // Augus Luminos
|
||||
public override bool BlocksMovement => false;
|
||||
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
if (CheckSequence())
|
||||
{
|
||||
Caster.PlaySound(0x212);
|
||||
Caster.PlaySound(0x206);
|
||||
|
||||
Effects.SendLocationParticles(
|
||||
EffectItem.Create(Caster.Location, Caster.Map, EffectItem.DefaultDuration),
|
||||
0x376A,
|
||||
1,
|
||||
29,
|
||||
0x47D,
|
||||
2,
|
||||
9962,
|
||||
0
|
||||
);
|
||||
Effects.SendLocationParticles(
|
||||
EffectItem.Create(new Point3D(Caster.X, Caster.Y, Caster.Z - 7), Caster.Map, EffectItem.DefaultDuration),
|
||||
0x37C4,
|
||||
1,
|
||||
29,
|
||||
0x47D,
|
||||
2,
|
||||
9502,
|
||||
0
|
||||
);
|
||||
|
||||
var targets = Caster.GetMobilesInRange(3)
|
||||
.Where(
|
||||
m => Caster != m && SpellHelper.ValidIndirectTarget(Caster, m) && Caster.CanBeHarmful(m, false) &&
|
||||
(!Core.AOS || Caster.InLOS(m))
|
||||
);
|
||||
|
||||
foreach (var m in targets)
|
||||
{
|
||||
var damage = Math.Clamp(ComputePowerValue(10) + Utility.RandomMinMax(0, 2), 8, 24);
|
||||
|
||||
Caster.DoHarmful(m);
|
||||
SpellHelper.Damage(this, m, damage, 0, 0, 0, 0, 100);
|
||||
}
|
||||
}
|
||||
|
||||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue