Beispiel #1
0
 public void DefenseBoost(SGAPlayer sgaply)
 {
     if (sgaply.tidalCharm >= 2)
     {
         Player player = sgaply.player;
     }
 }
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            sgaplayer.illuminantSet.Item1 += 1;
            sgaplayer.MaxCooldownStacks   += 1;
        }
Beispiel #3
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            if (sgaplayer.NoHitCharmTimer > 180)
            {
                if (sgaplayer.NoHitCharmTimer < 100000)
                {
                    sgaplayer.NoHitCharmTimer = 1000000;
                    SoundEffectInstance sound = Main.PlaySound(SoundID.DD2_PhantomPhoenixShot, player.MountedCenter);
                    if (sound != null)
                    {
                        sound.Pitch = 0.5f;
                    }

                    sound = Main.PlaySound(29, (int)player.MountedCenter.X, (int)player.MountedCenter.Y, 105, 1f, -0.6f);
                    if (sound != null)
                    {
                        sound.Pitch = 0.75f;
                    }

                    for (float f = 0; f < MathHelper.TwoPi; f += MathHelper.TwoPi / 12f)
                    {
                        Vector2 offset = f.ToRotationVector2();
                        int     dust   = Dust.NewDust(player.MountedCenter + (offset * 16f), 0, 0, DustID.Vortex);
                        Main.dust[dust].scale     = 1.5f;
                        Main.dust[dust].noGravity = true;
                        Main.dust[dust].velocity  = f.ToRotationVector2() * 6f;
                    }
                }
                sgaplayer.NoHitCharm = true;
                player.shadowDodge   = false;
                player.blackBelt     = false;
            }
        }
Beispiel #4
0
        protected void PostAccessoryUpdate(SGAPlayer sgaplayer)
        {
            Player player = sgaplayer.player;

            //Main.NewText(sgaplayer.energyShieldAmmountAndRecharge.Item2);
            if (sgaplayer.GetEnergyShieldAmmountAndRecharge.Item2 > 0)
            {
                if (sgaplayer.energyShieldAmmountAndRecharge.Item3 < 1 && !sgaplayer.Shieldbreak)
                {
                    sgaplayer.ShieldRecharge();
                    if (sgaplayer.energyShieldAmmountAndRecharge.Item3 == 0)
                    {
                        sgaplayer.StartShieldRecharge();
                    }

                    float rechargerate = (sgaplayer.jellybruSet ? 600f : 180f);
                    float multime      = 1f;
                    PlayerHooks.NaturalLifeRegen(player, ref multime);
                    rechargerate /= multime;

                    sgaplayer.energyShieldAmmountAndRecharge.Item1 = (int)MathHelper.Clamp((int)Math.Ceiling(sgaplayer.energyShieldAmmountAndRecharge.Item1 + (sgaplayer.energyShieldAmmountAndRecharge.Item2 / rechargerate)), 0, sgaplayer.energyShieldAmmountAndRecharge.Item2);
                }
            }

            if (sgaplayer.energyShieldReservation > 0)
            {
                int percent = (int)(player.statLifeMax2 * (1f - sgaplayer.energyShieldReservation));
                if (player.statLife > percent)
                {
                    player.statLife = percent;
                }
            }
        }
