mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Fix for dropped item
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user