Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+28 -29
View File
@@ -17,49 +17,48 @@ import engine.objects.PlayerCharacter;
/**
* @author Eighty
*
*/
public class CreateItemCmd extends AbstractDevCmd {
public CreateItemCmd() {
public CreateItemCmd() {
super("createitem");
}
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
if (words.length < 2) {
this.sendUsage(pc);
return;
}
int id;
id = ItemBase.getIDByName(words[0]);
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
if (words.length < 2) {
this.sendUsage(pc);
return;
}
int id;
id = ItemBase.getIDByName(words[0]);
if (id == 0)
id = Integer.parseInt(words[0]);
if (id == 7){
this.throwbackInfo(pc, "use /addgold to add gold.....");
return;
}
if (id == 0)
id = Integer.parseInt(words[0]);
if (id == 7) {
this.throwbackInfo(pc, "use /addgold to add gold.....");
return;
}
int size = 1;
int size = 1;
if(words.length < 3) {
size = Integer.parseInt(words[1]);
}
if (words.length < 3) {
size = Integer.parseInt(words[1]);
}
ItemFactory.fillInventory(pc, id, size);
ItemFactory.fillInventory(pc, id, size);
}
}
@Override
protected String _getHelpString() {
@Override
protected String _getHelpString() {
return "Fill your inventory with items";
}
}
@Override
protected String _getUsageString() {
@Override
protected String _getUsageString() {
return "' /createitem <ItembaseID> <quantity>'";
}
}
}