Improve equip fail messages.

Message when trying to equip regular items to slots.
Mention ID slot specifically.
This commit is contained in:
Pieter-Jan Briers
2020-05-23 22:57:25 +02:00
parent 54b3783b03
commit bd92bdfbf8
2 changed files with 9 additions and 2 deletions

View File

@@ -34,7 +34,9 @@ namespace Content.Server.GameObjects
// Can't wear stuff in ID card or pockets unless you have a uniform.
if (_inventory.GetSlotItem(Slots.INNERCLOTHING) == null)
{
reason = Loc.GetString("You need a uniform to store something in your pockets!");
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!");
return false;
}