Beispiel #5
0
        public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
        {
            //base.Shoot(player,ref position,ref speedX,ref speedY,ref type,ref damage,ref knockBack);
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            sgaplayer.ammoLeftInClip -= 1;
            if (player.altFunctionUse == 2)
            {
                damage = (int)(damage * 0.5f);
                int target2 = Idglib.FindClosestTarget(0, position, new Vector2(0, 0));
                NPC them    = Main.npc[target2];
                Vector2 where = them.Center - position;
                where.Normalize();
                Vector2 perturbedSpeed = new Vector2(where.X, where.Y) * (new Vector2(speedX, speedY).Length() * 1.25f);
                Main.PlaySound(SoundID.Item38, player.Center);
                int thisoned = Projectile.NewProjectile(position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockBack, Main.myPlayer);
            }
            if (sgaplayer.ammoLeftInClip == 0 || forcedreload)
            {
                player.itemTime      = 40;
                player.itemAnimation = 40;
                int thisone = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("TheRevolverReloading"), 0, knockBack, Main.myPlayer, 0.0f, 0f);
                return(!forcedreload);
            }
            return(sgaplayer.ammoLeftInClip > 0);
        }
        public static void SetBonus(SGAPlayer sgaplayer)
        {
            if (sgaplayer.illuminantSet.Item1 > 0)
            {
                Player player = sgaplayer.player;

                Lighting.AddLight(player.MountedCenter, Color.HotPink.ToVector3() * (0.4f + (float)Math.Sin(Main.GlobalTime * 3f) * 0.3f) * sgaplayer.illuminantSet.Item2);

                if (sgaplayer.illuminantSet.Item1 > 4)
                {
                    //Main.NewText(sgaplayer.illuminantSet.Item2);
                    player.BoostAllDamage(sgaplayer.activestacks * 0.04f, sgaplayer.activestacks * 2);
                    player.minionDamage += sgaplayer.activestacks * 0.02f;

                    sgaplayer.actionCooldownRate -= 0.20f;

                    for (int i = 3; i < 8 + player.extraAccessorySlots; i++)
                    {
                        Item thisitem = player.armor[i];
                        if (thisitem.prefix > 0)
                        {
                            int itemtype = thisitem.type;
                            thisitem.type = ItemID.None;
                            player.VanillaUpdateEquip(thisitem);
                            bool blank1 = false; bool blank2 = false; bool blank3 = false;
                            //PlayerHooks.UpdateEquips(player, ref blank1, ref blank2, ref blank3);
                            thisitem.type = itemtype;
                        }
                    }
                }
            }
            sgaplayer.illuminantSet.Item2 = 0;
        }
Beispiel #7
0
        public override bool UseItem(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer <SGAPlayer>();

            sgaplayer.Redmanastar += 1;
            return(true);
        }
Beispiel #8
0
        public override void ModifyTooltips(List <TooltipLine> tooltips)
        {
            SGAPlayer sgaply = Main.LocalPlayer.SGAPly();

            if (sgaply.tf2emblemLevel > 0)
            {
                tooltips.Add(new TooltipLine(mod, "SoldierLine", "Tier 1: Damage Increased by 20%, Reload and firing speed are faster per level"));
            }
            if (sgaply.tf2emblemLevel > 1)
            {
                tooltips.Add(new TooltipLine(mod, "SoldierLine", "Tier 2: Damage Increased by 50%; rockets explode larger and move faster per level"));
            }
            if (sgaply.tf2emblemLevel > 2)
            {
                tooltips.Add(new TooltipLine(mod, "SoldierLine", "Tier 3: Damage Increased by 100%; Rockets slow targets, gain a firing speed boost when you rocket jump"));
            }
            if (sgaply.tf2emblemLevel > 3)
            {
                tooltips.Add(new TooltipLine(mod, "SoldierLine", "Tier 4: Damage Increased by 300%; Rocket jumping restores WingTime, slow is stronger, direct hits against slowed enemies will always crit"));
            }
            Color c = Main.hslToRgb((float)(Main.GlobalTime / 4) % 1f, 0.4f, 0.6f);

            tooltips.Add(new TooltipLine(mod, "RIP Rick May", Idglib.ColorText(c, "'He didn't fly into heaven, he rocket jumped into heaven'")));
            c = Main.hslToRgb((float)((Main.GlobalTime + 5.77163f) / 4) % 1f, 0.35f, 0.65f);
            tooltips.Add(new TooltipLine(mod, "RIP Rick May", Idglib.ColorText(c, "RIP Rick May: 1940-2020")));
        }
