From 8abdca40c7bb0a147a2cd121d8d149774b9afdef Mon Sep 17 00:00:00 2001 From: Ziggeh Date: Mon, 24 Mar 2014 03:59:16 +0100 Subject: [PATCH] Blue Frog - Added protection to Composite Armor --- src/services/DevService.java | 81 ++++++++++++++++++++++++++++++++---- 1 file changed, 72 insertions(+), 9 deletions(-) diff --git a/src/services/DevService.java b/src/services/DevService.java index feb3c1a3..062adf0f 100644 --- a/src/services/DevService.java +++ b/src/services/DevService.java @@ -133,15 +133,78 @@ public class DevService implements INetworkDispatch { inventory.add(core.objectService.createObject("object/tangible/wearables/robe/shared_robe_jedi_dark_s03.iff", planet)); return; case 22: // Composite Armor - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_r.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_l.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_r.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_l.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_helmet.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_chest_plate.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_leggings.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_boots.iff", planet)); - inventory.add(core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_gloves.iff", planet)); + SWGObject bicep_r = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_r.iff", planet); + bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bicep_l = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_l.iff", planet); + bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bracer_r = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_r.iff", planet); + bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bracer_l = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_l.iff", planet); + bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject leggings = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_leggings.iff", planet); + leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject helmet = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_helmet.iff", planet); + helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject chest = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_chest_plate.iff", planet); + chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject boots = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_boots.iff", planet); + SWGObject gloves = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_gloves.iff", planet); + + + + inventory.add(bicep_r); + inventory.add(bicep_l); + inventory.add(bracer_r); + inventory.add(bracer_l); + inventory.add(leggings); + inventory.add(helmet); + inventory.add(chest); + inventory.add(boots); + inventory.add(gloves); + + return; case 23: // Weapons sendCharacterBuilderSUI(player, 3);