mostly weapon balancing
This commit is contained in:
1 parent
530144148f
commit
d00dc5ece0
8 files changed
+25
-22
No files matched your search
@@ -1714,7 +1714,6 @@ namespace CalamityMod
|
||||
revengeanceLifeStealExceptionList = new List<int>()
|
||||
{
|
||||
NPCID.Probe,
|
||||
NPCID.MoonLordFreeEye,
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
@@ -2715,7 +2714,6 @@ namespace CalamityMod
|
||||
{ NPCID.MartianWalker, 0.35f },
|
||||
{ NPCID.Mimic, 0.3f },
|
||||
{ NPCID.MoonLordCore, 0.05f },
|
||||
{ NPCID.MoonLordFreeEye, 0.05f },
|
||||
{ NPCID.MoonLordHand, 0.05f },
|
||||
{ NPCID.MoonLordHead, 0.05f },
|
||||
{ NPCID.Mothron, 0.2f },
|
||||
|
||||
@@ -21,12 +21,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 150;
|
||||
item.damage = 140;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 78;
|
||||
item.useTime = 3;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 4;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5.5f;
|
||||
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 50;
|
||||
item.damage = 40;
|
||||
item.ranged = true;
|
||||
item.width = 64;
|
||||
item.height = 34;
|
||||
item.useTime = 5;
|
||||
item.useAnimation = 10;
|
||||
item.useTime = 7;
|
||||
item.useAnimation = 14;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 3.5f;
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.noMelee = true;
|
||||
item.width = 46;
|
||||
item.height = 30;
|
||||
item.useTime = 7;
|
||||
item.useAnimation = 7;
|
||||
item.useTime = 10;
|
||||
item.useAnimation = 10;
|
||||
item.useStyle = 5;
|
||||
item.knockBack = 3f;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 55;
|
||||
item.damage = 50;
|
||||
item.ranged = true;
|
||||
item.width = 66;
|
||||
item.height = 24;
|
||||
item.useTime = 21;
|
||||
item.useAnimation = 21;
|
||||
item.useTime = 23;
|
||||
item.useAnimation = 23;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4.5f;
|
||||
@@ -50,6 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
//shotgun spread
|
||||
int num6 = Main.rand.Next(4, 6);
|
||||
for (int index = 0; index < num6; ++index)
|
||||
{
|
||||
@@ -75,7 +76,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
num80 = num72 / num80;
|
||||
}
|
||||
|
||||
//bullets from above
|
||||
int num107 = Main.rand.Next(4, 6);
|
||||
int bulletDamage = (int)(damage * 0.7f);
|
||||
for (int num108 = 0; num108 < num107; num108++)
|
||||
{
|
||||
vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f);
|
||||
@@ -97,10 +101,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
num79 *= num80;
|
||||
float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
int bullet = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
int bullet = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, bulletDamage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Main.projectile[bullet].extraUpdates += 1;
|
||||
Main.projectile[bullet].tileCollide = false;
|
||||
|
||||
//bullets from below
|
||||
vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - /* - */ player.position.X), player.MountedCenter.Y + 600f); //-
|
||||
vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-50, 51); //200
|
||||
vector2.Y += (float)(100 * num108); //-=
|
||||
@@ -120,7 +125,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
num79 *= num80;
|
||||
float speedX6 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
float speedY7 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
int bullet2 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX6, -speedY7, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
int bullet2 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX6, -speedY7, type, bulletDamage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Main.projectile[bullet2].extraUpdates += 1;
|
||||
Main.projectile[bullet2].tileCollide = false;
|
||||
}
|
||||
|
||||
@@ -19,13 +19,13 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 28;
|
||||
item.damage = 25;
|
||||
item.ranged = true;
|
||||
item.width = 56;
|
||||
item.height = 24;
|
||||
item.useTime = 3;
|
||||
item.reuseDelay = 10;
|
||||
item.useAnimation = 24;
|
||||
item.useTime = 4;
|
||||
item.reuseDelay = 12;
|
||||
item.useAnimation = 32;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 1.5f;
|
||||
@@ -81,8 +81,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ChargedDartRifle>());
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ChargedDartRifle>());
|
||||
recipe.AddIngredient(ItemID.ClockworkAssaultRifle);
|
||||
recipe.AddIngredient(ItemID.Shotgun);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (projectile.localAI[1] >= 29f && projectile.owner == Main.myPlayer)
|
||||
{
|
||||
projectile.localAI[1] = 0f;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<ElementOrb2>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<ElementOrb2>(), (int)(projectile.damage * 0.7f), projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
}
|
||||
|
||||
for (int num447 = 0; num447 < 2; num447++)
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
int num658 = ModContent.ProjectileType<AstralProbeRound>();
|
||||
if (flag25 && projectile.ai[1] == 0f)
|
||||
{
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12);
|
||||
Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12, 0.5f, 0f);
|
||||
projectile.ai[1] += 1f;
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user