Fix for dropped item

This commit is contained in:
CharonInferar
2014-07-05 18:19:52 +02:00
parent 5c66aec560
commit e87f478e33
+6 -6
View File
@@ -81,8 +81,8 @@ public class LootService implements INetworkDispatch {
private NGECore core;
private static int prepInvCnt = 0;
//String testDropTemplate = null;
String testDropTemplate = "comlink";
String testDropTemplate = null;
//String testDropTemplate = "comlink";
public LootService(NGECore core) {
this.core = core;
@@ -552,8 +552,8 @@ public class LootService implements INetworkDispatch {
if (randomItemFromPool<=remainder){
// this element has been chosen e.g. kraytpearl_flawless
//System.err.println("CHOSEN ITEM " + itemNames.get(i));
//handleLootPoolItems(itemNames.get(i), lootRollSession);
handleLootPoolItems(testDropTemplate, lootRollSession);
handleLootPoolItems(itemNames.get(i), lootRollSession);
//handleLootPoolItems(testDropTemplate, lootRollSession);
//break;
return;
}
@@ -579,7 +579,7 @@ public class LootService implements INetworkDispatch {
}
private void handleLootPoolItems(String itemName,LootRollSession lootRollSession){
System.out.println("itemName " + itemName);
//System.out.println("itemName " + itemName);
final Vector<String> foundPath = new Vector<String>();
Path p = Paths.get("scripts/loot/lootItems/");
FileVisitor<Path> fv = new SimpleFileVisitor<Path>() {
@@ -723,7 +723,7 @@ public class LootService implements INetworkDispatch {
if (!customName.isEmpty())
handleCustomDropName(droppedItem, customName);
stackable = 1;
//stackable = 1;
if (stackable!=-1){
if(stackable==1)
droppedItem.setStackable(true);