1 - More prehm mage changes.

This commit is contained in:
Andrew Marheine committed 2021-11-28 18:13:01 -06:00
1 parent 7ee0e2be1b
commit 730e8439f0
30 files changed
+77 -51

No files matched your search

+2
View File
@@ -5007,6 +5007,8 @@ namespace CalamityMod.CalPlayer
case ProjectileID.TheRottedFork:
case ProjectileID.TheMeatball:
case ProjectileID.CrimsonYoyo:
case ProjectileID.BloodCloudRaining:
case ProjectileID.BloodRain:
target.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
break;
+1 -1
View File
@@ -417,7 +417,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.LightsBane || item.type == ItemID.NightsEdge || item.type == ItemID.TrueNightsEdge || item.type == ItemID.BallOHurt || item.type == ItemID.CorruptYoyo)
EditTooltipByName("Knockback", (line) => line.text += "\nInflicts Shadowflame on hit");
if (item.type == ItemID.BloodButcherer || item.type == ItemID.TheRottedFork || item.type == ItemID.TheMeatball || item.type == ItemID.CrimsonYoyo)
if (item.type == ItemID.BloodButcherer || item.type == ItemID.TheRottedFork || item.type == ItemID.TheMeatball || item.type == ItemID.CrimsonYoyo || item.type == ItemID.CrimsonRod)
EditTooltipByName("Knockback", (line) => line.text += "\nInflicts Burning Blood on hit");
#endregion
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
item.width = 62;
item.height = 22;
item.magic = true;
item.damage = 22;
item.damage = 21;
item.knockBack = 0f;
item.useTime = item.useAnimation = 20;
item.autoReuse = true;
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 30;
item.damage = 33;
item.magic = true;
item.mana = 15;
item.width = 28;
+2 -2
View File
@@ -17,12 +17,12 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 15;
item.damage = 17;
item.magic = true;
item.mana = 9;
item.width = 42;
item.height = 28;
item.useTime = item.useAnimation = 20;
item.useTime = item.useAnimation = 45;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 1.5f;
+4 -4
View File
@@ -18,13 +18,13 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 10;
item.damage = 17;
item.magic = true;
item.mana = 3;
item.width = 38;
item.height = 38;
item.useTime = 15;
item.useAnimation = 15;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2.5f;
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.UseSound = SoundID.Item43;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<AquamarineBolt>();
item.shootSpeed = 9f;
item.shootSpeed = 14f;
}
public override Vector2? HoldoutOrigin()
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 36;
item.damage = 43;
item.magic = true;
item.mana = 10;
item.width = 58;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 13;
item.damage = 17;
item.magic = true;
item.mana = 4;
item.width = 28;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 48;
item.damage = 42;
item.magic = true;
item.mana = 7;
item.width = 28;
+3 -3
View File
@@ -15,13 +15,13 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 27;
item.damage = 42;
item.magic = true;
item.mana = 12;
item.width = 28;
item.height = 30;
item.useTime = 20;
item.useAnimation = 20;
item.useTime = 30;
item.useAnimation = 30;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 5.5f;
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 10;
item.damage = 14;
item.magic = true;
item.mana = 6;
item.width = 28;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 15;
item.damage = 26;
item.magic = true;
item.mana = 5;
item.width = 46;
+4 -4
View File
@@ -18,13 +18,13 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 20;
item.damage = 33;
item.magic = true;
item.mana = 18;
item.width = 54;
item.height = 52;
item.useTime = 33;
item.useAnimation = 33;
item.useTime = 24;
item.useAnimation = 24;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 5;
@@ -95,7 +95,7 @@ namespace CalamityMod.Items.Weapons.Magic
num79 *= num80;
float speedX4 = num78 + (float)Main.rand.Next(-40, 41) * 0.02f;
float speedY5 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f;
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<HellwingPillar>(), damage, knockBack, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI, 0f, 0f);
}
return false;
}
+1 -2
View File
@@ -1,5 +1,4 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -17,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 15;
item.damage = 20;
item.magic = true;
item.mana = 7;
item.width = 34;
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Weapons.Magic
item.mana = 6;
item.width = 44;
item.height = 44;
item.useTime = 15;
item.useAnimation = 30;
item.useTime = 7;
item.useAnimation = 14;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2f;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 17;
item.damage = 26;
item.magic = true;
item.mana = 12;
item.width = 56;
+3 -3
View File
@@ -17,13 +17,13 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 10;
item.damage = 20;
item.magic = true;
item.mana = 8;
item.width = 38;
item.height = 38;
item.useTime = 27;
item.useAnimation = 27;
item.useTime = 38;
item.useAnimation = 38;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 3.25f;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.damage = 12;
item.knockBack = 3f;
item.mana = 10;
item.useTime = item.useAnimation = 25;
item.useTime = item.useAnimation = 35;
item.autoReuse = true;
item.magic = true;
item.shootSpeed = 10f;
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shaderain Staff");
Tooltip.SetDefault("Fires a shade storm cloud");
Tooltip.SetDefault("Fires a shade storm cloud that inflicts shadowflame");
}
public override void SetDefaults()
+3 -3
View File
@@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 19;
item.damage = 20;
item.magic = true;
item.mana = 13;
item.mana = 6;
item.width = 44;
item.height = 44;
item.useTime = 9;
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic
item.UseSound = SoundID.Item66;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<AuraRain>();
item.shootSpeed = 8f;
item.shootSpeed = 14f;
}
public override Vector2? HoldoutOrigin()
+2 -2
View File
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Magic
item.mana = 8;
item.width = 42;
item.height = 42;
item.useTime = 23;
item.useAnimation = 23;
item.useTime = 33;
item.useAnimation = 33;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2f;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
item.damage = 25;
item.magic = true;
item.mana = 7;
item.mana = 5;
item.width = 28;
item.height = 30;
item.useTime = 12;
+3 -3
View File
@@ -16,13 +16,13 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 15;
item.damage = 16;
item.magic = true;
item.mana = 4;
item.width = 30;
item.height = 30;
item.useTime = 12;
item.useAnimation = 12;
item.useTime = 15;
item.useAnimation = 15;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2.5f;
+2 -2
View File
@@ -18,9 +18,9 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 12;
item.damage = 13;
item.magic = true;
item.mana = 4;
item.mana = 2;
item.width = 44;
item.height = 46;
item.useTime = 20;
+3 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Buffs.DamageOverTime;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class ShadeNimbusHostile : ModProjectile
@@ -59,7 +60,7 @@ namespace CalamityMod.Projectiles.Boss
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.CursedInferno, 90);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
}
}
+3 -3
View File
@@ -1,6 +1,6 @@
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
@@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Boss
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Cursed Rain");
DisplayName.SetDefault("Shade Rain");
}
public override void SetDefaults()
@@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.CursedInferno, 90);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Magic
public class BloodRay : ModProjectile
{
public const int Lifetime = 150;
public const float MaxExponentialDamageBoost = 4f;
public const float MaxExponentialDamageBoost = 3f;
public static readonly float ExponentialDamageBoost = (float)Math.Pow(MaxExponentialDamageBoost, 1f / Lifetime);
public ref float Time => ref projectile.ai[0];
public ref float InitialDamage => ref projectile.ai[1];
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Magic
projectile.ignoreWater = true;
projectile.tileCollide = false;
projectile.magic = true;
projectile.penetrate = -1;
projectile.penetrate = 1;
projectile.extraUpdates = 3;
projectile.timeLeft = 90;
}
+13 -1
View File
@@ -1,5 +1,7 @@
using CalamityMod.Buffs.DamageOverTime;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class ShadeNimbus : ModProjectile
@@ -86,5 +88,15 @@ namespace CalamityMod.Projectiles.Magic
}
}
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
}
}
+13 -1
View File
@@ -1,6 +1,8 @@
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class Shaderain : ModProjectile
@@ -39,5 +41,15 @@ namespace CalamityMod.Projectiles.Magic
dust.velocity += -projectile.oldVelocity * 0.25f;
dust.scale = 0.95f;
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
}
}
}