Beispiel #9
0
        public override bool CanUseItem(Player player)
        {
            if (player.ownedProjectileCounts[mod.ProjectileType("TheRevolverReloading")] > 0)
            {
                return(false);
            }
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            altfired          = player.altFunctionUse == 2 ? true : false;
            forcedreload      = false;
            item.noUseGraphic = false;

            if (altfired)
            {
                item.useAnimation = 40;
                item.useTime      = 40;
                item.UseSound     = SoundID.Item38;
            }
            else
            {
                item.useTime      = 30;
                item.useAnimation = 30;
                item.UseSound     = SoundID.Item38;
            }
            if (sgaplayer.ammoLeftInClip < 1)
            {
                item.UseSound = SoundID.Item98; forcedreload = true; item.useTime = 4; item.useAnimation = 4; item.noUseGraphic = true;
            }
            return(true);
        }
Beispiel #10
0
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            sgaplayer.UseTimeMul += 0.08f;
            sgaplayer.DoTResist  *= 0.75f;
        }
Beispiel #11
0
        public override void ModifyTooltips(List <TooltipLine> tooltips)
        {
            SGAPlayer sgaplayer = Main.LocalPlayer.GetModPlayer <SGAPlayer>();

            if (sgaplayer.Redmanastar < 1)
            {
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Your magic attacks have a small chance to inflict 'On-Fire!'"));
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Usable right away"));
            }
            if (sgaplayer.Redmanastar == 1)
            {
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "You instead inflict 'Thermal Blaze' instead of 'On Fire!'"));
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Usable after Sharkvern is defeated."));
            }
            if (sgaplayer.Redmanastar == 2)
            {
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "You instead inflict 'Daybroken' instead of 'Thermal Blaze'"));
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Usable after Luminite Wraith is defeated."));
            }
            if (sgaplayer.Redmanastar > 2)
            {
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Its power is at its max, and can no longer help you gain strength"));
            }
            else
            {
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "Rare chance to stripe enemy immunity to the above debuff on magic hit."));
                tooltips.Add(new TooltipLine(mod, "RedStarLine", "-Permanent Upgrade-"));
            }
        }
Beispiel #12
0
        public static void ActivateRagnorok(SGAPlayer sgaply)
        {
            if (sgaply.AddCooldownStack(60 * 150, 2))
            {
                sgaply.player.AddBuff(ModContent.BuffType <RagnarokBuff>(), (int)(120 * System.Math.Min(sgaply.player.lifeRegen, sgaply.player.lifeRegenTime * 0.01f)));
                SoundEffectInstance sound = Main.PlaySound(SoundID.DD2_EtherianPortalOpen, (int)sgaply.player.Center.X, (int)sgaply.player.Center.Y);
                if (sound != null)
                {
                    sound.Pitch = 0.85f;
                }

                SoundEffectInstance sound2 = Main.PlaySound(SoundID.Zombie, (int)sgaply.player.Center.X, (int)sgaply.player.Center.Y, 35);
                if (sound2 != null)
                {
                    sound2.Pitch = -0.5f;
                }

                for (int i = 0; i < 50; i += 1)
                {
                    int dust = Dust.NewDust(sgaply.player.Hitbox.TopLeft() + new Vector2(0, -8), sgaply.player.Hitbox.Width, sgaply.player.Hitbox.Height + 8, DustID.AncientLight);
                    Main.dust[dust].scale     = 2f;
                    Main.dust[dust].noGravity = true;
                    Main.dust[dust].velocity  = (sgaply.player.velocity * Main.rand.NextFloat(0.75f, 1f)) + Vector2.UnitX.RotatedBy(-MathHelper.PiOver2 + Main.rand.NextFloat(-1.2f, 1.2f)) * Main.rand.NextFloat(1f, 3f);
                }
            }
        }
