예제 #1
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("True Arthur's Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string HolyNovaClone = ClickerCompat.RegisterClickEffect(mod, "HolyNova", "True Holy Nova", "Damages every enemy within the clicker's radius with a guaranteed critical hit", 9, new Color(255, 225, 0, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.NPCHit, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                for (int u = 0; u < Main.maxNPCs; u++)
                {
                    NPC target = Main.npc[u];
                    if (Collision.CanHit(target.Center, 1, 1, Main.MouseWorld, 1, 1) && target.DistanceSQ(Main.MouseWorld) < 350 * 350)
                    {
                        Vector2 vector = target.Center - Main.MouseWorld;
                        float speed    = 8f;
                        float mag      = (float)Math.Sqrt(vector.X * vector.X + vector.Y * vector.Y);
                        if (mag > speed)
                        {
                            mag = speed / mag;
                        }
                        vector *= mag;
                        Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, clickerClass.ProjectileType("ArthursClickerPro"), (int)(damage * 0.75f), knockBack, player.whoAmI, 1f, 0f);

                        for (int k = 0; k < 30; k++)
                        {
                            Dust dust      = Dust.NewDustDirect(target.Center, 8, 8, 70, vector.X + Main.rand.NextFloat(-1f, 1f), vector.Y + Main.rand.NextFloat(-1f, 1f), 0, default, 1.25f);
예제 #2
0
        public override void SetStaticDefaults()
        {
            //You NEED to call this in SetStaticDefaults to make it count as a clicker weapon. also sets the default tooltip
            ClickerCompat.RegisterClickerWeapon(this);

            DisplayName.SetDefault("Example Clicker");
        }
예제 #3
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this, borderTexture: "ClickerAddon/Items/CrossContent/Calamity/Weapons/Clickers/AerospecClicker_Outline");
            //DisplayName.SetDefault("Xenomite Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string SeaSplash = ClickerCompat.RegisterClickEffect(mod, "BurstOfAir", "Burst of air", "Creates a burst of air that deals damage", 6, new Color(160, 210, 160, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, mod.ProjectileType("AerospecClickerPro"), damage, knockBack * 100, player.whoAmI);
            });
        }
예제 #4
0
 public override void SetStaticDefaults()
 {
     ClickerCompat.RegisterClickerWeapon(this);
     /*DisplayName.SetDefault("Copper Clicker");*/
     Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
     string DoubleClickClone = ClickerCompat.RegisterClickEffect(mod, "DoubleClick", "Double Click", "Deals damage twice with one attack", 6, Color.White, delegate(Player player, Vector2 position, int type, int damage, float knockBack)
     {
         Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 37);
         Mod clickerClass = ModLoader.GetMod("ClickerClass");
         Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, clickerClass.ProjectileType("ClickDamage"), damage, knockBack, player.whoAmI);
     });
 }
예제 #5
0
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("The Super Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
            ClickerCompat.RegisterClickerWeapon(this, borderTexture: "ClickerAddon/Items/CrossContent/Fargo/Weapons/Clickers/TheSuperClicker_Outline");

            string SuperClone = ClickerCompat.RegisterClickEffect(mod, "SuperConqueror", "Super Conqueror", "Creates an area-of-effect super phantasmal explosion that deals damage", 1, Color.White, delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 37);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");
                Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, mod.ProjectileType("LordsClickerProSuper"), damage, knockBack, player.whoAmI);
            });
        }
