mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-08 23:12:57 -04:00
Corrected multi-colored junk items handling
This commit is contained in:
@@ -2805,8 +2805,67 @@ public class LootService implements INetworkDispatch {
|
||||
item24b.setUses(399);
|
||||
core.objectService.addStackableItem(item24b,playerInventory);
|
||||
|
||||
TangibleObject item25a = (TangibleObject)core.objectService.createObject("object/tangible/loot/npc_loot/shared_wiring_generic.iff", player.getPlanet());
|
||||
item25a.setCustomName("Wiring");
|
||||
item25a.setAttachment("reverse_engineering_name", "Red/Yellow");
|
||||
item25a.setStackable(true);
|
||||
item25a.setUses(299);
|
||||
Vector<String> customizationAttributes = new Vector<String>();
|
||||
customizationAttributes.add("/private/index_color_1");
|
||||
customizationAttributes.add("/private/index_color_2");
|
||||
Vector<Integer> customizationValues = new Vector<Integer>();
|
||||
customizationValues.add(6);
|
||||
customizationValues.add(12);
|
||||
item25a.setAttachment("lootDescriptor", "customattributes");
|
||||
setCustomization(item25a,"Wiring", customizationAttributes, customizationValues);
|
||||
core.objectService.addStackableItem(item25a,playerInventory);
|
||||
|
||||
TangibleObject item25b = (TangibleObject)core.objectService.createObject("object/tangible/loot/npc_loot/shared_launcher_tube_generic.iff", player.getPlanet());
|
||||
item25b.setCustomName("Launcher Tube");
|
||||
item25b.setStackable(true);
|
||||
item25b.setUses(399);
|
||||
core.objectService.addStackableItem(item25b,playerInventory);
|
||||
|
||||
TangibleObject item27b = (TangibleObject)core.objectService.createObject("object/tangible/loot/npc_loot/shared_small_motor_generic.iff", player.getPlanet());
|
||||
item27b.setCustomName("Locomotor");
|
||||
item27b.setStackable(true);
|
||||
item27b.setUses(399);
|
||||
core.objectService.addStackableItem(item27b,playerInventory);
|
||||
|
||||
|
||||
|
||||
TangibleObject item26a = (TangibleObject)core.objectService.createObject("object/tangible/loot/npc_loot/shared_copper_battery_generic.iff", player.getPlanet());
|
||||
item26a.setCustomName("Droid Battery");
|
||||
item26a.setAttachment("reverse_engineering_name", "Black/Green");
|
||||
item26a.setStackable(true);
|
||||
item26a.setUses(299);
|
||||
customizationAttributes = new Vector<String>();
|
||||
customizationAttributes.add("/private/index_color_1");
|
||||
customizationAttributes.add("/private/index_color_2");
|
||||
customizationValues = new Vector<Integer>();
|
||||
customizationValues.add(0);
|
||||
customizationValues.add(15);
|
||||
item26a.setAttachment("lootDescriptor", "customattributes");
|
||||
setCustomization(item26a,"Droid Battery", customizationAttributes, customizationValues);
|
||||
core.objectService.addStackableItem(item26a,playerInventory);
|
||||
|
||||
|
||||
TangibleObject item26b = (TangibleObject)core.objectService.createObject("object/tangible/loot/npc_loot/shared_copper_battery_generic.iff", player.getPlanet());
|
||||
item26b.setCustomName("Droid Battery");
|
||||
item26b.setAttachment("reverse_engineering_name", "Purple/Green");
|
||||
item26b.setStackable(true);
|
||||
item26b.setUses(299);
|
||||
customizationAttributes = new Vector<String>();
|
||||
customizationAttributes.add("/private/index_color_1");
|
||||
customizationAttributes.add("/private/index_color_2");
|
||||
customizationValues = new Vector<Integer>();
|
||||
customizationValues.add(33);
|
||||
customizationValues.add(15);
|
||||
item26b.setAttachment("lootDescriptor", "customattributes");
|
||||
setCustomization(item26b,"Droid Battery", customizationAttributes, customizationValues);
|
||||
core.objectService.addStackableItem(item26b,playerInventory);
|
||||
|
||||
|
||||
String modifierBitTemplate = "object/tangible/component/reverse_engineering/shared_modifier_bit.iff";
|
||||
TangibleObject modifierBit = (TangibleObject) core.objectService.createObject(modifierBitTemplate, player.getPlanet());
|
||||
modifierBit.setCustomName("Droid Experimentation");
|
||||
|
||||
Reference in New Issue
Block a user