Beispiel #13
0
        public override void Update(Player player, ref int buffIndex)
        {
            SGAPlayer sgaply = player.SGAPly();

            sgaply.valkyrieSet.Item3       = true;
            player.lifeRegenTime           = 0;
            player.lifeRegenCount          = 0;
            sgaply.apocalypticalChance[3] += 3;
            sgaply.ThrowingSpeed          += 0.4f;


            int dust = Dust.NewDust(player.Hitbox.TopLeft() + new Vector2(0, -8), player.Hitbox.Width, player.Hitbox.Height + 16, 36);

            Main.dust[dust].scale     = 3f;
            Main.dust[dust].noGravity = true;
            Main.dust[dust].alpha     = 240;
            Main.dust[dust].velocity  = (player.velocity * Main.rand.NextFloat(0.4f, 1.2f)) + Vector2.UnitX.RotatedBy(-MathHelper.PiOver2 + Main.rand.NextFloat(-0.6f, 0.6f)) * Main.rand.NextFloat(1f, 4f);

            dust = Dust.NewDust(player.Hitbox.TopLeft() + new Vector2((player.Hitbox.Width / 2) - 8, 4), 16, 0, DustID.AncientLight);
            Main.dust[dust].scale     = 1f;
            Main.dust[dust].noGravity = true;
            Main.dust[dust].alpha     = 240;
            Main.dust[dust].velocity  = (player.velocity * Main.rand.NextFloat(0.4f, 1.2f)) + Vector2.UnitX.RotatedBy(-MathHelper.PiOver2 + Main.rand.NextFloat(-0.6f, 0.6f)) * Main.rand.NextFloat(1f, 5f);

            dust = Dust.NewDust(player.Hitbox.TopLeft() + new Vector2((player.Hitbox.Width / 2) - 8, 4), 16, 0, 182);
            Main.dust[dust].scale     = 0.25f;
            Main.dust[dust].noGravity = true;
            Main.dust[dust].alpha     = 200;
            Main.dust[dust].fadeIn    = 1f;
            Main.dust[dust].velocity  = (player.velocity * Main.rand.NextFloat(0.75f, 1.2f)) + Vector2.UnitX.RotatedBy(-MathHelper.PiOver2 + Main.rand.NextFloat(-0.6f, 0.6f)) * Main.rand.NextFloat(0f, 1f);
        }
Beispiel #14
0
 private void SGAPlayer_PostPostUpdateEquipsEvent(SGAPlayer player)
 {
     if (!Main.dayTime && player.player.armor[2].type == ModContent.ItemType <ValkyrieLeggings>())
     {
         player.player.wingTimeMax = (int)(player.player.wingTimeMax * 1.15f);
     }
 }
Beispiel #15
0
        public static void SetBonus(SGAPlayer sgaplayer)
        {
            if (sgaplayer.jellybruSet)
            {
                Player player = sgaplayer.player;

                float thepercent = 0.5f;

                int percentLife = (int)((player.statLifeMax2) * thepercent);

                percentLife = (int)((percentLife * 2) * player.magicDamage);

                sgaplayer.energyShieldAmmountAndRecharge.Item2 += percentLife;
                //Main.NewText(sgaplayer.energyShieldReservation);
                sgaplayer.energyShieldReservation += (1f - sgaplayer.energyShieldReservation) * thepercent;

                sgaplayer.ShieldType = 1001;

                if (!sgaplayer.EnergyDepleted)
                {
                    Item itemxx = new Item();
                    itemxx.SetDefaults(ItemID.AnkhCharm);
                    bool falsebool = false; bool falsebool2 = false; bool falsebool3 = false;
                    player.VanillaUpdateAccessory(0, itemxx, false, ref falsebool, ref falsebool2, ref falsebool3);
                }
            }
        }
Beispiel #16
0
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            player.Throwing().thrownCrit     += 6;
            player.Throwing().thrownVelocity += 0.06f;
        }
