Example #1
0
 private void CharacterModel_SetEquipmentDisplay(On.RoR2.CharacterModel.orig_SetEquipmentDisplay orig, RoR2.CharacterModel self, RoR2.EquipmentIndex newEquipmentIndex)
 {
     return;
 }
 private void CharacterModel_SetEquipmentDisplay(On.RoR2.CharacterModel.orig_SetEquipmentDisplay orig, RoR2.CharacterModel self, RoR2.EquipmentIndex newEquipmentIndex)
 {
     if (DisableEquipmentDisplay.Value)
     {
         if (newEquipmentIndex != RoR2.EquipmentIndex.GoldGat && newEquipmentIndex != RoR2.EquipmentIndex.Jetpack)
         {
             newEquipmentIndex = RoR2.EquipmentIndex.None;
         }
     }
     orig(self, newEquipmentIndex);
 }