예제 #6
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Aquaius`s Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string AquaWave = ClickerCompat.RegisterClickEffect(mod, "AquaWave", "Aqua Wave", "Two waves appear on the sides, dealing damage horizontally", 7, new Color(0, 148, 255, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                //Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 103);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                Projectile.NewProjectile(Main.MouseWorld.X + 1200, Main.MouseWorld.Y, -12f, 0f, mod.ProjectileType("AquaTyphoon"), damage, knockBack, player.whoAmI);
                Projectile.NewProjectile(Main.MouseWorld.X - 1200, Main.MouseWorld.Y, 12f, 0f, mod.ProjectileType("AquaTyphoon"), damage, knockBack, player.whoAmI);
            });
        }
예제 #7
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Xenomite Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string XenoEffect = ClickerCompat.RegisterClickEffect(mod, "XenoEffect", "Xeno Splash", "Damage from xenomite splash", 7, new Color(55, 200, 60, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Mod redemption = ModLoader.GetMod("Redemption");
                for (int i = 0; i < 10; i++)
                {
                    //Projectile.NewProjectile(Main.MouseWorld + 20 * Vector2.UnitX.RotatedByRandom(MathHelper.TwoPi), Vector2.Zero, redemption.ProjectileType<XenoYoyoShard>, (int)(damage * 0.5f), 0f, Main.myPlayer);
                    Projectile.NewProjectile(new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y), new Vector2(Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-3f, 3f)), redemption.ProjectileType("XenoYoyoShard"), (int)(damage * 0.2f), 0f, Main.myPlayer);
                }
            });
        }
예제 #8
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            //DisplayName.SetDefault("True Arthur's Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
            string BorealEffect = ClickerCompat.RegisterClickEffect(mod, "Boreal", "Boreal Spikes", "Shoot a boreal spiges", 5, new Color(61, 49, 41, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Mod clickerClass = ModLoader.GetMod("ClickerClass");
                //Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, ModContent.ProjectileType<LordsClickerProSuper>(), damage, knockBack, player.whoAmI);

                for (int i = 0; i < 8; i++)
                {
                    Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), ModContent.ProjectileType <BorealNeedle>(), (int)(damage * 0.1f), knockBack, player.whoAmI);
                }
            });
        }
예제 #9
0
 public override void SetStaticDefaults()
 {
     ClickerCompat.RegisterClickerWeapon(this);
     //DisplayName.SetDefault("The Bejeweled Clicker");
     Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
     string BeeEffect = ClickerCompat.RegisterClickEffect(mod, "Bee", "Not the bees!", "Shoots bees", 8, new Color(255, 255, 0, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
     {
         Mod clickerClass = ModLoader.GetMod("ClickerClass");
         //Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, ModContent.ProjectileType<LordsClickerProSuper>(), damage, knockBack, player.whoAmI);
         Main.PlaySound(SoundID.Item97.SoundId, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
         for (int i = 0; i < 8; i++)
         {
             Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, Main.rand.NextFloat(-5f, 5f), Main.rand.NextFloat(-5f, 5f), ProjectileID.Bee, (int)(damage * 0.2f), knockBack, player.whoAmI);
         }
     });
 }
예제 #10
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            //DisplayName.SetDefault("True Arthur's Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string Terra = ClickerCompat.RegisterClickEffect(mod, "TerraDamage", "Terra Damage", "Shoots 4 terra cursors with 50% weapon damage", 7, new Color(100, 225, 0, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Item1.SoundId, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                for (int k = 0; k < 4; k++)
                {
                    Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-4f, 4f), mod.ProjectileType("TerraClickerPro"), (int)(damage * 0.5f), knockBack, player.whoAmI);
                }
            });
        }
예제 #11
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("True Umbral Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string ShadowLashClone = ClickerCompat.RegisterClickEffect(mod, "ShadowLash", "True Shadow Lash", "Causes a burst of 6 shadow projecttiles to seek out nearby enemies", 8, new Color(150, 100, 255, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 103);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                for (int k = 0; k < 6; k++)
                {
                    Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-3f, 3f), clickerClass.ProjectileType("UmbralClickerPro"), (int)(damage * 0.5f), knockBack, player.whoAmI);
                }
            });
        }
예제 #12
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Old One`s Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string Terra = ClickerCompat.RegisterClickEffect(mod, "BetsyExplosion", "Betsy`s Explosion", "Shoots 4 Batsy`s Wraths with 75% weapon damage", 8, new Color(190, 60, 70, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.DD2_WyvernScream.SoundId, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                Projectile.NewProjectile(new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y), new Vector2(-1f, 2f), 711, (int)(damage * 0.75f), knockBack, player.whoAmI);
                Projectile.NewProjectile(new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y), new Vector2(-0.5f, 3f), 711, (int)(damage * 0.75f), knockBack, player.whoAmI);
                Projectile.NewProjectile(new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y), new Vector2(0.5f, 3f), 711, (int)(damage * 0.75f), knockBack, player.whoAmI);
                Projectile.NewProjectile(new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y), new Vector2(1f, 2f), 711, (int)(damage * 0.75f), knockBack, player.whoAmI);
            });
        }
예제 #13
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Z-Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string ShadowLashClone = ClickerCompat.RegisterClickEffect(mod, "ZClick", "Z-Click", "Summon a lot of damaging clicks", 1, new Color(0, 0, 255, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 103);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                for (int i = 0; i < 5; i++)
                {
                    Projectile.NewProjectile(Main.MouseWorld + 20 * Vector2.UnitX.RotatedByRandom(MathHelper.TwoPi), Vector2.Zero, ModContent.ProjectileType <ZClickerPro>(), (int)(damage * 0.5f), 0f, Main.myPlayer);
                }
            });
        }
예제 #14
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("The Bejeweled Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
            string BorealEffect = ClickerCompat.RegisterClickEffect(mod, "Diamond", "DIAMONDS!", "Shoots diamonds with Migas Debuff", 5, new Color(255, 255, 0, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Mod clickerClass = ModLoader.GetMod("ClickerClass");
                Main.PlaySound(SoundID.CoinPickup, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
                //Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, 0f, 0f, ModContent.ProjectileType<LordsClickerProSuper>(), damage, knockBack, player.whoAmI);

                for (int i = 0; i < 8; i++)
                {
                    Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y, Main.rand.NextFloat(-10f, 10f), Main.rand.NextFloat(-10f, 10f), ModContent.ProjectileType <ClickDiamond>(), (int)(damage * 0.2f), knockBack, player.whoAmI);
                }
            });
        }
