vivid sound + more
fixed a modifier bug with veering wind reordered some recipes raised the pwnage volume
This commit is contained in:
1 parent
ede9e3065d
commit
e14581c990
14 files changed
+42
-36
No files matched your search
@@ -31,8 +31,8 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.ChlorophyteBar, 8).
|
||||
AddIngredient<AstralBar>(8).
|
||||
AddIngredient(ItemID.ChlorophyteBar, 8).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -140,10 +140,10 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.ChlorophyteBar, 6).
|
||||
AddIngredient<AstralBar>(6).
|
||||
AddIngredient(ItemID.Glass, 20).
|
||||
AddIngredient(ItemID.NightVisionHelmet).
|
||||
AddIngredient<AstralBar>(6).
|
||||
AddIngredient(ItemID.ChlorophyteBar, 6).
|
||||
AddIngredient(ItemID.Glass, 20).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.ChlorophyteBar, 11).
|
||||
AddIngredient<AstralBar>(11).
|
||||
AddIngredient<RoverDrive>().
|
||||
AddIngredient<AstralBar>(11).
|
||||
AddIngredient(ItemID.ChlorophyteBar, 11).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -42,42 +42,37 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useTime = Item.useAnimation = 50;
|
||||
Item.knockBack = 2f;
|
||||
Item.UseSound = SoundID.Item43;
|
||||
Item.shootSpeed = 6f;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.useTime = Item.useAnimation = 25;
|
||||
Item.knockBack = 10f;
|
||||
Item.UseSound = SoundID.Item66;
|
||||
Item.shootSpeed = 12f;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override float UseSpeedMultiplier(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
return 0.5f;
|
||||
return 1f;
|
||||
}
|
||||
|
||||
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
type = ModContent.ProjectileType<VeeringWindFrostWave>();
|
||||
knockback *= 0.2f;
|
||||
velocity *= 0.5f;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int totalProjectiles = 24;
|
||||
if (player.altFunctionUse == 2)
|
||||
for (int i = 0; i < totalProjectiles; i++)
|
||||
{
|
||||
for (int i = 0; i < totalProjectiles; i++)
|
||||
{
|
||||
Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f;
|
||||
Projectile.NewProjectile(source, position, waveVelocity, ModContent.ProjectileType<VeeringWindFrostWave>(), damage, knockback, Main.myPlayer);
|
||||
}
|
||||
Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f;
|
||||
Projectile.NewProjectile(source, position, waveVelocity, type, damage, knockback, Main.myPlayer);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < totalProjectiles; i++)
|
||||
{
|
||||
Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length() * 0.5f;
|
||||
Projectile.NewProjectile(source, position, waveVelocity, type, damage, knockback, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,9 +14,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public class VividClarity : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
|
||||
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/VividClarityShoot");
|
||||
public static readonly SoundStyle BeamSound = new("CalamityMod/Sounds/Item/VividClarityBeamAppear");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.staff[Item.type] = true;
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -32,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 7.5f;
|
||||
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
|
||||
Item.UseSound = SoundID.Item60;
|
||||
Item.UseSound = UseSound;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<VividBeam>();
|
||||
Item.shootSpeed = 6f;
|
||||
|
||||
@@ -90,9 +90,9 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.MagicMirror).
|
||||
AddIngredient<CosmiliteBar>(10).
|
||||
AddIngredient<DivineGeode>(10).
|
||||
AddIngredient(ItemID.MagicMirror).
|
||||
AddCondition(Condition.NearShimmer).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Projectile.extraUpdates = 1;
|
||||
Projectile.timeLeft = 45;
|
||||
Projectile.DamageType = DamageClass.Magic;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.timeLeft = 90;
|
||||
Projectile.DamageType = DamageClass.Magic;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
@@ -27,6 +29,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
if (!initialized)
|
||||
{
|
||||
SoundEngine.PlaySound(VividClarity.BeamSound, Projectile.Center);
|
||||
initialized = true;
|
||||
float dustAmt = 16f;
|
||||
int d = 0;
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/Pwnagehammer";
|
||||
|
||||
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.16f, PitchVariance = 0.16f };
|
||||
public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming") { Volume = 0.3f };
|
||||
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.8f, PitchVariance = 0.16f };
|
||||
public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user