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

@ -208,14 +208,14 @@ namespace Server.Items
if (reqTactics)
{
@from.SendLocalizedMessage(
from.SendLocalizedMessage(
1079308,
reqSkill.ToString()
); // You need ~1_SKILL_REQUIREMENT~ weapon and tactics skill to perform that attack
}
else
{
@from.SendLocalizedMessage(
from.SendLocalizedMessage(
1060182,
reqSkill.ToString()
); // You need ~1_SKILL_REQUIREMENT~ weapon skill to perform that attack

View file

@ -108,7 +108,7 @@ namespace Server.Items
if (!(HarvestSystem is Mining))
{
@from.SendLocalizedMessage(1010018); // What do you want to use this item on?
from.SendLocalizedMessage(1010018); // What do you want to use this item on?
}
HarvestSystem.BeginHarvesting(from, this);
@ -120,7 +120,7 @@ namespace Server.Items
if (HarvestSystem != null)
{
BaseHarvestTool.AddContextMenuEntries(@from, this, list, HarvestSystem);
BaseHarvestTool.AddContextMenuEntries(from, this, list, HarvestSystem);
}
}

View file

@ -61,23 +61,23 @@ namespace Server.Items
if (!from.Items.Contains(m_Dagger))
{
@from.SendMessage("You must be holding that weapon to use it.");
from.SendMessage("You must be holding that weapon to use it.");
}
else if (targeted is Mobile m)
{
if (m != @from && @from.HarmfulCheck(m))
if (m != from && from.HarmfulCheck(m))
{
var to = @from.GetDirectionTo(m);
var to = from.GetDirectionTo(m);
@from.Direction = to;
from.Direction = to;
@from.Animate(@from.Mounted ? 26 : 9, 7, 1, true, false, 0);
from.Animate(from.Mounted ? 26 : 9, 7, 1, true, false, 0);
if (Utility.RandomDouble() >= Math.Sqrt(m.Dex / 100.0) * 0.8)
{
@from.MovingEffect(m, 0x1BFE, 7, 1, false, false, 0x481, 0);
from.MovingEffect(m, 0x1BFE, 7, 1, false, false, 0x481, 0);
AOS.Damage(m, @from, Utility.Random(5, @from.Str / 10), 100, 0, 0, 0, 0);
AOS.Damage(m, from, Utility.Random(5, from.Str / 10), 100, 0, 0, 0, 0);
m_Dagger.MoveToWorld(m.Location, m.Map);
}
@ -125,9 +125,9 @@ namespace Server.Items
m_Dagger.MoveToWorld(new Point3D(x, y, m.Z), m.Map);
@from.MovingEffect(m_Dagger, 0x1BFE, 7, 1, false, false, 0x481, 0);
from.MovingEffect(m_Dagger, 0x1BFE, 7, 1, false, false, 0x481, 0);
@from.SendMessage("You miss.");
from.SendMessage("You miss.");
}
}
}

View file

@ -58,11 +58,11 @@ namespace Server.Items
if (IsChildOf(from.Backpack) || Parent == from)
{
HarvestSystem.BeginHarvesting(@from, this);
HarvestSystem.BeginHarvesting(from, this);
}
else
{
@from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
}
}
@ -72,7 +72,7 @@ namespace Server.Items
if (HarvestSystem != null)
{
BaseHarvestTool.AddContextMenuEntries(@from, this, list, HarvestSystem);
BaseHarvestTool.AddContextMenuEntries(from, this, list, HarvestSystem);
}
}

View file

@ -159,7 +159,7 @@ namespace Server.Items
MessageType.Regular,
0x3B2,
502471,
@from.NetState
from.NetState
); // That wasn't even challenging.
}