예제 #15
0
        public override void SetStaticDefaults()
        {
            //Here we register an optional border/outline texture aswell
            ClickerCompat.RegisterClickerWeapon(this, borderTexture: "ClickerAddon/Items/CrossContent/Example/Weapons/Clickers/ExampleClickerWithEffect_Outline");

            //We want to cache the result to make accessing it easier in other places. For the purpose of the example, we don't
            //(Make sure to unload the saved string again in Mod.Unload()!)
            string uniqueName = ClickerCompat.RegisterClickEffect(mod, "ExampleEffect", "Mini Clickers", "Creates 5 Mini Clickers around the cursor for 20% damage", 6, Color.Red, delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Chat, (int)position.X, (int)position.Y, -1);
                for (int i = 0; i < 5; i++)
                {
                    Projectile.NewProjectile(Main.MouseWorld + 20 * Vector2.UnitX.RotatedByRandom(MathHelper.TwoPi), Vector2.Zero, mod.ProjectileType("MiniClicker"), (int)(damage * 0.2f), 0f, Main.myPlayer);
                }
            });

            DisplayName.SetDefault("Example Clicker With Effect");
        }
예제 #16
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Omnicide`s Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string DeathRay = ClickerCompat.RegisterClickEffect(mod, "DeathRay", "Death Ray", "Deadly rays fall from the sky", 7, new Color(21, 153, 16, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                //Main.PlaySound(SoundID.Item, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 103);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");

                Projectile.NewProjectile(Main.MouseWorld.X - 200, Main.MouseWorld.Y - 400, 0f, 15f, mod.ProjectileType("DeathRay"), damage, knockBack, player.whoAmI);
                Projectile.NewProjectile(Main.MouseWorld.X - 100, Main.MouseWorld.Y - 400, 0f, 15f, mod.ProjectileType("DeathRay"), damage, knockBack, player.whoAmI);
                Projectile.NewProjectile(Main.MouseWorld.X, Main.MouseWorld.Y - 400, 0f, 15f, mod.ProjectileType("DeathRay"), damage, knockBack, player.whoAmI);
                Projectile.NewProjectile(Main.MouseWorld.X + 100, Main.MouseWorld.Y - 400, 0f, 15f, mod.ProjectileType("DeathRay"), damage, knockBack, player.whoAmI);
                Projectile.NewProjectile(Main.MouseWorld.X + 200, Main.MouseWorld.Y - 400, 0f, 15f, mod.ProjectileType("DeathRay"), damage, knockBack, player.whoAmI);
            });
        }
예제 #17
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this, borderTexture: "ClickerAddon/Items/CrossContent/Calamity/Weapons/Clickers/VictideClicker_Outline");
            //DisplayName.SetDefault("Xenomite Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string SeaSplash = ClickerCompat.RegisterClickEffect(mod, "SeaSplash", "Sea Splash", "Star-shaped shoots shells", 10, new Color(160, 210, 160, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Vector2 vec = new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y);

                Projectile.NewProjectile(vec, new Vector2(6f, 0f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(6f, 6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(0f, 6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-6f, 6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-6f, 0f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-6f, -6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(0f, -6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(6f, -6f), mod.ProjectileType("SeashellPro"), damage, 0f, Main.myPlayer);
            });
        }
예제 #18
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            DisplayName.SetDefault("Fishron`s Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string Terra = ClickerCompat.RegisterClickEffect(mod, "MiniSharkrones", "Mini Sharkrones", "Shot 4 Mini Sharkrones to the target", 8, new Color(32, 224, 144, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Main.PlaySound(SoundID.Roar, (int)Main.MouseWorld.X, (int)Main.MouseWorld.Y, 5);
                Mod clickerClass = ModLoader.GetMod("ClickerClass");


                Vector2 pos = Main.MouseWorld;

                int index = -1;
                for (int i = 0; i < 200; i++)
                {
                    NPC npc = Main.npc[i];
                    if (npc.active && npc.CanBeChasedBy() && Vector2.DistanceSquared(pos, npc.Center) < 400f * 400f && Collision.CanHit(pos, 1, 1, npc.Center, 1, 1))
                    {
                        index = i;
                    }
                }
                for (int i2 = 0; i2 < 4; i2++)
                {
                    Vector2 pos2 = Main.MouseWorld + new Vector2(Main.rand.NextFloat(-50f, 50f), Main.rand.NextFloat(-10f, 10f));
                    if (index != -1)
                    {
                        Vector2 vector = Main.npc[index].Center - pos2;
                        float speed    = 3f;
                        float mag      = (float)Math.Sqrt(vector.X * vector.X + vector.Y * vector.Y);
                        if (mag > speed)
                        {
                            mag = speed / mag;
                        }
                        vector *= mag;
                        Projectile.NewProjectile(pos2.X, pos2.Y, vector.X * 3, vector.Y * 3, ProjectileID.MiniSharkron, damage, knockBack, player.whoAmI);
                    }
                }
            });
        }
