Create test items in inventory

This commit is contained in:
CharonInferar
2014-06-05 23:18:34 +02:00
parent 343d7060b3
commit d34f13d5cc
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -1314,6 +1314,7 @@ public class DevService implements INetworkDispatch {
TangibleObject REingTool = (TangibleObject) core.objectService.createObject("object/tangible/container/loot/shared_reverse_engineer_tool.iff", planet);
REingTool.setCustomName("Reverse Engineering Tool");
inventory.add(REingTool);
core.lootService.prepInv2(player);
return;
}
}
+17
View File
@@ -1980,6 +1980,23 @@ public class LootService implements INetworkDispatch {
playerInventory.add(item11);
}
public void prepInv2(CreatureObject player){
SWGObject playerInventory = player.getSlottedObject("inventory");
TangibleObject item11 = (TangibleObject)core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_r.iff", player.getPlanet());
item11.setCustomName("Composite Armor Right Bicep");
item11.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000);
item11.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 4000);
item11.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 5000);
item11.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 5000);
item11.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 5000);
item11.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 5000);
item11.setIntAttribute("cat_stat_mod_bonus.precision", 25);
playerInventory.add(item11);
}
/*
1377 wpn_category_0 Rifle