Ejemplo n.º 1
0
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     /*player.GetModPlayer<ClickerPlayer>().clickerGloveAcc2 = true;*/
     ClickerCompat.SetAccessory(player, "RegalClickingGlove");
     ClickerCompat.SetDamageAdd(player, 0.1f);
     ClickerCompat.SetClickerCritAdd(player, 2);
     player.GetModPlayer <ClickerAddonPlayer>().magmaChair = true;
 }
Ejemplo n.º 2
0
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     if (!hideVisual)
     {
         ClickerCompat.SetAccessory(player, "EnchantedLED");
         ClickerCompat.SetAccessory(player, "EnchantedLED2");
     }
     ClickerCompat.SetDamageFlatAdd(player, 4);
 }
Ejemplo n.º 3
0
 public void OverclockEnch(bool IfConfig = true)
 {
     if (ClickerAddonConfigClient.Instance.OverclockEnch || !IfConfig)
     {
         player.GetModPlayer <ClickerAddonPlayer>().cloneOverclock = true;
         //ClickerCompat.ClickerClass.GetItem("OverclockHelmet").UpdateArmorSet(player);
     }
     if (ClickerAddonConfigClient.Instance.RegalClickingGlove)
     {
         ClickerCompat.SetAccessory(player, "RegalClickingGlove");
     }
 }
Ejemplo n.º 4
0
 public void AllClickerAcc(bool hideVisual)
 {
     //ClickerCompat.ClickerClass.GetItem("ChocolateMilkCookies").UpdateAccessory(player, hideVisual);
     ClickerCompat.SetAccessory(player, "GlassOfMilk");
     ClickerCompat.SetAccessory(player, "HandCream");
     if (ClickerAddonConfigClient.Instance.Cookie)
     {
         ClickerCompat.SetAccessory(player, "Cookie2");
     }
     if (ClickerAddonConfigClient.Instance.ChocolateChip)
     {
         ClickerCompat.EnableClickEffect(player, "ClickerClass:ChocolateChip");
     }
     if (ClickerAddonConfigClient.Instance.ShowEnchLED || !hideVisual)
     {
         ClickerCompat.SetAccessory(player, "EnchantedLED");
         ClickerCompat.SetAccessory(player, "EnchantedLED2");
     }
 }
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            //Use these methods to adjust clicker class related variables (treat them like player.meleeDamage etc.)
            //Only a small sample here
            //If you use VS, just mouseover the method name to see what it does
            ClickerCompat.SetDamageAdd(player, 0.2f);
            ClickerCompat.SetClickerBonusAdd(player, 1);

            //Enables the special effect of the "Glass Of Milk" accessory
            ClickerCompat.SetAccessory(player, "GlassOfMilk");

            //Enabled the click effect given by Chocolate Chip
            //You can use Clicker Classes base effects (you can find them in the source code), or your own ones
            ClickerCompat.EnableClickEffect(player, "ClickerClass:ChocolateChip");

            //How to check if an effect is enabled for the player
            bool hasChocolateChip = ClickerCompat.HasClickEffect(player, "ClickerClass:ChocolateChip");

            //Makes the radius go in a wave motion from 0 to 100 additional pixels
            float fluct = 1f + (float)Math.Sin(2 * Math.PI * (Main.GameUpdateCount % 60) / 60f);

            ClickerCompat.SetClickerRadiusAdd(player, fluct / 2);
        }
Ejemplo n.º 6
0
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     ClickerCompat.SetAccessory(player, "RegalClickingGlove");
     player.GetModPlayer <ClickerAddonPlayer>().magmaChair = true;
 }
Ejemplo n.º 7
0
 public override void UpdateAccessory(Player player, bool hideVisual)
 {
     ClickerCompat.SetAccessory(player, "Cookie2");
     ClickerCompat.EnableClickEffect(player, "ClickerClass:ChocolateChip");
 }