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

@ -45,7 +45,7 @@ namespace Server.Items
ClearComponents(addon);
flipMethod.Invoke(addon, new object[] { @from, Directions[index] });
flipMethod.Invoke(addon, new object[] { from, Directions[index] });
BaseHouse house = null;
var result = AddonFitResult.Valid;
@ -54,14 +54,14 @@ namespace Server.Items
if (addon is BaseAddon baseAddon)
{
result = baseAddon.CouldFit(baseAddon.Location, @from.Map, @from, ref house);
result = baseAddon.CouldFit(baseAddon.Location, from.Map, from, ref house);
}
else if (addon is BaseAddonContainer container)
{
result = container.CouldFit(container.Location, @from.Map, @from, ref house);
result = container.CouldFit(container.Location, from.Map, from, ref house);
}
addon.Map = @from.Map;
addon.Map = from.Map;
if (result != AddonFitResult.Valid)
{
@ -76,27 +76,27 @@ namespace Server.Items
ClearComponents(addon);
flipMethod.Invoke(addon, new object[2] { @from, Directions[index] });
flipMethod.Invoke(addon, new object[2] { from, Directions[index] });
if (result == AddonFitResult.Blocked)
{
@from.SendLocalizedMessage(500269); // You cannot build that there.
from.SendLocalizedMessage(500269); // You cannot build that there.
}
else if (result == AddonFitResult.NotInHouse)
{
@from.SendLocalizedMessage(500274); // You can only place this in a house that you own!
from.SendLocalizedMessage(500274); // You can only place this in a house that you own!
}
else if (result == AddonFitResult.DoorsNotClosed)
{
@from.SendMessage("You must close all house doors before placing this.");
from.SendMessage("You must close all house doors before placing this.");
}
else if (result == AddonFitResult.DoorTooClose)
{
@from.SendLocalizedMessage(500271); // You cannot build near the door.
from.SendLocalizedMessage(500271); // You cannot build near the door.
}
else if (result == AddonFitResult.NoWall)
{
@from.SendLocalizedMessage(500268); // This object needs to be mounted on something.
from.SendLocalizedMessage(500268); // This object needs to be mounted on something.
}
}