We do a bit of predictiveness
* Also gave the bullets 1 extra update, and fixed the damage tooltip to say summon damage
This commit is contained in:
1 parent
49502a3c18
commit
bae4ccb89b
4 files changed
+8
-3
No files matched your search
@@ -263,7 +263,7 @@ namespace CalamityMod.Items
|
||||
|
||||
// Lilies of Finality 512 edit
|
||||
if (item.type == ModContent.ItemType<LiliesOfFinality>())
|
||||
EditTooltipByName("Damage", (line) => line.Text = LiliesOfFinality.TheNumber + " damage");
|
||||
EditTooltipByName("Damage", (line) => line.Text = LiliesOfFinality.TheNumber + " summon damage");
|
||||
|
||||
// Master Mode items also drop in Revengeance
|
||||
// Only affects vanilla and Calamity items
|
||||
|
||||
@@ -20,7 +20,8 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public static float Elster_DistanceFromTarget = 280f;
|
||||
public static float Elster_TargettingFlySpeed = 35f;
|
||||
public static float Elster_BulletProjectileSpeed = 40f;
|
||||
public static float Elster_BulletProjectileSpeed = 20f;
|
||||
public static int Elster_BulletMaxUpdates = 2;
|
||||
|
||||
public static float Ariane_BoltFireRate = 60f;
|
||||
public static float Ariane_TargettingFlySpeed = 20f;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Graphics.Primitives;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -30,6 +31,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.MaxUpdates = LiliesOfFinality.Elster_BulletMaxUpdates;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -277,11 +277,13 @@ namespace CalamityMod.Projectiles.Summon
|
||||
return;
|
||||
|
||||
Vector2 bulletSpawnPosition = Projectile.Center - Vector2.UnitX * 15f * Projectile.spriteDirection;
|
||||
Vector2 bulletVelocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(bulletSpawnPosition, Target, Elster_BulletProjectileSpeed, Elster_BulletMaxUpdates);
|
||||
|
||||
Projectile.NewProjectileDirect(
|
||||
Projectile.GetSource_FromThis(),
|
||||
bulletSpawnPosition,
|
||||
Vector2.UnitX * Elster_BulletProjectileSpeed * Projectile.spriteDirection,
|
||||
//Vector2.UnitX * Elster_BulletProjectileSpeed * Projectile.spriteDirection,
|
||||
bulletVelocity,
|
||||
ProjectileType<LiliesOfFinalityBullet>(),
|
||||
Projectile.damage,
|
||||
Projectile.knockBack,
|
||||
|
||||
Reference in new issue
Block a user