Removed old Loc.GetString() use instances (#4155)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -35,8 +35,8 @@ namespace Content.Server.Inventory.Components
|
||||
if (_inventory.GetSlotItem(Slots.INNERCLOTHING) == null)
|
||||
{
|
||||
reason = Loc.GetString(slotMask == SlotFlags.IDCARD
|
||||
? "You need a uniform to store something in your ID slot!"
|
||||
: "You need a uniform to store something in your pockets!");
|
||||
? "human-inventory-controller-component-need-uniform-to-store-in-id-slot-text"
|
||||
: "human-inventory-controller-component-need-uniform-to-store-in-pockets-text");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Content.Server.Inventory.Components
|
||||
}
|
||||
else if (!flagsCheck)
|
||||
{
|
||||
reason = Loc.GetString("This is too large!");
|
||||
reason = Loc.GetString("human-inventory-controller-component-too-large-text");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user