Removed old Loc.GetString() use instances (#4155)

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Galactic Chimp
2021-06-21 02:13:54 +02:00
committed by GitHub
parent 4a46fbe6dd
commit 392b820796
523 changed files with 3082 additions and 1551 deletions

View File

@@ -258,7 +258,7 @@ namespace Content.Server.Inventory.Components
var inventorySlot = _slotContainers[slot];
if (!inventorySlot.Insert(item.Owner))
{
reason = Loc.GetString("You can't equip this!");
reason = Loc.GetString("inventory-component-on-equip-cannot");
return false;
}
@@ -293,7 +293,7 @@ namespace Content.Server.Inventory.Components
if (mobCheck && !EntitySystem.Get<ActionBlockerSystem>().CanEquip(Owner))
{
reason = Loc.GetString("You can't equip this!");
reason = Loc.GetString("inventory-component-can-equip-cannot");
return false;
}
@@ -305,7 +305,7 @@ namespace Content.Server.Inventory.Components
}
else
{
reason = Loc.GetString("This doesn't fit.");
reason = Loc.GetString("inventory-component-can-equip-does-not-fit");
}
}
@@ -317,14 +317,14 @@ namespace Content.Server.Inventory.Components
if (!pass && reason == null)
{
reason = Loc.GetString("You can't equip this!");
reason = Loc.GetString("inventory-component-can-equip-cannot");
}
var canEquip = pass && _slotContainers[slot].CanInsert(item.Owner);
if (!canEquip)
{
reason = Loc.GetString("You can't equip this!");
reason = Loc.GetString("inventory-component-can-equip-cannot");
}
return canEquip;
@@ -667,7 +667,7 @@ namespace Content.Server.Inventory.Components
return;
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Set Outfit");
data.Text = Loc.GetString("set-outfit-verb-get-data-text");
data.CategoryData = VerbCategories.Debug;
data.IconTexture = "/Textures/Interface/VerbIcons/outfit.svg.192dpi.png";
}