Removes literal variables (#257)

This commit is contained in:
Kamron Batman 2020-09-18 18:41:26 -07:00 • committed by GitHub
parent 580da8a0cc
commit 4d6e584b6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
359 changed files with 1306 additions and 1306 deletions

View file

@ -49,7 +49,7 @@ namespace Server.Items
if (!m_Users.Contains(from))
{
m_Users.Add(@from);
m_Users.Add(from);
}
from.Target = new ThrowTarget(this);
@ -83,7 +83,7 @@ namespace Server.Items
{
if (m_Users[i].Target is ThrowTarget targ && targ.Potion == this)
{
Target.Cancel(@from);
Target.Cancel(from);
}
}
@ -96,9 +96,9 @@ namespace Server.Items
{
var p = new Point3D(loc.X + i, loc.Y + j, loc.Z);
if (map.CanFit(p, 12, true, false) && @from.InLOS(p))
if (map.CanFit(p, 12, true, false) && from.InLOS(p))
{
new InternalItem(@from, p, map, MinDamage, MaxDamage);
new InternalItem(from, p, map, MinDamage, MaxDamage);
}
}
}
@ -162,7 +162,7 @@ namespace Server.Items
}
else
{
to = new Entity(Serial.Zero, new Point3D(p), @from.Map);
to = new Entity(Serial.Zero, new Point3D(p), from.Map);
}
Effects.SendMovingEffect(from, to, 0xF0D, 7, 0, false, false, Potion.Hue);
@ -308,12 +308,12 @@ namespace Server.Items
foreach (var m in m_Item.GetMobilesInRange(0))
{
if (m.Z + 16 > m_Item.Z && m_Item.Z + 12 > m.Z && (!Core.AOS || m != @from) &&
SpellHelper.ValidIndirectTarget(@from, m) && @from.CanBeHarmful(m, false))
if (m.Z + 16 > m_Item.Z && m_Item.Z + 12 > m.Z && (!Core.AOS || m != from) &&
SpellHelper.ValidIndirectTarget(from, m) && from.CanBeHarmful(m, false))
{
@from.DoHarmful(m);
from.DoHarmful(m);
AOS.Damage(m, @from, m_Item.GetDamage(), 0, 100, 0, 0, 0);
AOS.Damage(m, from, m_Item.GetDamage(), 0, 100, 0, 0, 0);
m.PlaySound(0x208);
}
}