Buffed Poseidon damage to 62, velocity to 20, increased projectile size, and nerfed use time to 45
This commit is contained in:
1 parent
a630a35c57
commit
fac012b591
2 files changed
+19
-6
No files matched your search
@@ -18,13 +18,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 48;
|
||||
Item.damage = 62;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 12;
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.useTime = 22;
|
||||
Item.useAnimation = 22;
|
||||
Item.useTime = 45;
|
||||
Item.useAnimation = 45;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 6f;
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<PoseidonTyphoon>();
|
||||
Item.shootSpeed = 10f;
|
||||
Item.shootSpeed = 20f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class PoseidonTyphoon : ModProjectile
|
||||
@@ -21,11 +23,15 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Projectile.penetrate = 10; //randomized in the item file now, penetrates 4 to 10 times
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.scale = 1.6f;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.rotation += Projectile.velocity.X * 0.05f;
|
||||
Projectile.rotation += Projectile.velocity.X * 0.01f;
|
||||
Projectile.rotation = MathHelper.WrapAngle(Projectile.rotation);
|
||||
|
||||
Lighting.AddLight(Projectile.Center, 0, (255 - Projectile.alpha) * 0.7f / 255f, (255 - Projectile.alpha) / 255f);
|
||||
|
||||
CalamityGlobalProjectile.HomeInOnNPC(Projectile, !Projectile.tileCollide, 600f, 6f, 30f);
|
||||
}
|
||||
@@ -60,5 +66,12 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>(Texture).Value;
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, lightColor, Projectile.rotation, texture.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user