Exemplo n.º 1
0
        public override bool UseItem(Player player)
        {
            CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
            for (int h = 0; h < 1; h++)
            {
                Vector2 vel = new Vector2(0, -1);
                vel *= 0f;
                Projectile.NewProjectile(player.Center.X, player.Center.Y, vel.X, vel.Y, mod.ProjectileType("Drainer"), 0, 0, player.whoAmI);
            }
            player.Hurt(PlayerDeathReason.LegacyEmpty(), 2, 0, false, false, false, -1);
            CalamityPlayer.stress += 2500;
            player.statLife        = (player.statLife - player.statLifeMax2 / 4);
            PlayerDeathReason damageSource = PlayerDeathReason.ByOther(13);

            if (Main.rand.Next(2) == 0)
            {
                damageSource = PlayerDeathReason.ByOther(player.Male ? 14 : 15);
            }
            if (player.statLife <= 0)
            {
                player.KillMe(damageSource, 1.0, 0, false);
            }
            player.lifeRegenCount = 0;
            player.lifeRegenTime  = 0;
            return(true);
        }
Exemplo n.º 2
0
 private void CalamityBoost(Player player)
 {
     CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
     CalamityPlayer.throwingCrit += p;
 }
Exemplo n.º 3
0
 public override bool UseItem(Player player)
 {
     CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
     CalamityPlayer.rage = CalamityPlayer.rageMax;
     return(true);
 }
Exemplo n.º 4
0
 public override bool UseItem(Player player)
 {
     CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
     CalamityPlayer.stress = 10000;
     return(true);
 }
Exemplo n.º 5
0
 private void RnAReset(Player player)
 {
     CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
     CalamityPlayer.rage       = 0;
     CalamityPlayer.adrenaline = 0;
 }
Exemplo n.º 6
0
 private void CalamityBoost(Player player)
 {
     CalamityMod.CalPlayer.CalamityPlayer CalamityPlayer = player.GetModPlayer <CalamityMod.CalPlayer.CalamityPlayer>();
     CalamityPlayer.throwingDamage += 3f;
 }