Пример #1
0
 public override void HoldItem(Player player)
 {
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached)
     {
         player.GetModPlayer <KeyPlayer>().DefenderPlus = true;
     }
 }
Пример #2
0
 public override void HoldItem(Player player)
 {
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached)
     {
         player.GetModPlayer <KeyPlayer>().DamageControl = true;
         player.GetModPlayer <KeyPlayer>().LeafBracer    = true;
     }
 }
Пример #3
0
 public override void HoldItem(Player player)
 {
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached&& (NPC.downedMoonlord || player.name == "Chem" || player.name == "Aarazel" || player.name == "Araxlaez" || player.name == "Lazure"))
     {
         player.GetModPlayer <KeyPlayer>().MPHasteza     = true;
         player.GetModPlayer <KeyPlayer>().DamageControl = true;
         player.GetModPlayer <KeyPlayer>().LeafBracer    = true;
     }
 }
 public override void HoldItem(Player player)
 {
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached)
     {
         player.GetModPlayer <KeyPlayer>().DarkAffinity  = true;
         player.GetModPlayer <KeyPlayer>().MPRage        = true;
         player.GetModPlayer <KeyPlayer>().CritMPHasteza = true;
     }
 }
Пример #5
0
 public override void HoldItem(Player player)
 {
     if (player.altFunctionUse == 2)
     {
         player.GetModPlayer <KeyPlayer>().HideGlowmask = true;
     }
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached)
     {
         player.GetModPlayer <KeyPlayer>().VitalBlow = true;
     }
 }
Пример #6
0
 public override void UpdateInventory(Item item, Player player)
 {
     InHotbar             = KeyUtils.InHotbar(player, item);
     KeybrandLimitReached = player.GetModPlayer <KeyPlayer>().KeybrandLimitReached;
     if (item.type == ItemID.Keybrand)
     {
         item.SetDefaults(ItemType <Items.Materials.RustedKeybrand>());
     }
     if (IsKeybrand && !ExemptFromLimit && InHotbar)
     {
         player.GetModPlayer <KeyPlayer>().HeldKeybrands += 1 + LimitPenalty;
     }
 }
 public override void HoldItem(Player player)
 {
     if (KeyUtils.InHotbar(player, item) && !player.GetModPlayer <KeyPlayer>().KeybrandLimitReached)
     {
         player.GetModPlayer <KeyPlayer>().LightAlignment += 100;
         player.GetModPlayer <KeyPlayer>().DarkAlignment  += 100;
         if (munny == 7777)
         {
             player.endurance   *= 0;
             player.statDefense *= 0;
             player.GetModPlayer <KeyPlayer>().LuckySevens = true;
             Dust.NewDust(player.position, player.width, player.height, ModContent.DustType <Dusts.Seven>());
         }
         player.GetModPlayer <KeyPlayer>().MunnyConverter = true;
     }
 }