Buff Arsenal T5
This commit is contained in:
1 parent
f33991e58d
commit
ef34faa0ed
5 files changed
+22
-22
No files matched your search
@@ -26,13 +26,13 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
item.width = 22;
|
||||
item.height = 28;
|
||||
item.damage = 9572;
|
||||
item.damage = 11780;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.consumable = true;
|
||||
item.maxStack = 999;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useAnimation = item.useTime = 22;
|
||||
item.useAnimation = item.useTime = 27;
|
||||
item.knockBack = 3f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.shoot = ModContent.ProjectileType<PlasmaGrenadeProjectile>();
|
||||
item.shootSpeed = 19f;
|
||||
item.shootSpeed = 14f;
|
||||
modItem.rogue = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.shootSpeed = 10f;
|
||||
item.damage = 700;
|
||||
item.damage = 810;
|
||||
item.mana = 12;
|
||||
item.width = 38;
|
||||
item.height = 24;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class PulseRifle : ModItem
|
||||
{
|
||||
private int BaseDamage = 8560;
|
||||
private int BaseDamage = 10000;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
modItem.UsesCharge = true;
|
||||
modItem.MaxCharge = 250f;
|
||||
modItem.ChargePerUse = 0.3f;
|
||||
modItem.ChargePerUse = 0.24f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class TeslaCannon : ModItem
|
||||
{
|
||||
private int BaseDamage = 15000;
|
||||
private int BaseDamage = 16200;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -9,15 +9,14 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/DraedonsArsenal/PlasmaGrenade";
|
||||
|
||||
private static readonly float Gravity = 0.09f;
|
||||
|
||||
public float Time
|
||||
{
|
||||
get => projectile.ai[0];
|
||||
set => projectile.ai[0] = value;
|
||||
}
|
||||
|
||||
public const float FallAcceleration = 0.15f;
|
||||
public const float MaxFallSpeed = 12f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plasma Grenade");
|
||||
@@ -29,7 +28,8 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
projectile.height = 28;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = 1;
|
||||
projectile.timeLeft = 180;
|
||||
projectile.timeLeft = 300;
|
||||
projectile.MaxUpdates = 2;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -37,29 +37,29 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
Vector2 projectileTop = projectile.Center + new Vector2(0f, projectile.height * -0.5f).RotatedBy(projectile.rotation);
|
||||
if (projectile.velocity.Y < MaxFallSpeed && Time > 30f)
|
||||
{
|
||||
projectile.velocity.Y += 0.5f;
|
||||
}
|
||||
|
||||
if (Time > 10f)
|
||||
projectile.velocity.Y += Gravity;
|
||||
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(projectileTop, 107);
|
||||
dust.velocity = projectile.rotation.ToRotationVector2().RotatedByRandom(0.35f) * Main.rand.NextFloat(2f, 4f);
|
||||
dust.velocity += projectile.velocity;
|
||||
dust.velocity += projectile.velocity * 0.25f;
|
||||
dust.scale = Main.rand.NextFloat(0.95f, 1.3f);
|
||||
}
|
||||
Time++;
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
damage += target.defense / 4;
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
damage += target.defense / 4;
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaGrenadeExplosion"), (int)projectile.position.X, (int)projectile.position.Y);
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaGrenadeExplosion"), (int)projectile.position.X, (int)projectile.position.Y);
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
{
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user