Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into Manaflation
This commit is contained in:
commit
12e8db58a6
155 files changed
+1981
-896
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -10,10 +11,8 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
// The nurse technically cannot get rid of this debuff by herself, as it reapplies immediately after if you have alcohol left
|
||||
// But she also cleanses excess alcohol if you have Alcohol Poisoning (see CalamityPlayer.PostNurseHeal)
|
||||
// Removing this set means she costs 1 debuff worth of cost to remove excess alcohol
|
||||
// BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
// The nurse can remove all alcohol debuffs individually, thus removing this by proxy.
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class StarSwallowerPetBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex) => player.BuffHandle_SpawnPetIfNeededAndSetTime(buffIndex, ref player.Calamity().starSwallowerPetFroge, ModContent.ProjectileType<StarSwallowerPet>());
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 662 B |
@@ -187,11 +187,11 @@ namespace CalamityMod.CalPlayer
|
||||
public enum FishingMinigames
|
||||
{
|
||||
None,
|
||||
ScrapBobber,
|
||||
NavystoneBobber,
|
||||
SkylineBobber,
|
||||
PerennialBobber,
|
||||
ScoriaBobber,
|
||||
WulfrumBobber,
|
||||
SunkenSinker,
|
||||
AcrobaticBobber,
|
||||
FeralBobber,
|
||||
VolcanicSinker,
|
||||
DevourerofCods //Not a fishing minigame but uses the same code as the rest
|
||||
}
|
||||
public FishingMinigames SelectedFishingMinigame = FishingMinigames.None;
|
||||
@@ -589,6 +589,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool lordePet = false;
|
||||
public bool frostyBat = false;
|
||||
public bool toastyBat = false;
|
||||
public bool starSwallowerPetFroge = false;
|
||||
#endregion
|
||||
|
||||
#region Rage
|
||||
@@ -2287,6 +2288,7 @@ namespace CalamityMod.CalPlayer
|
||||
lordePet = false;
|
||||
frostyBat = false;
|
||||
toastyBat = false;
|
||||
starSwallowerPetFroge = false;
|
||||
|
||||
onyxExcavator = false;
|
||||
rimehound = false;
|
||||
@@ -5920,32 +5922,6 @@ namespace CalamityMod.CalPlayer
|
||||
price /= vanillaPriceMult;
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostNurseHeal(NPC nurse, int health, bool removeDebuffs, int price)
|
||||
{
|
||||
// Remove excess alcohol
|
||||
if (removeDebuffs && alcoholPoisonLevel > 3)
|
||||
{
|
||||
List<int[]> Alcohol = new List<int[]>();
|
||||
for (int i = 0; i < Player.MaxBuffs; i++)
|
||||
{
|
||||
int buff = Player.buffType[i];
|
||||
if (CalamityBuffSets.AlcoholStrength.TryGetValue(buff, out int level))
|
||||
Alcohol.Insert(0, new int[] { i, level });
|
||||
}
|
||||
|
||||
int poison = alcoholPoisonLevel;
|
||||
do
|
||||
{
|
||||
// Obtain the index:level relationship
|
||||
int[] relation = Alcohol[0];
|
||||
Player.DelBuff(relation[0]); // Remove the alcohol
|
||||
poison -= relation[1]; // Cancel the poison level
|
||||
Alcohol.RemoveAt(0);
|
||||
}
|
||||
while (poison > 3);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Rogue Stealth
|
||||
|
||||
@@ -149,15 +149,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Handle mid-dash effects.
|
||||
UsedDash.MidDashEffects(Player, ref dashSpeed, ref dashSpeedDecelerationFactor, ref runSpeedDecelerationFactor);
|
||||
int VerticalOmnidashCap = DashID == GodslayerArmorDash.ID ? 75 : 25;
|
||||
if (UsedDash.IsOmnidirectional && VerticalOmnidashTimer < VerticalOmnidashCap)
|
||||
if (UsedDash.ForceEndAt > 0)
|
||||
{
|
||||
VerticalOmnidashTimer++;
|
||||
if (VerticalOmnidashTimer >= VerticalOmnidashCap)
|
||||
if (UsedDash.dashTime >= UsedDash.ForceEndAt)
|
||||
{
|
||||
Player.dashDelay = dashDelayToApply;
|
||||
// Stop the player from going flying
|
||||
Player.velocity *= 0.2f;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -218,9 +218,8 @@ namespace CalamityMod.CalPlayer
|
||||
// Independently of Calamity's nerfs to Nebula life regen, it is disabled entirely by alcohol poisoning.
|
||||
Player.nebulaLevelLife = 0;
|
||||
|
||||
// This has to last over 60 frames for the nurse to count the debuff, so...
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
Player.AddBuff(ModContent.BuffType<AlcoholPoisoning>(), 61, false);
|
||||
Player.AddBuff(ModContent.BuffType<AlcoholPoisoning>(), 2, false);
|
||||
|
||||
if (Player.lifeRegen > 0)
|
||||
Player.lifeRegen = 0;
|
||||
|
||||
@@ -211,22 +211,22 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.HeldItem.type == ModContent.ItemType<Starfleet>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<StarfleetHoldout>()] == 0))
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(Player.HeldItem.damage);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarfleetHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarfleetHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
}
|
||||
if (Player.HeldItem.type == ModContent.ItemType<Starmada>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<StarmadaHoldout>()] == 0))
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(Player.HeldItem.damage);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarmadaHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarmadaHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
}
|
||||
if (Player.HeldItem.type == ModContent.ItemType<Basher>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<BasherHoldout>()] == 0))
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<TrueMeleeDamageClass>().ApplyTo(Player.HeldItem.damage);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<BasherHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<BasherHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
}
|
||||
if (Player.HeldItem.type == ModContent.ItemType<GrandDad>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<GrandDadHoldout>()] == 0))
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<TrueMeleeDamageClass>().ApplyTo(Player.HeldItem.damage);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<GrandDadHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<GrandDadHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,9 +350,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.miscCounter % 4 == 0)
|
||||
Player.HealPlayer(1, HealTextType.None);
|
||||
|
||||
if (Player.dashDelay > 0) // Reduced dash cooldown
|
||||
if (Player.dashDelay > 1) // Reduced dash cooldown
|
||||
{
|
||||
Player.dashDelay = 0;
|
||||
Player.dashDelay = 1;
|
||||
}
|
||||
if (Player.dashDelay == -1)
|
||||
{
|
||||
@@ -367,9 +367,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.miscCounter % 5 == 0)
|
||||
Player.HealPlayer(2, HealTextType.None);
|
||||
|
||||
if (Player.dashDelay > 0) // Reduced dash cooldown
|
||||
if (Player.dashDelay > 1) // Reduced dash cooldown
|
||||
{
|
||||
Player.dashDelay = 0;
|
||||
Player.dashDelay = 1;
|
||||
}
|
||||
if (Player.dashDelay == -1)
|
||||
{
|
||||
@@ -3509,7 +3509,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (gloveLevel > 0)
|
||||
{
|
||||
// Determine the glove the player benefits from in priority of latest in progression
|
||||
float gloveAttackSpeed = (gloveLevel == 5 ? 0.15f : gloveLevel == 4 ? 0.14f : gloveLevel == 3 ? 0.12f : gloveLevel <= 2 ? 0.10f : 0);
|
||||
float gloveAttackSpeed = (gloveLevel == 5 ? 0.15f : gloveLevel == 4 ? 0.14f : gloveLevel >= 2 ? 0.12f : gloveLevel == 1 ? 0.10f : 0);
|
||||
Player.GetAttackSpeed<MeleeDamageClass>() += gloveAttackSpeed; // Give the player attack speed based on the glove they have
|
||||
}
|
||||
|
||||
|
||||
@@ -109,15 +109,6 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffID.Electrified, 300);
|
||||
break;
|
||||
|
||||
case ItemID.BeeKeeper:
|
||||
case ItemID.BladeofGrass:
|
||||
target.AddBuff(BuffID.Poisoned, 240);
|
||||
break;
|
||||
|
||||
case ItemID.FieryGreatsword:
|
||||
target.AddBuff(BuffID.OnFire3, 90);
|
||||
break;
|
||||
|
||||
case ItemID.IceSickle:
|
||||
case ItemID.Frostbrand:
|
||||
target.AddBuff(BuffID.Frostburn2, 300);
|
||||
@@ -126,11 +117,6 @@ namespace CalamityMod.CalPlayer
|
||||
case ItemID.IceBlade:
|
||||
target.AddBuff(BuffID.Frostburn, 120);
|
||||
break;
|
||||
|
||||
case (>= ItemID.BluePhaseblade and <= ItemID.YellowPhaseblade) or ItemID.OrangePhaseblade:
|
||||
case (>= ItemID.BluePhasesaber and <= ItemID.YellowPhasesaber) or ItemID.OrangePhasesaber:
|
||||
// TODO: find an EPIC lightsaber sound
|
||||
break;
|
||||
}
|
||||
|
||||
if (flameWakerBoots)
|
||||
@@ -272,11 +258,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
switch (proj.type)
|
||||
{
|
||||
// Remove this in 1.4.5 port
|
||||
case ProjectileID.ObsidianSwordfish:
|
||||
target.AddBuff(BuffID.OnFire3, 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.InfluxWaver:
|
||||
case ProjectileID.UFOLaser:
|
||||
case ProjectileID.Electrosphere:
|
||||
target.AddBuff(BuffID.Electrified, 180);
|
||||
@@ -288,10 +274,12 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<StaticDischarge>(), 90);
|
||||
break;
|
||||
|
||||
// Replace with Broken Armor in 1.4.5 port
|
||||
case ProjectileID.GolemFist:
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 180);
|
||||
break;
|
||||
|
||||
// Remove this in 1.4.5 port
|
||||
case ProjectileID.MechanicalPiranha:
|
||||
target.AddBuff(BuffType<HeavyBleeding>(), 180);
|
||||
break;
|
||||
@@ -300,21 +288,10 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<Nightwither>(), 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.Cascade:
|
||||
case ProjectileID.FlamingMace:
|
||||
target.AddBuff(BuffID.OnFire, 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.Bee:
|
||||
case ProjectileID.GiantBee:
|
||||
case ProjectileID.BladeOfGrass:
|
||||
target.AddBuff(BuffID.Poisoned, 120);
|
||||
break;
|
||||
|
||||
case ProjectileID.Wasp:
|
||||
target.AddBuff(BuffID.Venom, 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.NorthPoleWeapon:
|
||||
target.AddBuff(BuffID.Frostburn, 300);
|
||||
break;
|
||||
|
||||
@@ -27,7 +27,8 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override bool IsOmnidirectional => true;
|
||||
|
||||
public int Time = 0;
|
||||
public override int ForceEndAt => 75;
|
||||
|
||||
public float Size = 2.2f;
|
||||
public bool SoundOnce = true;
|
||||
|
||||
@@ -40,7 +41,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnDashEffects(Player player)
|
||||
{
|
||||
Time = 0;
|
||||
dashTime = 0;
|
||||
Size = 2.2f;
|
||||
GSDashSlot = SoundEngine.PlaySound(DevourerofGodsHead.DeathAnimationSound, player.Center);
|
||||
SoundOnce = true;
|
||||
@@ -60,24 +61,36 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
if (SoundEngine.TryGetActiveSound(GSDashSlot, out var Dashsound) && Dashsound.IsPlaying)
|
||||
Dashsound.Position = player.Center;
|
||||
|
||||
Time++;
|
||||
Size -= 0.01f;
|
||||
|
||||
const int totalDashTime = 75;
|
||||
|
||||
// Constantly update the player's velocity direction.
|
||||
float progress = MathHelper.Clamp(Time / (float)totalDashTime, 0f, 1f);
|
||||
float progress = MathHelper.Clamp(dashTime / (float)ForceEndAt, 0f, 1f);
|
||||
float ease = 1f - (float)Math.Pow(1f - progress, 0.2f);
|
||||
float finalSpeed = MathHelper.Lerp(32f, 11f, ease);
|
||||
|
||||
Vector2 dashVel = Main.MouseWorld - player.Center;
|
||||
Vector2 targetDirection = player.velocity.ToRotation().AngleTowards(dashVel.ToRotation(), 0.175f).ToRotationVector2();
|
||||
player.velocity = targetDirection * finalSpeed;
|
||||
|
||||
Vector2 direction = Vector2.Zero;
|
||||
if (player.controlLeft)
|
||||
direction.X -= 1;
|
||||
if (player.controlRight)
|
||||
direction.X += 1;
|
||||
if (player.controlUp)
|
||||
direction.Y -= 1;
|
||||
if (player.controlDown)
|
||||
direction.Y += 1;
|
||||
|
||||
Vector2 targetDirection = direction == Vector2.Zero ? player.velocity.SafeNormalize(Vector2.Zero) : player.velocity.ToRotation().AngleTowards(direction.ToRotation(), 0.175f).ToRotationVector2();
|
||||
|
||||
if (targetDirection == Vector2.Zero)
|
||||
targetDirection = new(player.direction, 0);
|
||||
|
||||
player.velocity = ((dashTime == 1 && direction != Vector2.Zero) ? direction : targetDirection) * finalSpeed;
|
||||
|
||||
// Fall way, way, faster than usual.
|
||||
player.maxFallSpeed = 50f;
|
||||
|
||||
if (Time < 75)
|
||||
if (dashTime < ForceEndAt)
|
||||
{
|
||||
Particle jaws = new Jaws(player.Center + player.velocity * 0.5f, player.velocity, Color.Fuchsia, new Vector2(0.8f, 1f), player.velocity.ToRotation() + MathHelper.PiOver2, Size, Size, 2);
|
||||
GeneralParticleHandler.SpawnParticle(jaws);
|
||||
@@ -85,11 +98,11 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
GeneralParticleHandler.SpawnParticle(jaws2);
|
||||
}
|
||||
|
||||
float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(2f, 2.5f, Time, true));
|
||||
float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(2f, 2.5f, dashTime, true));
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
float offsetRotationAngle = player.velocity.ToRotation() + Time / 20f;
|
||||
float radius = (30f + (float)Math.Cos(Time / 3f) * 24f) * radiusFactor;
|
||||
float offsetRotationAngle = player.velocity.ToRotation() + dashTime / 20f;
|
||||
float radius = (30f + (float)Math.Cos(dashTime / 3f) * 24f) * radiusFactor;
|
||||
Vector2 dustPosition = player.Center + player.velocity * 0.8f;
|
||||
dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius;
|
||||
Dust dust = Dust.NewDustPerfect(dustPosition, Main.rand.NextBool(5) ? 181 : 295);
|
||||
@@ -100,7 +113,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
dust2.noGravity = true;
|
||||
}
|
||||
|
||||
if (Time % 2 == 0)
|
||||
if (dashTime % 2 == 0)
|
||||
{
|
||||
float sparkscale = Size * 1.3f;
|
||||
Vector2 SparkVelocity1 = player.velocity.RotatedBy(player.direction * -4, default) * 0.08f - player.velocity / 2f;
|
||||
@@ -111,14 +124,12 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
}
|
||||
|
||||
if (Time > 75 && Time < 78)
|
||||
if (dashTime >= ForceEndAt)
|
||||
{
|
||||
Particle pulse = new DirectionalPulseRing(player.Center - player.velocity * 0.52f, player.velocity / 1.5f, Color.Fuchsia, new Vector2(1f, 2f), player.velocity.ToRotation(), 0.82f, 0.32f, 60);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
Particle pulse2 = new DirectionalPulseRing(player.Center - player.velocity * 0.40f, player.velocity / 1.5f * 0.9f, Color.Aqua, new Vector2(0.8f, 1.5f), player.velocity.ToRotation(), 0.58f, 0.28f, 50);
|
||||
GeneralParticleHandler.SpawnParticle(pulse2);
|
||||
|
||||
Time = 95;
|
||||
}
|
||||
|
||||
// Dash at a much, much faster speed than the default value.
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public abstract bool IsOmnidirectional { get; }
|
||||
|
||||
public virtual int ForceEndAt { get; } = -1;
|
||||
|
||||
public abstract float CalculateDashSpeed(Player player);
|
||||
/// <summary>
|
||||
/// Effects that happen once when the main dash starts
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Utilities.Daybreak;
|
||||
using CalamityMod.Utilities.Daybreak.Buffers;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.UI.Chat;
|
||||
|
||||
namespace CalamityMod.ChatTags
|
||||
{
|
||||
// This is a tag handler for storing custom color effects for text all within the "ceffect" tag; the parameter determining the actual effect in use.
|
||||
// i.e [ceffect/darksun:Hello World] would apply darksun effect to "Hello World".
|
||||
public sealed class CustomColorEffectHandler : AbstractTagHandler<CustomColorEffectHandler>
|
||||
{
|
||||
protected override string[] TagNames { get; } = ["ceffect", "ce"];
|
||||
public override TextSnippet Parse(string text, Color baseColor = new(), string options = null)
|
||||
{
|
||||
if (!CalamityClientConfig.Instance.TextEffects)
|
||||
return new TextSnippet(text);
|
||||
if (options.Equals("darksun", StringComparison.OrdinalIgnoreCase))
|
||||
return new DarksunTextSnippet(text);
|
||||
if (options.Equals("drunk", StringComparison.OrdinalIgnoreCase))
|
||||
return new DrunkTextSnippet(text);
|
||||
if (options.Equals("dog", StringComparison.OrdinalIgnoreCase))
|
||||
return new DoGTextSnippet(text);
|
||||
if (options.Equals("cosmic", StringComparison.OrdinalIgnoreCase))
|
||||
return new CosmicPurple.CustomTextSnippet(text);
|
||||
if (options.Equals("auric", StringComparison.OrdinalIgnoreCase))
|
||||
return new BurnishedAuric.CustomTextSnippet(text);
|
||||
if (options.Equals("calamity", StringComparison.OrdinalIgnoreCase))
|
||||
return new CalamityRed.CustomTextSnippet(text);
|
||||
if (options.Equals("exo", StringComparison.OrdinalIgnoreCase))
|
||||
return new ExoticRainbow.CustomTextSnippet(text);
|
||||
return new TextSnippet(text);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DarksunTextSnippet(string text) : TextSnippet
|
||||
{
|
||||
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = new Vector2(), Color color = new Color(), float scale = 1)
|
||||
{
|
||||
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), FontAssets.MouseText.Value.MeasureString(" ").Y * scale);
|
||||
|
||||
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
|
||||
{
|
||||
var font = FontAssets.MouseText.Value;
|
||||
var BorderColor = new Color(255, 191, 73);
|
||||
var HazeColor = new Color(238, 226, 153);
|
||||
|
||||
for (float f = 0f; f < MathHelper.TwoPi; f += MathHelper.TwoPi * 0.05f)
|
||||
{
|
||||
ChatManager.DrawColorCodedString(spriteBatch, font, text, position + new Vector2(2, 0).RotatedBy(f + Main.GlobalTimeWrappedHourly), Color.Lerp(BorderColor, HazeColor, (Main.mouseTextColor - 190) / 65f * 0.1f), 0f, Vector2.Zero, new Vector2(scale));
|
||||
}
|
||||
ChatManager.DrawColorCodedString(spriteBatch, font, text, position, Color.Black, 0f, Vector2.Zero, new Vector2(scale));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override float GetStringLength(DynamicSpriteFont font)
|
||||
{
|
||||
float size = font.MeasureString(text).X;
|
||||
return size * Scale;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DrunkTextSnippet(string text) : TextSnippet
|
||||
{
|
||||
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = new Vector2(), Color color = new Color(), float scale = 1)
|
||||
{
|
||||
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), FontAssets.MouseText.Value.MeasureString(" ").Y * scale);
|
||||
|
||||
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
|
||||
{
|
||||
var matrix = spriteBatch.transformMatrix;
|
||||
Main.spriteBatch.End(out var ss);
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, matrix);
|
||||
|
||||
for (int i = 0; i < 3; i++) // Draw 3 lines of differing opacity, color, and displacement.
|
||||
{
|
||||
float timer = (float)Math.Sin(Main.GlobalTimeWrappedHourly + 1f) / 2f;
|
||||
|
||||
float angle = (Main.GlobalTimeWrappedHourly * 2f) + (i * MathHelper.TwoPi / 3f);
|
||||
float radius = timer * (3f + i * 6f);
|
||||
Vector2 offset = new Vector2((float)Math.Cos(angle) * 1.7f, (float)Math.Sin(angle) * 1f) * radius; // Offset in an elliptical pattern
|
||||
Vector2 pos = position + offset;
|
||||
|
||||
color = CalamityUtils.MulticolorLerp(Math.Abs(timer + (i * 0.2f)) % 1f, Color.LightBlue, Color.LightGreen, (i == 3) ? Color.Blue : (i == 2) ? Color.Red : Color.White);
|
||||
float opacity = 1f - (i * 0.2f);
|
||||
float rotation = +(timer * (Main.GlobalTimeWrappedHourly * 0.00001f)); // This precision is intended
|
||||
|
||||
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, FontAssets.MouseText.Value, text, pos, color * opacity, rotation, Vector2.Zero, new Vector2(scale));
|
||||
}
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(ss);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override float GetStringLength(DynamicSpriteFont font)
|
||||
{
|
||||
float size = font.MeasureString(text).X;
|
||||
return size * Scale;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DoGTextSnippet(string text) : TextSnippet
|
||||
{
|
||||
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = new Vector2(), Color color = new Color(), float scale = 1)
|
||||
{
|
||||
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), FontAssets.MouseText.Value.MeasureString(" ").Y * scale);
|
||||
|
||||
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
|
||||
{
|
||||
var pos = position;
|
||||
using var lease = ScreenspaceTargetPool.Shared.Rent(Main.instance.GraphicsDevice);
|
||||
string txt = "";
|
||||
var matrix = spriteBatch.transformMatrix;
|
||||
using (spriteBatch.Scope())
|
||||
{
|
||||
using (lease.Scope(clearColor: Color.Transparent))
|
||||
{
|
||||
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, matrix);
|
||||
foreach (var item in text)
|
||||
{
|
||||
pos = position;
|
||||
pos.X += FontAssets.MouseText.Value.MeasureString(txt).X;
|
||||
float sin = MathHelper.SmoothStep(0, 1, (MathF.Sin(pos.X * 0.02f + Main.GlobalTimeWrappedHourly * -1.5f) + 1) * 0.5f);
|
||||
var c = Color.Lerp(Color.Cyan, Color.Fuchsia, sin);
|
||||
ChatManager.DrawColorCodedString(spriteBatch, FontAssets.MouseText.Value, item.ToString(), pos + new Vector2(0, -2 + sin * 4), c, 0, Vector2.Zero, new Vector2(scale));
|
||||
txt += item;
|
||||
}
|
||||
spriteBatch.End();
|
||||
}
|
||||
|
||||
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, Matrix.Identity);
|
||||
foreach (var item in ChatManager.ShadowDirections)
|
||||
{
|
||||
spriteBatch.Draw(lease.Target, Vector2.Zero + Vector2.TransformNormal(item * 2,matrix), null, Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
spriteBatch.Draw(lease.Target, Vector2.Zero, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
spriteBatch.End();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override float GetStringLength(DynamicSpriteFont font)
|
||||
{
|
||||
float size = font.MeasureString(text).X;
|
||||
return size * Scale;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
internal class SkylineBobber : ModItem, ILocalizedModType
|
||||
[LegacyName("SkylineBobber")]
|
||||
internal class AcrobaticBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/HeronBobber";
|
||||
@@ -22,7 +23,7 @@ namespace CalamityMod.Items.Fishing
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.accFishingBobber = true;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SkylineBobber;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.AcrobaticBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
Item.width = 44;
|
||||
Item.height = 108;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.accessory = true;
|
||||
Item.expert = true;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.accessory = true;
|
||||
Item.defense = 20;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class PerennialBobber : ModItem, ILocalizedModType
|
||||
[LegacyName("PerennialBobber")]
|
||||
internal class FeralBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/FeralDoubleBobber";
|
||||
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
player.accFishingBobber = true;
|
||||
player.fishingSkill += (int)((player.statLifeMax2 - player.statLife) * 0.25f);
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.PerennialBobber;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.FeralBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.15f;
|
||||
player.GetCritChance<RangedDamageClass>() += 5;
|
||||
player.GetCritChance<RangedDamageClass>() += 7;
|
||||
player.magicQuiver = true;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.deadshotBrooch = true;
|
||||
|
||||
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class NavystoneBobber : ModItem, ILocalizedModType
|
||||
[LegacyName("NavystoneBobber")]
|
||||
internal class SunkenSinker : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/NavyBobber";
|
||||
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.accFishingBobber = true;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.NavystoneBobber;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SunkenSinker;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class ScoriaBobber : ModItem, ILocalizedModType
|
||||
[LegacyName("ScoriaBobber")]
|
||||
internal class VolcanicSinker : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/RiftReelerBobber";
|
||||
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
player.accFishingBobber = true;
|
||||
player.accLavaFishing = true;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScoriaBobber;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.VolcanicSinker;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
internal class ScrapBobber : ModItem, ILocalizedModType
|
||||
[LegacyName("ScrapBobber")]
|
||||
internal class WulfrumBobber : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Fishing";
|
||||
public override string Texture => "CalamityMod/Projectiles/Typeless/WulfrumBobber";
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScrapBobber;
|
||||
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.WulfrumBobber;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
Item.height = 32;
|
||||
Item.defense = 31;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
Item.height = 32;
|
||||
Item.defense = 14;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = RarityType<BurnishedAuric>();
|
||||
Item.rare = RarityType<ExoticRainbow>();
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
Item.height = 26;
|
||||
Item.defense = 24;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,16 +12,16 @@ namespace CalamityMod.Items.Armor.GodSlayer
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float DamageBoost = 0.15f;
|
||||
public static int CritBoost = 11;
|
||||
public static float DamageBoost => 0.15f;
|
||||
public static int CritBoost => 11;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), CritBoost);
|
||||
|
||||
// Common Set Bonus
|
||||
public static int DashCooldown = CalamityUtils.SecondsToFrames(45);
|
||||
public static int DashDamage = 3000;
|
||||
public static float DashKnockback = 15f;
|
||||
public static int DashIFrames = 12;
|
||||
public static int DashGodSlayerInfernoDuration = CalamityUtils.SecondsToFrames(5);
|
||||
public static int DashCooldown => CalamityUtils.SecondsToFrames(45);
|
||||
public static int DashDamage => 3000;
|
||||
public static float DashKnockback => 15f;
|
||||
public static int DashIFrames => 12;
|
||||
public static int DashGodSlayerInfernoDuration => CalamityUtils.SecondsToFrames(5);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -45,7 +45,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
|
||||
modPlayer.godSlayerDamage = true;
|
||||
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusHurtDamageThreshold, hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
|
||||
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
player.aggro += SetBonusAggroBoost;
|
||||
|
||||
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
|
||||
|
||||
@@ -45,7 +45,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
|
||||
modPlayer.godSlayerRanged = true;
|
||||
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(ShrapnelRoundCooldown.FramesToSeconds(), hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
|
||||
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
|
||||
{
|
||||
modPlayer.DeferredDashID = GodslayerArmorDash.ID;
|
||||
|
||||
@@ -50,7 +50,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), RogueDamageBoostAtFullHealth.ToPercent(), SetBonusHurtDamageThreshold, hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
|
||||
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
|
||||
{
|
||||
modPlayer.DeferredDashID = GodslayerArmorDash.ID;
|
||||
|
||||
@@ -1148,16 +1148,12 @@ namespace CalamityMod.Items
|
||||
if (modPlayer.gloveLevel < 1)
|
||||
modPlayer.gloveLevel = 1;
|
||||
}
|
||||
if (item.type == ItemID.PowerGlove)
|
||||
if (item.type == ItemID.PowerGlove || item.type == ItemID.BerserkerGlove)
|
||||
{
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Power Glove 10%
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Power/Berserker Glove 12%
|
||||
if (modPlayer.gloveLevel < 2)
|
||||
modPlayer.gloveLevel = 2;
|
||||
}
|
||||
if (item.type == ItemID.BerserkerGlove)
|
||||
{
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Berserker Glove 0%
|
||||
}
|
||||
if (item.type == ItemID.MechanicalGlove)
|
||||
{
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Mechanical Glove 12%
|
||||
|
||||
@@ -782,11 +782,14 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
|
||||
if (item.type == ItemID.PowerGlove)
|
||||
{
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerGlove"));
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerBerserkerGlove"));
|
||||
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
|
||||
}
|
||||
if (item.type == ItemID.BerserkerGlove)
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("BerserkerGlove"));
|
||||
{
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerBerserkerGlove"));
|
||||
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
|
||||
}
|
||||
if (item.type == ItemID.MechanicalGlove)
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("MechanicalGlove") + AddedTooltip("TitanGloveLine"));
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
@@ -1651,35 +1654,6 @@ namespace CalamityMod.Items
|
||||
|
||||
return false;
|
||||
}
|
||||
// IV Drip tooltip FX
|
||||
if (line.Mod == "Terraria" && item.type == ModContent.ItemType<IVDripOnTheRocks>() && line.Name == "Tooltip4")
|
||||
{
|
||||
Vector2 basePosition = new Vector2(line.X, line.Y);
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, Main.UIScaleMatrix);
|
||||
|
||||
for (int i = 0; i < 3; i++) // Draw 3 lines of differing opacity, color, and displacement.
|
||||
{
|
||||
float timer = (float)Math.Sin(Main.GlobalTimeWrappedHourly + 1f) / 2f;
|
||||
|
||||
float angle = (Main.GlobalTimeWrappedHourly * 2f) + (i * MathHelper.TwoPi / 3f);
|
||||
float radius = timer * (3f + i * 6f);
|
||||
Vector2 offset = new Vector2((float)Math.Cos(angle) * 1.7f, (float)Math.Sin(angle) * 1f) * radius; // Offset in an elliptical pattern
|
||||
Vector2 pos = basePosition + offset;
|
||||
|
||||
Color color = MulticolorLerp(Math.Abs(timer + (i * 0.2f)) % 1f, Color.LightBlue, Color.LightGreen, (i == 3) ? Color.Blue : (i == 2) ? Color.Red : Color.White);
|
||||
float opacity = 1f - (i * 0.2f);
|
||||
float rotation = line.Rotation + (timer * (Main.GlobalTimeWrappedHourly * 0.00001f)); // This precision is intended
|
||||
|
||||
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, pos, color * opacity, rotation, line.Origin, line.BaseScale, line.MaxWidth, line.Spread);
|
||||
}
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, Main.UIScaleMatrix);
|
||||
|
||||
return false;
|
||||
}
|
||||
if (line.Mod == "Terraria" && item.type == ModContent.ItemType<OntologicalDespoiler>() && (line.Name == "Tooltip1" || line.Name == "Tooltip2" || line.Name == "Tooltip4" || line.Name == "Tooltip5" || line.Name == "Tooltip7"))
|
||||
{
|
||||
Color rarityColor = Color.Black;
|
||||
@@ -1787,60 +1761,7 @@ namespace CalamityMod.Items
|
||||
// Might be used for Miracle stuff later or something idk
|
||||
/*if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<Orderbringer>())
|
||||
{
|
||||
Color rarityColor = Color.White;
|
||||
Vector2 basePosition = new Vector2(line.X, line.Y);
|
||||
|
||||
float rate = Main.GlobalTimeWrappedHourly * 29;
|
||||
List<Color> eColors = new List<Color>()
|
||||
{
|
||||
Color.PaleVioletRed,
|
||||
Color.Coral,
|
||||
Color.Khaki,
|
||||
Color.PaleGreen,
|
||||
Color.Turquoise,
|
||||
Color.Violet
|
||||
};
|
||||
|
||||
int colorIndex = (int)(rate / 2 % eColors.Count);
|
||||
Color currentColor = eColors[colorIndex];
|
||||
Color nextColor = eColors[(colorIndex + 1) % eColors.Count];
|
||||
Color usedColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f);
|
||||
|
||||
|
||||
float sine = (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3 / MathHelper.Pi);
|
||||
sine = (float)Math.Pow(MathHelper.Lerp(sine, 0, 0.35f), 5);
|
||||
Vector2 backScale = line.BaseScale;
|
||||
Color backColor = usedColor;
|
||||
Vector2 shake = Main.rand.NextVector2Circular(15, 15) * sine;
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, Main.UIScaleMatrix);
|
||||
|
||||
int draws = 20;
|
||||
for (int i = 0; i < draws; i++)
|
||||
{
|
||||
shake = Main.rand.NextVector2Circular(15, 15) * sine;
|
||||
Vector2 backPosition = basePosition + (MathHelper.TwoPi * i / 20f).ToRotationVector2() * (5 + 0.5f * sine);
|
||||
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, shake * 4 + backPosition, backColor, line.Rotation, line.Origin, backScale, line.MaxWidth, line.Spread);
|
||||
}
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
|
||||
|
||||
Vector2 drawPosition = basePosition;
|
||||
Color drawColor = backColor;
|
||||
Vector2 rotationPoint = texture.Size() * 0.5f;
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
int length = line.Text.Length;
|
||||
Main.EntitySpriteDraw(texture, basePosition + Vector2.UnitX * length * 4 + Vector2.UnitY * 10 + Vector2.UnitX * (i % 2 == 0 ? -7 * i : 7 * i), null, drawColor, (MathHelper.PiOver2), rotationPoint, new Vector2(1 - 0.05f * i * (1 + 0.2f * -sine), 1 + 0.75f * i * (1 + 0.2f * sine) * 1f) * 0.3f * Main.rand.NextFloat(0.9f, 1f), SpriteEffects.None);
|
||||
}
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, Main.UIScaleMatrix);
|
||||
|
||||
// Draw the front text as usual.
|
||||
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, shake + basePosition, rarityColor, line.Rotation, line.Origin, line.BaseScale, line.MaxWidth, line.Spread);
|
||||
|
||||
return false;
|
||||
}*/
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) }, // VANILLA: 52 DMG, 20 UT, 6.5 KB
|
||||
{ ItemID.BeeGun, Do(DamageExact(11)) }, // VANILLA: 9 DMG
|
||||
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) }, // VANILLA: 30 DMG
|
||||
{ ItemID.Beenade, Do(DamageExact(11), UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 12 DMG, 15 UT, 6 VEL
|
||||
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(38)) }, // VANILLA: 23 DMG, 23 UT
|
||||
{ ItemID.Beenade, Do(UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 15 UT, 6 VEL
|
||||
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(35)) }, // VANILLA: 23 DMG, 23 UT
|
||||
{ ItemID.Bladetongue, Do(UseTurn, DamageExact(120), UseExact(22)) }, // VANILLA: 55 DMG, 28 UT
|
||||
{ ItemID.BlizzardStaff, Do(DamageExact(41)) }, // VANILLA: 58 DMG
|
||||
{ ItemID.BloodyMachete, Do(DamageExact(24)) }, // VANILLA: 20 DMG
|
||||
@@ -269,7 +269,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Uzi, Do(UseExact(8)) }, // VANILLA: 9 UT
|
||||
{ ItemID.ValkyrieYoyo, Do(DamageExact(48)) }, // VANILLA: 70 DMG. Has the same stats as Red's Throw
|
||||
{ ItemID.VenomStaff, Do(UseExact(27)) }, // VANILLA: 30 UT
|
||||
{ ItemID.WaspGun, Do(DamageExact(44)) }, // VANILLA: 31 DMG
|
||||
{ ItemID.WaspGun, Do(DamageExact(41)) }, // VANILLA: 31 DMG
|
||||
{ ItemID.WaterBolt, Do(DamageExact(23)) }, // VANILLA: 19 DMG
|
||||
{ ItemID.WhitePhaseblade, phaseblade },
|
||||
{ ItemID.WhitePhasesaber, phasesaber },
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Dyes
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.value = Item.sellPrice(gold: 2, silver: 50);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Dyes
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = Item.sellPrice(gold: 2, silver: 50);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,8 +22,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 28;
|
||||
Item.useAnimation = 8;
|
||||
Item.useTime = 8;
|
||||
Item.useAnimation = Item.useTime = 8;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.fishingPole = 45;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials
|
||||
Item.height = 56;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(gold: 6, silver: 66, copper: 66);
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
}
|
||||
public void DrawPulsingAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float baseScale)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Materials
|
||||
Item.height = 52;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(gold: 7);
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
public void DrawBackAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float baseScale)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Materials
|
||||
Item.height = 80;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(platinum: 1);
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public void DrawBackAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, Vector2 origin, float baseScale)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Pets
|
||||
{
|
||||
Item.DefaultToVanitypet(ModContent.ProjectileType<SCalPet>(), ModContent.BuffType<ClassicSCalPetBuff>());
|
||||
Item.value = Item.sellPrice(gold: 20);
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.Calamity().donorItem = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Buffs.Pets;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Pets
|
||||
{
|
||||
public class StarSwallowerUnit : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Pets";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToVanitypet(ModContent.ProjectileType<StarSwallowerPet>(), ModContent.BuffType<StarSwallowerPetBuff>());
|
||||
Item.value = Item.sellPrice(gold: 1);
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.AddBuff(Item.buffType, 15, true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Frog).
|
||||
AddIngredient<MysteriousCircuitry>(8).
|
||||
AddIngredient<DubiousPlating>(4).
|
||||
AddTile(TileID.Anvils).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 796 B |
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>());
|
||||
Item.value = Item.sellPrice(platinum: 4);
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
|
||||
@@ -22,10 +22,14 @@ namespace CalamityMod.Items.Placeables.FurnitureDriftwood
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<Walls.DriftwoodWall>(4).
|
||||
AddTile(TileID.WorkBenches).
|
||||
DisableDecraft().
|
||||
Register();
|
||||
AddIngredient<DriftwoodPlatform>(2).
|
||||
DisableDecraft().
|
||||
Register();
|
||||
CreateRecipe().
|
||||
AddIngredient<Walls.DriftwoodWall>(4).
|
||||
AddTile(TileID.WorkBenches).
|
||||
DisableDecraft().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,18 +37,10 @@ namespace CalamityMod.Items.Potions
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(15).
|
||||
AddIngredient(ItemID.BottledWater, 15).
|
||||
AddIngredient(ItemID.SuperManaPotion, 15).
|
||||
AddIngredient<StarblightSoot>(4).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
AddConsumeIngredientCallback(Recipe.IngredientQuantityRules.Alchemy).
|
||||
Register();
|
||||
|
||||
CreateRecipe(15).
|
||||
AddIngredient(ItemID.BottledWater, 15).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<AureusCell>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
AddTile(TileID.Bottles).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
Item.width = 34;
|
||||
Item.height = 54;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
|
||||
@@ -9,6 +9,7 @@ using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
@@ -21,6 +22,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
public static readonly SoundStyle Sound1 = new("CalamityMod/Sounds/Item/ShrimpSound1");
|
||||
public static readonly SoundStyle Sound2 = new("CalamityMod/Sounds/Item/ShrimpSound2");
|
||||
public static readonly SoundStyle Surprise = new("CalamityMod/Sounds/Item/ShrimpSurprise");
|
||||
|
||||
public static int ArmorPenetration = 15;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityGlobalItem modItem = Item.Calamity();
|
||||
@@ -29,6 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.height = 32;
|
||||
Item.shootSpeed = 10f;
|
||||
Item.damage = 24;
|
||||
Item.ArmorPenetration = ArmorPenetration;
|
||||
Item.mana = 10;
|
||||
Item.useAnimation = Item.useTime = 36;
|
||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
||||
|
||||
@@ -16,11 +16,6 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public class HyperdeathRiftScepter : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.staff[Type] = true;
|
||||
|
||||
@@ -11,6 +11,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public class IonBlaster : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Magic";
|
||||
|
||||
public static int ArmorPenetration = 40;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
|
||||
@@ -20,6 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.width = 68;
|
||||
Item.height = 38;
|
||||
Item.damage = 24;
|
||||
Item.ArmorPenetration = ArmorPenetration;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 12;
|
||||
Item.useAnimation = 7;
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.shoot = ModContent.ProjectileType<EnormousConsumingVortex>();
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.UseSound = SoundID.Item84;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.shoot = ModContent.ProjectileType<VehemenceHoldout>();
|
||||
Item.shootSpeed = 16.5f;
|
||||
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<VividBeam>();
|
||||
Item.shootSpeed = 6f;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo projSource, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 56;
|
||||
Item.height = 60;
|
||||
Item.damage = 85;
|
||||
Item.damage = 77;
|
||||
Item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.shoot = ProjectileType<ExobladeProj>();
|
||||
Item.shootSpeed = 9f;
|
||||
Item.rare = RarityType<BurnishedAuric>();
|
||||
Item.rare = RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override bool CanShoot(Player player)
|
||||
|
||||
@@ -20,10 +20,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 78;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.shoot = ModContent.ProjectileType<PhotonRipperProjectile>();
|
||||
Item.shootSpeed = 1f;
|
||||
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = Item.height = 28;
|
||||
Item.damage = 128;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.channel = true;
|
||||
|
||||
@@ -20,8 +20,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
|
||||
if (!Main.zenithWorld)
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.shoot = ModContent.ProjectileType<ViolenceThrownProjectile>();
|
||||
Item.shootSpeed = 15f;
|
||||
Item.channel = true;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<CondemnationArrow>();
|
||||
Item.shootSpeed = 16f;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.shootSpeed = 12f;
|
||||
Item.useAmmo = AmmoID.Arrow;
|
||||
Item.useTurn = true;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,14 +18,16 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public int SineCounter = 0;
|
||||
|
||||
public static int ArmorPenetration = 20;
|
||||
public static int AmmoSavedPercent = 80;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent);
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration, AmmoSavedPercent);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
Item.height = 24;
|
||||
Item.damage = 75;
|
||||
Item.ArmorPenetration = ArmorPenetration;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 1;
|
||||
Item.useAnimation = 4;
|
||||
@@ -57,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
for (int i = -1; i <= 1; i += 2)
|
||||
{
|
||||
Vector2 helixVel = (velocity * Main.rand.NextFloat(0.9f, 1.1f)).RotatedBy(MathHelper.ToRadians(i * sine));
|
||||
Projectile.NewProjectile(source, position, helixVel, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0, 0, player.altFunctionUse != 2 ? 1 : 0);
|
||||
Projectile.NewProjectile(source, position, helixVel, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0, 0, 1);
|
||||
}
|
||||
}
|
||||
Particle spark2 = new LineParticle(position + Main.rand.NextVector2Circular(6, 6), (velocity * 4).RotatedByRandom(0.2f) * Main.rand.NextFloat(0.8f, 1.2f), false, Main.rand.Next(15, 25 + 1), Main.rand.NextFloat(1.5f, 2f), new Color(229, 49, 39));
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.shoot = ModContent.ProjectileType<MagnomalyRocket>();
|
||||
Item.shootSpeed = 15f;
|
||||
Item.useAmmo = AmmoID.Rocket;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-30, -10);
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public static readonly SoundStyle Shot = new("CalamityMod/Sounds/Item/PolarisShot") { Volume = 0.6f };
|
||||
public static readonly SoundStyle Squeak = new("CalamityMod/Sounds/Custom/CuteSqueak") { Volume = 0.75f };
|
||||
|
||||
public static int ArmorPenetration = 15;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Type] = true;
|
||||
@@ -31,11 +34,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.width = 36;
|
||||
Item.height = 34;
|
||||
Item.damage = 35;
|
||||
Item.ArmorPenetration = ArmorPenetration;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
|
||||
Item.useTime = 9;
|
||||
Item.useAnimation = 9;
|
||||
|
||||
Item.useAnimation = Item.useTime = 9;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 0.5f;
|
||||
@@ -46,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.shoot = ModContent.ProjectileType<PolarStar>();
|
||||
Item.shootSpeed = 10f;
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
|
||||
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalization(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal").Format(ArmorPenetration));
|
||||
public override bool AltFunctionUse(Player player) => Main.zenithWorld ? true : false;
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
@@ -129,7 +130,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
SoundEngine.PlaySound(Shot, player.Center);
|
||||
|
||||
for (int i = 0; i < (Happy ? 3 : 1); i++)
|
||||
Projectile.NewProjectile(source, position + velocity * 5f, velocity.RotatedByRandom(0.05f * (i != 0 ? 6 : 1)), ModContent.ProjectileType<PolarStar>(), damage, knockback, player.whoAmI, 0f, ShotNumber);
|
||||
Projectile.NewProjectile(source, position + velocity * 5f, velocity.RotatedByRandom(0.05f * (i != 0 ? 6 : 1)), type, damage, knockback, player.whoAmI, 0f, ShotNumber);
|
||||
|
||||
if (ShotNumber >= 2) // Cycle the shot color
|
||||
ShotNumber = 0;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.channel = true;
|
||||
Item.knockBack = 8f;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<PrismEnergyBullet>();
|
||||
Item.shootSpeed = 11f;
|
||||
|
||||
@@ -18,14 +18,16 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public int SineCounter = 0;
|
||||
|
||||
public static int ArmorPenetration = 200;
|
||||
public static int AmmoSavedPercent = 80;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent);
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration, AmmoSavedPercent);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 60;
|
||||
Item.height = 26;
|
||||
Item.damage = 232;
|
||||
Item.ArmorPenetration = ArmorPenetration;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 1;
|
||||
Item.useAnimation = 4;
|
||||
@@ -61,9 +63,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Vector2 helixVel1 = (velocity * Main.rand.NextFloat(0.9f, 1.1f)).RotatedBy(MathHelper.ToRadians(sine));
|
||||
Vector2 helixVel2 = (velocity * Main.rand.NextFloat(0.9f, 1.1f)).RotatedBy(MathHelper.ToRadians(-sine));
|
||||
Vector2 helixVel3 = (velocity * Main.rand.NextFloat(0.9f, 1.1f)).RotatedBy(MathHelper.ToRadians(sine2));
|
||||
Projectile.NewProjectile(source, position.X, position.Y, helixVel1.X, helixVel1.Y, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, player.altFunctionUse != 2 ? 2f : 0);
|
||||
Projectile.NewProjectile(source, position.X, position.Y, helixVel2.X, helixVel2.Y, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, player.altFunctionUse != 2 ? 4f : 0);
|
||||
Projectile.NewProjectile(source, position.X, position.Y, helixVel3.X, helixVel3.Y, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, player.altFunctionUse != 2 ? 3f : 0);
|
||||
Projectile.NewProjectile(source, position, helixVel1, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, 2f);
|
||||
Projectile.NewProjectile(source, position, helixVel2, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, 4f);
|
||||
Projectile.NewProjectile(source, position, helixVel3, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0, 3f);
|
||||
}
|
||||
Particle spark2 = new LineParticle(position + Main.rand.NextVector2Circular(6, 6), (velocity * 4).RotatedByRandom(0.35f) * Main.rand.NextFloat(0.8f, 1.2f), false, Main.rand.Next(15, 25 + 1), Main.rand.NextFloat(1.5f, 2f), Main.rand.NextBool() ? Color.MediumOrchid : Color.DarkViolet);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class TheJailor : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 102;
|
||||
@@ -23,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 8f;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.UseSound = SoundID.Item14;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<PrismMine>();
|
||||
|
||||
@@ -22,10 +22,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
CalamityItemSets.ShowScalingCritDamageTooltip[Type] = true;
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.shoot = ModContent.ProjectileType<CelestusProj>();
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.autoReuse = true;
|
||||
Item.noMelee = true;
|
||||
|
||||
@@ -35,11 +35,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.shootSpeed = Speed;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.3f;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.shootSpeed = 16f;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.shoot = ModContent.ProjectileType<SupernovaBomb>();
|
||||
Item.shootSpeed = 16f;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.7f;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.knockBack = 1f;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
|
||||
Item.UseSound = SoundID.Item117;
|
||||
Item.shoot = ModContent.ProjectileType<ExoskeletonPlasmaCannon>();
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shootSpeed = 10f;
|
||||
Item.noUseGraphic = true;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
Item.sentry = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<ExoticRainbow>();
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.maxMinions >= 10;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.noMelee = true;
|
||||
Item.autoReuse = true;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.UseSound = SoundID.DD2_EtherianPortalOpen;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
Item.rare = ModContent.RarityType<CalamityRed>();
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -19,11 +19,6 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public new string LocalizationCategory => "Items.Weapons.Summon";
|
||||
|
||||
public bool FocusFetch = false;
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 68;
|
||||
|
||||
Loaded 100 of 155 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user