public static void ImmediateWarWardUpdate(RoR2.CharacterBody self)
 {
     if (self.inventory.GetItemCount(Assets.AffixOrangeItemIndex) > 0)
     {
         self.AddItemBehavior <AffixWarBehavior>(self.inventory.GetItemCount(Assets.AffixOrangeItemIndex));
     }
 }
 public static void ImmediateVoidWardUpdate(RoR2.CharacterBody self)
 {
     if (self.inventory.GetItemCount(Assets.AffixVoidItemIndex) > 0)
     {
         self.AddItemBehavior <Starstorm2.Cores.Elites.VoidElite.AffixVoidBehavior>(self.inventory.GetItemCount(Assets.AffixVoidItemIndex));
     }
 }
Esempio n. 3
0
 private void ImmediateHauntedWardUpdate(On.RoR2.CharacterBody.orig_OnInventoryChanged orig, RoR2.CharacterBody self)
 {
     orig(self);
     if (self.inventory.GetItemCount(AspectsToItems.AspectsToItems.NewDefsList.Find(x => x.name == "AffixHaunted").itemIndex) > 0)
     {
         self.AddItemBehavior <RoR2.CharacterBody.AffixHauntedBehavior>(self.inventory.GetItemCount(AspectsToItems.AspectsToItems.NewDefsList.Find(x => x.name == "AffixHaunted").itemIndex));
     }
 }