public bool Run(params object[] args)
        {
            // Bioware Default
            _.ExecuteScript("x2_mod_def_equ", Object.OBJECT_SELF);

            _durability.OnModuleEquip();
            _skill.OnModuleItemEquipped();
            _perk.OnModuleItemEquipped();
            _item.OnModuleEquipItem();
            HandleEquipmentSwappingDelay();
            _helmetToggle.OnModuleItemEquipped();
            return(true);
        }
Exemple #2
0
        public bool Run(params object[] args)
        {
            NWObject equipper = Object.OBJECT_SELF;

            // Bioware Default
            _.ExecuteScript("x2_mod_def_equ", equipper);

            if (equipper.GetLocalInt("IS_CUSTOMIZING_ITEM") == TRUE)
            {
                return(true);                                                     // Don't run heavy code when customizing equipment.
            }
            _durability.OnModuleEquip();
            _skill.OnModuleItemEquipped();
            _perk.OnModuleItemEquipped();
            _item.OnModuleEquipItem();
            HandleEquipmentSwappingDelay();
            _helmetToggle.OnModuleItemEquipped();
            return(true);
        }