I HAVE ATTAINED HEAVEN AND I CANT GET UP
This commit is contained in:
1 parent
1a7faddb78
commit
397a7cba99
5 files changed
+16
-6
No files matched your search
@@ -18,7 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
"Green exo arrows explode into a tornado on death\n" +
|
||||
"Blue exo arrows cause a second group of arrows to fire on enemy hits\n" +
|
||||
"Orange exo arrows cause explosions on death\n" +
|
||||
"Teal exo arrows ignore enemy immunity frames");
|
||||
"Teal exo arrows ignore enemy immunity frames\n" +
|
||||
"66% chance to not consume ammo");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -45,6 +46,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)
|
||||
{
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
float dmg = 1f;
|
||||
float num117 = 0.314159274f;
|
||||
int num118 = 5;
|
||||
Vector2 vector7 = new Vector2(speedX, speedY);
|
||||
@@ -66,6 +68,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
case 2:
|
||||
case 3:
|
||||
type = ModContent.ProjectileType<TealExoArrow>();
|
||||
dmg = 0.16f;
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
@@ -78,12 +81,19 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
break;
|
||||
case 9:
|
||||
type = ModContent.ProjectileType<GreenExoArrow>();
|
||||
dmg = 0.7f;
|
||||
break;
|
||||
}
|
||||
Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, (int)(damage * dmg), knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public override bool ConsumeAmmo(Player player)
|
||||
{
|
||||
if (Main.rand.Next(0, 100) < 66)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.alpha = 255;
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 7;
|
||||
projectile.localNPCHitCooldown = 9;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 240; //1200
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 8;
|
||||
projectile.localNPCHitCooldown = 9;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<ExoMark>(), (int)(projectile.damage * 0.6f), projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<ExoMark>(),projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
projectile.maxPenetrate = -1;
|
||||
projectile.penetrate = -1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.localNPCHitCooldown = 20;
|
||||
projectile.Damage();
|
||||
Main.PlaySound(2, (int)projectile.Center.X, (int)projectile.Center.Y, 14, 1f, 0f);
|
||||
for (int num193 = 0; num193 < 4; num193++)
|
||||
|
||||
Reference in new issue
Block a user