Beispiel #17
0
        public override bool CanUseItem(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            altfired          = player.altFunctionUse == 2 ? true : false;
            forcedreload      = false;
            item.noUseGraphic = false;

            if (altfired && sgaplayer.ammoLeftInClip > 0)
            {
                item.useAnimation = 2000;
                item.useTime      = 10;
                item.UseSound     = SoundID.Item38;
            }
            else
            {
                item.useTime      = 40;
                item.useAnimation = 40;
                item.UseSound     = SoundID.Item38;
                if (sgaplayer.ammoLeftInClip < 1)
                {
                    item.UseSound = SoundID.Item98; forcedreload = true; item.useTime = 4; item.useAnimation = 4; item.noUseGraphic = true;
                }
            }
            return(true);
        }
Beispiel #18
0
        public static void SetBonus(SGAPlayer sgaplayer)
        {
            sgaplayer.player.powerrun = true;

            if (sgaplayer.ShieldType == 0)
            {
                sgaplayer.ShieldType = 100;
            }

            if (sgaplayer.player.velocity.Y > 0.50f)
            {
                sgaplayer.player.maxFallSpeed += 5;
            }

            if (sgaplayer.jungleTemplarSet.Item2)
            {
                sgaplayer.player.Throwing().thrownDamage *= sgaplayer.techdamage;

                if (sgaplayer.ConsumeElectricCharge(8, 300, true))
                {
                    sgaplayer.player.shinyStone = true;
                }
            }

            if (sgaplayer.timer > 300 && sgaplayer.player.lavaTime > 120 && !sgaplayer.ConsumeElectricCharge(1000, 0, false, false))
            {
                sgaplayer.player.AddBuff(ModContent.BuffType <Buffs.LavaBurn>(), 30 * (Main.expertMode ? 1 : 2));
            }
        }
Beispiel #19
0
		public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
		{

			Player player = Main.player[projectile.owner];
			SGAPlayer modplayer = player.GetModPlayer<SGAPlayer>();

				int buffid = player.FindBuffIndex(mod.BuffType("MatrixBuff"));
				float timeleft = 0f;
				if (buffid > -1)
				timeleft = (float)player.buffTime[buffid];


				for (int i = 0; i < 360; i += 360/12)
				{
					float angle = MathHelper.ToRadians(i);
					Vector2 hereas = new Vector2((float)Math.Cos(angle), (float)Math.Sin(angle)) * 256;

					Vector2 drawPos = ((hereas * projectile.scale)+ projectile.Center) - Main.screenPosition;
					Color glowingcolors1 = Color.White;//Main.hslToRgb((float)lightColor.R*0.08f,(float)lightColor.G*0.08f,(float)lightColor.B*0.08f);
					spriteBatch.Draw(Main.blackTileTexture, drawPos, new Rectangle(0, 0, 80, 10), glowingcolors1 * projectile.scale, projectile.rotation+ MathHelper.ToRadians(i), new Vector2(80, 5), new Vector2(1, 1) * projectile.scale, SpriteEffects.None, 0f);

				}

			Texture2D tex = ModContent.GetTexture("SGAmod/MatrixArrow");
			spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, Color.White*projectile.scale, MathHelper.ToRadians(timeleft * (360 / 60)) + MathHelper.ToRadians(-90), new Vector2(0, tex.Height / 2), new Vector2(2, 2)*projectile.scale, SpriteEffects.None, 0f) ;
			spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, Color.White*projectile.scale, MathHelper.ToRadians(timeleft * (360 / 60)) / 60f + MathHelper.ToRadians(-90), new Vector2(0, tex.Height / 2), new Vector2(1, 1) * projectile.scale, SpriteEffects.None, 0f) ;


			return false;
		}
        public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
        {
            /*int projcount=player.ownedProjectileCounts[mod.ProjectileType("SnowfallCloud")]+player.ownedProjectileCounts[mod.ProjectileType("SnowCloud")];
             *
             * if (projcount>1){
             * for (int i = 0; i < Main.maxProjectiles; i++)
             * {
             *      Projectile him=Main.projectile[i];
             *      if (him.type==mod.ProjectileType("SnowfallCloud") || him.type==mod.ProjectileType("SnowCloud")){
             *      if (him.active && him.owner==projectile.owner){
             *      him.Kill();
             *      break;
             * }}}}*/

            SGAPlayer.LimitProjectiles(player, 1, new ushort[] { (ushort)mod.ProjectileType("SnowfallCloud"), (ushort)mod.ProjectileType("SnowCloud") });

            int         theproj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SnowfallCloud"), damage, knockBack, player.whoAmI);
            float       num12   = (float)Main.mouseX + Main.screenPosition.X;
            float       num13   = (float)Main.mouseY + Main.screenPosition.Y;
            HalfVector2 half    = new HalfVector2(num12, num13);

            Main.projectile[theproj].ai[0]     = ReLogic.Utilities.ReinterpretCast.UIntAsFloat(half.PackedValue);
            Main.projectile[theproj].netUpdate = true;
            return(false);
        }
