/** 지정된 위치에 돌을 둔다. */ private void putElementalStone(L1Location loc) { L1GroundInventory gInventory = L1World.getInstance().getInventory(loc); L1ItemInstance item = ItemTable.getInstance().createItem(L1ItemId.ELEMENTAL_STONE); item.setEnchantLevel(0); item.setCount(1); gInventory.storeItem(item); _itemList.add(gInventory); }
/** 주워진 돌을 리스트로부터 삭제한다. */ private void removeItemsPickedUp() { L1GroundInventory gInventory = null; for (int i = 0; i < _itemList.size(); i++) { gInventory = _itemList.get(i); if (!gInventory.checkItem(L1ItemId.ELEMENTAL_STONE)) { _itemList.remove(i); i--; } } }