Ejemplo n.º 1
0
 public override void UpdateEquip(Player player)
 {
     ClickerCompat.SetDamageAdd(player, 0.14f);
     ClickerCompat.SetClickerCritAdd(player, 14);
     ClickerCompat.SetClickerRadiusAdd(player, WitherTacoLib.Math.Radius(0.45f));
     ClickerCompat.SetClickerBonusAdd(player, 1);
 }
        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);
        }