Beispiel #21
0
        public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
        {
            SGAPlayer sgaplay = player.GetModPlayer <SGAPlayer>();

            if (player.altFunctionUse == 2)
            {
                sgaplay.DefenseFrame += 1;
                sgaplay.DefenseFrame  = sgaplay.DefenseFrame % 5;
                player.itemTime      /= 4;
                player.itemAnimation /= 4;
            }
            else
            {
                DoTurn(player);
                int fireangle = sgaplay.DefenseFrame;
                if (player.direction < 0)
                {
                    fireangle = 8 - fireangle;
                }
                int playerdic = player.direction;
                //Main.PlaySound(SoundID.Item11, player.position);
                int ittaz = NonStationaryDefenseHolding.ShootFromCannon((int)player.Center.X + (playerdic * 24), (int)player.Center.Y, fireangle, cannontypeitem, cannontypeproj, damage, knockBack, player.whoAmI);
                if (ittaz > -1)
                {
                    Main.projectile[ittaz].trap      = true;
                    Main.projectile[ittaz].ranged    = false;
                    Main.projectile[ittaz].netUpdate = true;
                    IdgProjectile.Sync(ittaz);
                }
            }

            return(false);
        }
Beispiel #22
0
        public override void UpdateAccessory(Player player, bool hideVisual)
        {
            SGAPlayer sgaplayer = player.GetModPlayer <SGAPlayer>();

            int ammotype = (int)sgaplayer.myammo;

            if (ammotype > 0)
            {
                Item ammo2 = new Item();
                ammo2.SetDefaults(ammotype);
                if (player.CountItem(ammotype) > 0)
                {
                    player.wingTimeMax = 100 + ammo2.damage;

                    Vector2 velo = new Vector2(Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(10f, 12f));


                    velo = velo.RotatedBy(MathHelper.ToRadians(player.velocity.X * 2f));

                    if ((sgaplayer.timer % (player.wingTime > 0 ? 3 : 8) == 0 || sgaplayer.timer % (player.wingTime > 0 ? 6 : 11) == 0) && player.controlJump)
                    {
                        player.ConsumeItem(ammo2.type);
                        sgaplayer.JoyrideShake = 6;
                        int thisoned = Projectile.NewProjectile(player.Center.X + player.direction * -12, player.Center.Y, velo.X, velo.Y, ProjectileID.Bullet, (int)((float)(ammo2.damage * 1.5f) * player.rangedDamage * player.bulletDamage), ammo2.knockBack, Main.myPlayer);
                    }
                }
            }
            else
            {
                player.wingTimeMax = 0;
                player.wings       = 0;
                player.wingTime    = 0;
            }
            player.GetModPlayer <SGAPlayer>().CustomWings = 1;
        }
        public override void Update(Player player, ref int buffIndex)
        {
            float gg = (float)Boost(player);

            if (player.HeldItem != null)
            {
                SGAPlayer sgaply = player.SGAPly();
                player.SGAPly().apocalypticalStrength += gg * 0.25f;
                if (player.HeldItem.melee)
                {
                    sgaply.apocalypticalChance[0] += gg;
                    return;
                }
                if (player.HeldItem.ranged)
                {
                    sgaply.apocalypticalChance[1] += gg;
                    return;
                }
                if (player.HeldItem.magic)
                {
                    sgaply.apocalypticalChance[2] += gg;
                    return;
                }
                player.SGAPly().apocalypticalChance[3] += gg;
            }
        }
