From d999d00755bc8f0614e46f62f6ccf3501c02b8c1 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 Apr 2024 12:42:12 -0400 Subject: [PATCH] Rebuild of ./createitem --- src/engine/devcmd/cmds/CreateItemCmd.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/devcmd/cmds/CreateItemCmd.java b/src/engine/devcmd/cmds/CreateItemCmd.java index d934c6d4..07c2f1f5 100644 --- a/src/engine/devcmd/cmds/CreateItemCmd.java +++ b/src/engine/devcmd/cmds/CreateItemCmd.java @@ -40,9 +40,10 @@ public class CreateItemCmd extends AbstractDevCmd { int templateID = Integer.parseInt(words[0]); ItemTemplate template = ItemTemplate.templates.get(templateID); - if (template == null) + if (template == null) { + ChatManager.chatSystemInfo(playerCharacter, "No such template found."); return; - + } int size = 1; if (words.length == 2) @@ -51,7 +52,7 @@ public class CreateItemCmd extends AbstractDevCmd { for (int i = 0; i < size; i++) { if (!playerCharacter.charItemManager.hasRoomInventory(template.item_wt)) { - ChatManager.chatSystemInfo(playerCharacter, "You can not carry any more of that item."); + ChatManager.chatSystemInfo(playerCharacter, "You are encumbered!."); break; }