weapon balancing and death
This commit is contained in:
1 parent
0dd30cce15
commit
0b40db2eb1
31 files changed
+61
-56
No files matched your search
+2
-1
@@ -1293,7 +1293,8 @@ namespace CalamityMod
|
||||
ItemID.PhoenixBlaster,
|
||||
ItemID.VenusMagnum,
|
||||
ItemID.BlizzardStaff,
|
||||
ItemID.Phantasm
|
||||
ItemID.Phantasm,
|
||||
ItemID.StardustDragonStaff
|
||||
};
|
||||
|
||||
pumpkinMoonBuffList = new List<int>()
|
||||
|
||||
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.mana = 26;
|
||||
item.width = 86;
|
||||
item.height = 72;
|
||||
item.useTime = 35;
|
||||
item.useAnimation = 35;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5f;
|
||||
|
||||
@@ -15,13 +15,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 40;
|
||||
item.damage = 30;
|
||||
item.magic = true;
|
||||
item.mana = 14;
|
||||
item.width = 52;
|
||||
item.height = 52;
|
||||
item.useTime = 30;
|
||||
item.useAnimation = 30;
|
||||
item.useTime = 31;
|
||||
item.useAnimation = 31;
|
||||
item.useStyle = 1;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 7f;
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 58;
|
||||
item.damage = 48;
|
||||
item.magic = true;
|
||||
item.mana = 15;
|
||||
item.mana = 12;
|
||||
item.width = 28;
|
||||
item.height = 32;
|
||||
item.useTime = 22;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 325;
|
||||
item.damage = 305;
|
||||
item.magic = true;
|
||||
item.mana = 20;
|
||||
item.width = 36;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 320;
|
||||
item.damage = 300;
|
||||
item.magic = true;
|
||||
item.mana = 10;
|
||||
item.width = 20;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
type = ProjectileID.EnchantedBeam;
|
||||
break;
|
||||
}
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer);
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer, 1f);
|
||||
float num72 = Main.rand.Next(18, 25);
|
||||
damage = Main.rand.Next(40, 60);
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
|
||||
@@ -95,9 +95,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
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<GalaxyBlast>(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5));
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<GalaxyBlastType2>(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3));
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<GalaxyBlastType3>(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(1));
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<GalaxyBlast>(), damage / 2, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(5));
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<GalaxyBlastType2>(), damage / 2, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(3));
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<GalaxyBlastType3>(), damage / 2, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(1));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 70;
|
||||
item.damage = 405;
|
||||
item.damage = 385;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useTime = 17;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 70;
|
||||
item.damage = 52;
|
||||
item.damage = 60;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = 1;
|
||||
|
||||
@@ -17,11 +17,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 74;
|
||||
item.damage = 90;
|
||||
item.damage = 80;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = 1;
|
||||
item.useTime = 18;
|
||||
item.useTime = 20;
|
||||
item.useTurn = true;
|
||||
item.knockBack = 6f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(),
|
||||
player.beeDamage(item.damage / 3), player.beeKB(0f), player.whoAmI, 0f, 0f);
|
||||
player.beeDamage((int)(item.damage * (player.allDamage + player.meleeDamage - 1f)) / 3), player.beeKB(0f), player.whoAmI, 0f, 0f);
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(),
|
||||
player.beeDamage(item.damage / 3), player.beeKB(0f), player.whoAmI, 0f, 0f);
|
||||
player.beeDamage((int)(item.damage * (player.allDamage + player.meleeDamage - 1f)) / 3), player.beeKB(0f), player.whoAmI, 0f, 0f);
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 64;
|
||||
item.damage = 135;
|
||||
item.damage = 125;
|
||||
item.melee = true;
|
||||
item.useAnimation = 20;
|
||||
item.useAnimation = 21;
|
||||
item.useStyle = 1;
|
||||
item.useTime = 20;
|
||||
item.useTime = 21;
|
||||
item.useTurn = true;
|
||||
item.knockBack = 7f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 100;
|
||||
item.damage = 2100;
|
||||
item.damage = 1900;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useStyle = 1;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
type = ModContent.ProjectileType<EonBeamV2>();
|
||||
break;
|
||||
}
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer);
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, Main.myPlayer, 1f);
|
||||
int i = Main.myPlayer;
|
||||
float num72 = Main.rand.Next(18, 27);
|
||||
float num74 = knockBack;
|
||||
|
||||
@@ -18,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 66;
|
||||
item.damage = 95;
|
||||
item.damage = 90;
|
||||
item.melee = true;
|
||||
item.useAnimation = 25;
|
||||
item.useAnimation = 26;
|
||||
item.useStyle = 1;
|
||||
item.useTime = 25;
|
||||
item.useTime = 26;
|
||||
item.useTurn = true;
|
||||
item.knockBack = 5.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 230;
|
||||
item.damage = 200;
|
||||
item.ranged = true;
|
||||
item.width = 74;
|
||||
item.height = 34;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 261;
|
||||
item.damage = 241;
|
||||
item.knockBack = 15f;
|
||||
item.shootSpeed = 16f;
|
||||
item.useStyle = 5;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 72;
|
||||
item.damage = 1010;
|
||||
item.damage = 1110;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 21;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
item.width = 38;
|
||||
item.height = 34;
|
||||
item.damage = 135;
|
||||
item.damage = 115;
|
||||
item.crit += 20;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.damage = 10;
|
||||
item.damage = 8;
|
||||
item.noMelee = true;
|
||||
item.consumable = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.damage = 10;
|
||||
item.damage = 8;
|
||||
item.noMelee = true;
|
||||
item.consumable = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.damage = 1300;
|
||||
item.damage = 1100;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 20;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
item.width = 32;
|
||||
item.height = 34;
|
||||
item.damage = 55;
|
||||
item.damage = 50;
|
||||
item.crit += 4;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 43;
|
||||
item.damage = 50;
|
||||
item.mana = 10;
|
||||
item.width = 50;
|
||||
item.height = 50;
|
||||
|
||||
@@ -4940,7 +4940,7 @@ namespace CalamityMod.NPCs
|
||||
target.type != NPCID.TheDestroyerBody && target.type != NPCID.TheDestroyerTail &&
|
||||
target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 &&
|
||||
target.type != ModContent.NPCType<Reaper>() && target.type != ModContent.NPCType<Mauler>() && target.type != ModContent.NPCType<EidolonWyrmHead>() &&
|
||||
target.type != ModContent.NPCType<EidolonWyrmHeadHuge>() && target.type != ModContent.NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityMod.enemyImmunityList.Contains(npc.type))
|
||||
target.type != ModContent.NPCType<EidolonWyrmHeadHuge>() && target.type != ModContent.NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityMod.enemyImmunityList.Contains(target.type))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
projectile.height = 40;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = 5;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.extraUpdates = 2;
|
||||
projectile.tileCollide = false;
|
||||
projectile.magic = true;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
for (float i = 0; i < MathHelper.TwoPi; i += MathHelper.PiOver4 / 2f)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center, i.ToRotationVector2() * 9f, ModContent.ProjectileType<AstralCrystalInvisibleExplosion>(), 50, 4f, projectile.owner);
|
||||
Projectile.NewProjectile(projectile.Center, i.ToRotationVector2() * 9f, ModContent.ProjectileType<AstralCrystalInvisibleExplosion>(), projectile.damage, projectile.knockBack, projectile.owner);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,10 +65,13 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
}
|
||||
if (projectile.ai[0] != 1f) //excludes (True) Ark of the Ancients
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,10 +65,13 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
if (projectile.ai[0] != 1f) //excludes True Ark of the Ancients
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120);
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.melee = true;
|
||||
projectile.tileCollide = true;
|
||||
projectile.penetrate = 3;
|
||||
aiType = 45;
|
||||
aiType = ProjectileID.DemonScythe;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -39,9 +39,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
int immuneTime = 10 -
|
||||
(NPC.downedMoonlord ? 8 : 0);
|
||||
target.immune[projectile.owner] = immuneTime;
|
||||
target.immune[projectile.owner] = 10;
|
||||
target.AddBuff(BuffID.OnFire, 180);
|
||||
target.AddBuff(BuffID.ShadowFlame, 180);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.damage *= 2;
|
||||
}
|
||||
projectile.ai[0]++;
|
||||
if (projectile.ai[0] == 20)
|
||||
if (projectile.ai[0] == 10)
|
||||
{
|
||||
projectile.damage /= 2;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.damage *= 2;
|
||||
}
|
||||
projectile.ai[0]++;
|
||||
if (projectile.ai[0] == 20)
|
||||
if (projectile.ai[0] == 10)
|
||||
{
|
||||
projectile.damage /= 2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user