Wulfrum & victide balancey?
This commit is contained in:
1 parent
320cd92b0b
commit
78519cf2d2
13 files changed
+34
-13
No files matched your search
@@ -13,6 +13,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
public static readonly SoundStyle ChargeSound = SoundID.LiquidsHoneyWater with { Type = SoundType.Sound };
|
||||
|
||||
public static int FullChargeExtraDamage = 3; //Extra damage dealt by each coral chunkits b when fully charging a shot
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Coral Spout");
|
||||
@@ -29,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 7;
|
||||
Item.damage = 11;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 7;
|
||||
Item.width = 28;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 15;
|
||||
Item.damage = 13;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 2;
|
||||
Item.width = 34;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.damage = 20;
|
||||
Item.damage = 23;
|
||||
Item.channel = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.noMelee = true;
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public static float ScrewTime = 40;
|
||||
public static Asset<Texture2D> ScrewTex;
|
||||
public static Asset<Texture2D> ScrewOutlineTex;
|
||||
public static float ScrewBaseDamageMult = 1f;
|
||||
public static float ScrewBaseDamageMult = 1.5f;
|
||||
public static float ScrewBazingaModeDamageMult = 6.5f;
|
||||
public static float ScrewBazingaAimAssistAngle = 0.52f; //This may look high but remebmer this is the FULL angle, so it actually checks for half that angle deviation
|
||||
public static float ScrewBazingaAimAssistReach = 600f;
|
||||
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.height = 50;
|
||||
Item.damage = 14;
|
||||
Item.damage = 9;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = DefaultTime + WulfrumScrewdriverProj.MaxTime;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 19;
|
||||
Item.damage = 18;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 22;
|
||||
Item.height = 46;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static float MaxSpreadDistance = 60f;
|
||||
public static float MinSpread = 0.2f;
|
||||
public static float MaxSpread = 0.6f;
|
||||
public static float MaxDamageFalloff = 0.9f;
|
||||
public static float MaxDamageFalloff = 0.8f;
|
||||
public static int BulletCount = 6;
|
||||
|
||||
public static int ShotsPerScrap = 30;
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 13;
|
||||
Item.damage = 11;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 23;
|
||||
Item.height = 8;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.damage = 24;
|
||||
Item.damage = 27;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 15;
|
||||
|
||||
@@ -123,6 +123,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (Item.stack == 1)
|
||||
Item.UseSound = Throw1Sound;
|
||||
}
|
||||
|
||||
// TODO -- All rogue weapons with special stat changes for stealth strikes should do so in ModifyShootStats instaed of Shoot
|
||||
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
|
||||
{
|
||||
bool stealthStrike = player.Calamity().StealthStrikeAvailable() || stealthStrikeStarted;
|
||||
@@ -130,6 +132,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
float speedBoost = stealthStrike ? 1.25f : 1f;
|
||||
|
||||
velocity = velocity.RotatedByRandom(shootCount / 2f * spread) * speedBoost;
|
||||
if (stealthStrike)
|
||||
damage = (int)(damage * 3.2f);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 10;
|
||||
Item.damage = 12;
|
||||
Item.mana = 10;
|
||||
Item.width = 28;
|
||||
Item.height = 20;
|
||||
|
||||
@@ -126,11 +126,13 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
float angleOffset = MathHelper.Lerp(Spread * -0.5f, Spread * 0.5f, i / ((float)ShotProjectiles - 1));
|
||||
Vector2 direction = (mainAngle + angleOffset).ToRotationVector2();
|
||||
|
||||
|
||||
int realDamage = Projectile.damage + (int)(CoralSpout.FullChargeExtraDamage * ChargeProgress);
|
||||
|
||||
if (Owner.whoAmI == Main.myPlayer)
|
||||
{
|
||||
float speed = 10 + 15 * ChargeProgress;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * speed, ModContent.ProjectileType<CoralSpike>(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, ChargeProgress);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * speed, ModContent.ProjectileType<CoralSpike>(), realDamage, Projectile.knockBack, Owner.whoAmI, ChargeProgress);
|
||||
}
|
||||
|
||||
Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.ownerHitCheck = true;
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
|
||||
@@ -42,6 +42,12 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.ownerHitCheck = true;
|
||||
Projectile.timeLeft = MaxTime;
|
||||
}
|
||||
|
||||
public override bool? CanDamage()
|
||||
{
|
||||
return Projectile.timeLeft <= (MaxTime - 10);
|
||||
}
|
||||
|
||||
public override bool ShouldUpdatePosition() => false;
|
||||
@@ -66,7 +72,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (EndLag == 0) //Initialization
|
||||
{
|
||||
EndLag = (float)Math.Max(Owner.ActiveItem().useTime - MaxTime, 1);
|
||||
Projectile.timeLeft = MaxTime;
|
||||
TrueDirection = Owner.SafeDirectionTo(Owner.Calamity().mouseWorld, Vector2.Zero).ToRotation(); //Store this for the screw hit
|
||||
Projectile.velocity = Owner.SafeDirectionTo(Owner.Calamity().mouseWorld, Vector2.Zero).RotatedByRandom(MathHelper.PiOver4 * 0.15f);
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
|
||||
@@ -100,6 +100,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (Projectile.velocity.Length() < 2f && Bouncing == 0f)
|
||||
{
|
||||
Returning = 1f;
|
||||
Projectile.numHits = 0;
|
||||
}
|
||||
|
||||
if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f)
|
||||
@@ -130,6 +131,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
if (Projectile.numHits >= 5)
|
||||
{
|
||||
ImpactEffects();
|
||||
Projectile.Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user