Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
cd63f1f691
2 files changed
+4
-7
No files matched your search
@@ -437,8 +437,8 @@ namespace CalamityMod.Items
|
||||
modPlayer.canFireAtaxiaRogueProjectile = false;
|
||||
int flareID = ModContent.ProjectileType<HydrothermicFlareRogue>();
|
||||
|
||||
// Ataxia Rogue Flares: 6 x 50%, soft cap starts at 90 base damage
|
||||
int flareDamage = CalamityUtils.DamageSoftCap(damage * 0.5, 90);
|
||||
// Hydrothermic Rogue Flares: 6 x (50 + 15%), soft cap starts at 90 base damage
|
||||
int flareDamage = CalamityUtils.DamageSoftCap(50 + damage * 0.15, 90);
|
||||
flareDamage = player.ApplyArmorAccDamageBonusesTo(flareDamage);
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
|
||||
@@ -43,11 +43,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
Projectile holdout = Projectile.NewProjectileDirect(source, player.Center, Vector2.Zero, ModContent.ProjectileType<MineralMortarHoldout>(), 0, 0f, player.whoAmI);
|
||||
|
||||
// We set the rotation to the direction to the mouse so the first frame doesn't appear bugged out.
|
||||
holdout.rotation = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero).ToRotation();
|
||||
|
||||
Vector2 spawnPosition = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
Projectile.NewProjectileDirect(source, spawnPosition, player.Calamity().mouseWorld - spawnPosition, ModContent.ProjectileType<MineralMortarHoldout>(), 0, 0f, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user