Removed Acceleration Rounds and Superball Bullets
This commit is contained in:
1 parent
5bdb934ede
commit
4b1d9d5598
9 files changed
-256
No files matched your search
@@ -1,43 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
[LegacyName("AccelerationBullet")]
|
||||
public class AccelerationRound : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Ammo";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 10;
|
||||
Item.height = 16;
|
||||
Item.damage = 10;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 1.25f;
|
||||
Item.value = Item.sellPrice(copper: 2);
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.shoot = ModContent.ProjectileType<AccelerationRoundProj>();
|
||||
Item.shootSpeed = 1f;
|
||||
Item.ammo = AmmoID.Bullet;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(150).
|
||||
AddIngredient(ItemID.MusketBall, 150).
|
||||
AddIngredient<PearlShard>().
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 269 B |
@@ -1,42 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
public class SuperballBullet : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Ammo";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 8;
|
||||
Item.height = 8;
|
||||
Item.damage = 6;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
Item.knockBack = 1.5f;
|
||||
Item.value = Item.sellPrice(copper: 2);
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.shoot = ModContent.ProjectileType<SuperballBulletProj>();
|
||||
Item.shootSpeed = 1f;
|
||||
Item.ammo = AmmoID.Bullet;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(150).
|
||||
AddIngredient(ItemID.MeteorShot, 150).
|
||||
AddIngredient<PearlShard>().
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 277 B |
@@ -1,8 +1,3 @@
|
||||
AccelerationRound: {
|
||||
DisplayName: Acceleration Round
|
||||
Tooltip: Gains speed over time
|
||||
}
|
||||
|
||||
ArcticArrow: {
|
||||
DisplayName: Arctic Arrow
|
||||
Tooltip: Freezes enemies for a short time
|
||||
@@ -132,11 +127,6 @@ RubberMortarRound: {
|
||||
'''
|
||||
}
|
||||
|
||||
SuperballBullet: {
|
||||
DisplayName: Superball Bullet
|
||||
Tooltip: Bounces at extreme speeds
|
||||
}
|
||||
|
||||
TerraArrow: {
|
||||
DisplayName: Terra Arrow
|
||||
Tooltip: Travels incredibly quickly and explodes into more arrows when it hits a certain velocity
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class AccelerationRoundProj : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.aiStyle = ProjAIStyleID.Arrow;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Ranged;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 600;
|
||||
Projectile.extraUpdates = 3;
|
||||
AIType = ProjectileID.Bullet;
|
||||
Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.velocity *= 1.01f;
|
||||
if (Projectile.velocity.Length() >= 12f)
|
||||
{
|
||||
Projectile.velocity *= 0.5f;
|
||||
Projectile.extraUpdates++;
|
||||
Projectile.netUpdate = true;
|
||||
}
|
||||
|
||||
Projectile.localAI[0] += 1f;
|
||||
if (Projectile.localAI[0] > 4f)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num137 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), 1, 1, 91, 0f, 0f, 0, default, 0.5f);
|
||||
Main.dust[num137].alpha = Projectile.alpha;
|
||||
Main.dust[num137].velocity *= 0f;
|
||||
Main.dust[num137].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height);
|
||||
SoundEngine.PlaySound(SoundID.Dig, Projectile.position);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 91, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 105 B |
@@ -1,84 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class SuperballBulletProj : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Ranged";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.aiStyle = ProjAIStyleID.Arrow;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Ranged;
|
||||
Projectile.penetrate = 5;
|
||||
Projectile.timeLeft = 600;
|
||||
Projectile.extraUpdates = 1;
|
||||
AIType = ProjectileID.Bullet;
|
||||
Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.localAI[0] += 1f;
|
||||
if (Projectile.localAI[0] > 4f)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), 1, 1, 87, 0f, 0f, 0, default, 0.5f);
|
||||
Main.dust[dust].alpha = Projectile.alpha;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
Projectile.penetrate--;
|
||||
if (Projectile.penetrate <= 0)
|
||||
{
|
||||
Projectile.Kill();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Projectile.velocity.X != oldVelocity.X)
|
||||
Projectile.velocity.X = -oldVelocity.X;
|
||||
if (Projectile.velocity.Y != oldVelocity.Y)
|
||||
Projectile.velocity.Y = -oldVelocity.Y;
|
||||
|
||||
if (Projectile.extraUpdates < 5)
|
||||
Projectile.extraUpdates++;
|
||||
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
|
||||
for (int k = 0; k < 5; k++)
|
||||
{
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 87, Projectile.oldVelocity.X * 0.05f, Projectile.oldVelocity.Y * 0.05f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 113 B |
Reference in new issue
Block a user