private static void BlockVanillaAccessories(On.Terraria.Player.orig_UpdateEquips orig, Player self, int i)
 {
     if (self.SGAPly().disabledAccessories < 1)
     {
         orig(self, i);
     }
 }
Пример #2
0
 private void Player_UpdateEquips(On.Terraria.Player.orig_UpdateEquips orig, Player self, int i)
 {
     orig(self, i);
     for (int l = 3; l < 10; l++)
     {
         Item currentItem = self.armor[l];
         if (currentItem.expertOnly && !Main.expertMode)
         {
             return;
         }
         if (currentItem.type == ItemID.RoyalGel)
         {
             self.npcTypeNoAggro[npc.type] = true;
         }
     }
 }