Beispiel #24
0
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            player.meleeSpeed  += 0.16f;
            player.meleeDamage += 0.16f;
        }
Beispiel #25
0
        public static void ActivateHungerOfFames(SGAPlayer sgaply)
        {
            if (sgaply.AddCooldownStack(60 * 60))
            {
                sgaply.player.AddBuff(ModContent.BuffType <FamesHungerBuff>(), 300);
                SoundEffectInstance sound = Main.PlaySound(SoundID.DD2_FlameburstTowerShot, (int)sgaply.player.Center.X, (int)sgaply.player.Center.Y);
                if (sound != null)
                {
                    sound.Pitch = 0.5f;
                }

                SoundEffectInstance sound2 = Main.PlaySound(SoundID.Zombie, (int)sgaply.player.Center.X, (int)sgaply.player.Center.Y, 35);
                if (sound2 != null)
                {
                    sound2.Pitch = -0.5f;
                }

                for (int i = 0; i < 50; i += 1)
                {
                    int dust = Dust.NewDust(sgaply.player.Hitbox.TopLeft() + new Vector2(0, -8), sgaply.player.Hitbox.Width, sgaply.player.Hitbox.Height + 8, ModContent.DustType <Dusts.AcidDust>());
                    Main.dust[dust].scale     = 2f;
                    Main.dust[dust].noGravity = true;
                    Main.dust[dust].velocity  = (sgaply.player.velocity * Main.rand.NextFloat(0.75f, 1f)) + Vector2.UnitX.RotatedBy(-MathHelper.PiOver2 + Main.rand.NextFloat(-1.2f, 1.2f)) * Main.rand.NextFloat(1f, 3f);
                }
            }
        }
        public override void UpdateVanity(Player player, EquipType type)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            sgaplayer.illuminantSet.Item2 += 1;
            sgaplayer.armorglowmasks[0]    = "SGAmod/Items/Armors/Illuminant/" + Name + "_Head";
            sgaplayer.armorglowcolor[0]    = ArmorGlow;
        }
Beispiel #27
0
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            player.meleeSpeed  += 0.20f;
            player.meleeDamage += 0.16f;
            sgaplayer.apocalypticalChance[0] += 1.0;
        }
Beispiel #28
0
        public override void UpdateEquip(Player player)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            player.Throwing().thrownDamage += 0.06f;
            player.moveSpeed   += 1.15f;
            player.accRunSpeed += 1.5f;
        }
Beispiel #29
0
        public override void UpdateVanity(Player player, EquipType type)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            if (!Main.dedServ)
            {
                sgaplayer.armorglowmasks[1] = "SGAmod/Items/GlowMasks/" + Name + "_Glow";
            }
        }
Beispiel #30
0
        public override void UpdateVanity(Player player, EquipType type)
        {
            SGAPlayer sgaplayer = player.GetModPlayer(mod, typeof(SGAPlayer).Name) as SGAPlayer;

            sgaplayer.armorglowmasks[1] = "SGAmod/Items/GlowMasks/" + Name + "_Glow";
            sgaplayer.armorglowmasks[4] = "SGAmod/Items/GlowMasks/" + Name + "_GlowFemale";
            sgaplayer.armorglowcolor[1] = ArmorGlow;
            sgaplayer.armorglowcolor[4] = ArmorGlow;
        }