예제 #19
0
        public override void SetStaticDefaults()
        {
            ClickerCompat.RegisterClickerWeapon(this);
            //DisplayName.SetDefault("Xenomite Clicker");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");

            string CursedRootEffect = ClickerCompat.RegisterClickEffect(mod, "CursedRoot", "Cursed Root", "Star-shaped shoots roots", 7, new Color(160, 210, 160, 0), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                Mod redemption = ModLoader.GetMod("Redemption");
                Vector2 vec    = new Vector2(Main.MouseWorld.X, Main.MouseWorld.Y);

                Projectile.NewProjectile(vec, new Vector2(9f, 0f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(9f, 9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(0f, 9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-9f, 9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-9f, 0f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(-9f, -9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(0f, -9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
                Projectile.NewProjectile(vec, new Vector2(9f, -9f), redemption.ProjectileType("BloodrootRoot"), damage, 0f, Main.myPlayer);
            });
        }
예제 #20
0
 public override void SetStaticDefaults()
 {
     ClickerCompat.RegisterClickerWeapon(this);
     //DisplayName.SetDefault("Old One`s Clicker");
     Tooltip.SetDefault("[c/FF0000:CHEAT ONLY]");
 }
예제 #21
0
 public override void SetStaticDefaults()
 {
     ClickerCompat.RegisterClickerWeapon(this);
     //DisplayName.SetDefault("True Arthur's Clicker");
     Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
 }
예제 #22
0
        public override void SetStaticDefaults()
        {
            DisplayName.SetDefault("Clicker of the Cult");
            Tooltip.SetDefault("Click on an enemy within range and sight to damage them");
            ClickerCompat.RegisterClickerWeapon(this);

            string SuperClone = ClickerCompat.RegisterClickEffect(mod, "CultClick", "Click of Cult", "Creates random Lunatic Cultist`s attack that deals damage", 10, new Color(1, 66, 149), delegate(Player player, Vector2 position, int type, int damage, float knockBack)
            {
                int attack     = Main.rand.Next(4);
                Vector2 center = Main.MouseWorld;
                if (attack == 1)
                {
                    //Vector2 vec2_1 = ()
                    int index = -1;
                    for (int i = 0; i < 200; i++)
                    {
                        NPC npc = Main.npc[i];
                        if (npc.active && npc.CanBeChasedBy() && Vector2.DistanceSquared(center, npc.Center) < 400f * 400f && Collision.CanHit(center, 1, 1, npc.Center, 1, 1))
                        {
                            index = i;
                        }
                    }
                    if (index != -1)
                    {
                        for (int i = 0; i < 3; i++)
                        {
                            Vector2 vec2_1 = (Main.npc[index].Center - center).RotatedByRandom(Math.PI / 6.0);
                            vec2_1.Normalize();
                            Vector2 vec2_2 = vec2_1 * Utils.NextFloat(Main.rand, 6f, 10f);
                            Projectile.NewProjectile(center, vec2_2, mod.ProjectileType("CultistFireball"), (int)(damage * 0.5f), knockBack, player.whoAmI);
                        }
                    }
                }
                else if (attack == 2)
                {
                    Main.PlaySound(SoundID.Item121, Main.MouseWorld);
                    center.Y -= 100;
                    Projectile.NewProjectile(center, Vector2.Zero, mod.ProjectileType("CultistLightningOrb"), damage, knockBack, player.whoAmI);
                }
                else if (attack == 3)
                {
                    int index = -1;
                    for (int i = 0; i < 200; i++)
                    {
                        NPC npc = Main.npc[i];
                        if (npc.active && npc.CanBeChasedBy() && Vector2.DistanceSquared(center, npc.Center) < 400f * 400f && Collision.CanHit(center, 1, 1, npc.Center, 1, 1))
                        {
                            index = i;
                        }
                    }
                    if (index != -1)
                    {
                        for (int i = 0; i < 3; i++)
                        {
                            Vector2 vec2_1 = Main.npc[index].Center - center;
                            vec2_1.Normalize();
                            Vector2 vec2_2 = vec2_1 * 4.25f;
                            Projectile.NewProjectile(center, vec2_2, mod.ProjectileType("CultistIceMist"), damage, knockBack, player.whoAmI);
                        }
                    }
                }
            });
        }