Rebuild of ./createitem

This commit is contained in:
2024-04-23 12:42:12 -04:00
parent a7e953ac20
commit d999d00755
+4 -3
View File
@@ -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;
}