Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into VictideSet

This commit is contained in:
Altixal committed 2025-05-20 11:00:53 +07:00
commit ae4897b511
221 files changed
+5522 -1634

No files matched your search

+59 -1
View File
@@ -5,11 +5,18 @@ using Microsoft.Xna.Framework.Graphics;
using System;
using ReLogic.Content;
using Terraria.ID;
using CalamityMod.Graphics;
using System.Reflection;
using Terraria.Graphics.Shaders;
namespace CalamityMod.Backgrounds
{
public class SunkenSeaBurrowsBG : ModSystem
{
private static ManagedRenderTarget WaterDistortionTarget;
private static bool CurrentlyRendering { get; set; }
public override void Load()
{
if (Main.dedServ)
@@ -17,7 +24,10 @@ namespace CalamityMod.Backgrounds
return;
}
On_Main.CheckMonoliths += DrawToTarget;
On_Main.DrawBackgroundBlackFill += On_Main_DrawBackgroundBlackFill;
Main.QueueMainThreadAction(() => WaterDistortionTarget = new(true, ManagedRenderTarget.CreateScreenSizedTarget));
}
/// <summary>
@@ -48,6 +58,31 @@ namespace CalamityMod.Backgrounds
}
}
private void DrawToTarget(On_Main.orig_CheckMonoliths orig)
{
if (Main.gameMenu)
{
orig();
return;
}
CurrentlyRendering = true;
WaterDistortionTarget.SwapTo();
// 13MAY2025: fryzahh: Note that when other Sunken Sea backgrounds are implemented they should use this same system.
// Leaving this here for other programmers, in case I don't get to doing this myself.
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, CalamityUtils.BackgroundMatrix);
DrawBurrowsBG();
Main.spriteBatch.End();
Main.graphics.GraphicsDevice.SetRenderTarget(null);
CurrentlyRendering = false;
orig();
}
private void On_Main_DrawBackgroundBlackFill(On_Main.orig_DrawBackgroundBlackFill orig, Main self)
{
if (Main.gameMenu || Main.screenPosition.Y + Main.screenHeight < ((int)Main.worldSurface) * 16f)
@@ -58,7 +93,30 @@ namespace CalamityMod.Backgrounds
orig(self);
DrawBurrowsBG();
// This won't render if the Wave Quality setting isn't turned off unfortunately, so don't bother running any of the shader
// rendering code if that setting is on.
if (Main.WaveQuality > 0 || !CalamityClientConfig.Instance.SunkenSeaBackgroundDistortion)
{
DrawBurrowsBG();
}
else
{
MiscShaderData distortionShader = GameShaders.Misc["CalamityMod:BasicTextureDistortion"];
Asset<Texture2D> distortionTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Swirls");
// Apply a distortion shader to the Sunken Sea backgrounds to give them an underwater ripple-like effect.
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, distortionShader.Shader, CalamityUtils.BackgroundMatrix);
distortionShader.Shader.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly);
distortionShader.Shader.Parameters["distortionXSpeed"].SetValue(-0.012f);
distortionShader.Shader.Parameters["distortionYSpeed"].SetValue(0.02f);
distortionShader.Shader.Parameters["distortionStrength"].SetValue(0.035f);
distortionShader.Shader.Parameters["noiseScale"].SetValue(0.075f);
distortionShader.SetShaderTexture(distortionTexture);
Main.spriteBatch.Draw(WaterDistortionTarget.Target, new Rectangle(16, 16, Main.screenWidth, Main.screenHeight), Color.White);
}
}
public static float Transparency;
+33 -6
View File
@@ -125,7 +125,7 @@ namespace CalamityMod.CalPlayer
public bool noLifeRegen = false;
public bool reducedDaybrokenDamage = false;
public bool reducedNightwitherDamage = false;
public float rangedAmmoCost = 1f;
public float ammoCost = 1f;
public float healingPotionMultiplier = 1f;
/// <summary>
/// Tracks whether or not the player is currently holding Gael's Greatsword.<br/>
@@ -727,15 +727,13 @@ namespace CalamityMod.CalPlayer
public bool theBee = false;
public bool arcFlashRing = false;
public bool arcFlashRingVisual = false;
public int generalBandCooldown = 0;
public bool bGlassBand = false; // Obsidian band
public bool bGlassBandVisual = false;
public int bGlassbandCooldown = 0;
public bool batholithBangle = false; // Granite band
public bool batholithBangleVisual = false;
public int batholithBangleCooldown = 0;
public bool protolithBangle = false; // Marble band
public bool protolithBangleVisual = false;
public int protolithBangleCooldown = 0;
/// <summary> Used to prevent dodges from triggering The Bee's full health damage reduction cooldown. </summary>
public bool shouldTriggerBeeCooldown = false;
public int theBeeCooldown = 0;
@@ -807,6 +805,12 @@ namespace CalamityMod.CalPlayer
public int transformerCooldown = 0;
public int transformerDelay = 0;
public int transformerStoredKills = 0;
public bool bloomStone = false;
public bool bloomStoneHookVisuals = false;
public int bloomStoneHealInc = 0;
public int bloomStoneTotalHeal = 0;
public int bloomStoneHealTimer = 0;
public int bloomStoneDR = 0;
public bool hideOfDeus = false;
public bool dAmulet = false;
public bool rampartOfDeities = false;
@@ -2177,6 +2181,10 @@ namespace CalamityMod.CalPlayer
arcFlashRingVisual = false;
bGlassBand = false;
bGlassBandVisual = false;
batholithBangle = false; // Granite band
batholithBangleVisual = false;
protolithBangle = false; // Marble band
protolithBangleVisual = false;
aFossil = false;
aPowder = false;
fallingBlockProtection = false;
@@ -2196,6 +2204,8 @@ namespace CalamityMod.CalPlayer
ilSpark = false;
transformer = false;
transformerVisual = false;
bloomStone = false;
bloomStoneHookVisuals = false;
hideOfDeus = false;
dAmulet = false;
rampartOfDeities = false;
@@ -2335,7 +2345,7 @@ namespace CalamityMod.CalPlayer
lunicCorpsSet = false;
lunicCorpsLegs = false;
rangedAmmoCost = 1f;
ammoCost = 1f;
healingPotionMultiplier = 1f;
avertorBonus = false;
@@ -2857,6 +2867,10 @@ namespace CalamityMod.CalPlayer
auralisAurora = 0;
necroReviveCounter = -1;
hideOfDeusTimer = 0;
bloomStoneHealInc = 0;
bloomStoneTotalHeal = 0;
bloomStoneHealTimer = 0;
bloomStoneDR = 0;
murasamaHitCooldown = 0;
RustyMedallionCooldown = 0;
SulphWaterPoisoningLevel = 0f;
@@ -3078,7 +3092,7 @@ namespace CalamityMod.CalPlayer
bloodfinTimer = 0;
healCounter = 300;
danceOfLightCharge = 0;
rangedAmmoCost = 1f;
ammoCost = 1f;
healingPotionMultiplier = 1f;
avertorBonus = false;
divineBless = false;
@@ -4368,6 +4382,17 @@ namespace CalamityMod.CalPlayer
}
}
//Star in a Bottle gives Mana Regeneration instead of it's usual effect when you don't already have Mana Regeneration
if (!Player.manaRegenBuff && Player.HasBuff(BuffID.StarInBottle))
{
//Cancel out Star In A Bottle's normal effect
Player.manaRegenDelayBonus -= 0.5f;
Player.manaRegenBonus -= 10;
//Apply Mana Regen Potion effect
Player.manaRegenBuff = true;
}
ForceVariousEffects();
}
#endregion
@@ -4542,6 +4567,8 @@ namespace CalamityMod.CalPlayer
public override void GetHealLife(Item item, bool quickHeal, ref int healValue)
{
healValue = (int)(healValue * healingPotionMultiplier);
if (bloomStone)
healValue = 0;
}
#endregion
+15
View File
@@ -4,6 +4,7 @@ using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer.DrawLayers;
using CalamityMod.Dusts;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Particles;
@@ -327,6 +328,20 @@ namespace CalamityMod.CalPlayer
GeneralParticleHandler.SpawnParticle(Plus);
}
}
if (calamityPlayer.bloomStoneDR > 0 && drawInfo.shadow == 0f)
{
if (Main.rand.NextBool(10))
{
MediumMistParticle pollenCloud = new(Player.Center, Main.rand.NextVector2Circular(1f, 1f), Color.Yellow, Color.Gold, 0.85f, 100f);
GeneralParticleHandler.SpawnParticle(pollenCloud);
}
if (Main.rand.NextBool(4))
{
Dust pollenDust = Dust.NewDustDirect(Player.position, Player.width, Player.height, ModContent.DustType<LightDust>(), newColor: Color.Gold, Scale: 0.4f);
pollenDust.noLightEmittence = true;
pollenDust.noGravity = true;
}
}
if (calamityPlayer.bloodfinBoost && drawInfo.shadow == 0f)
{
if (Main.rand.NextBool(3))
+51 -8
View File
@@ -78,6 +78,7 @@ using Terraria.GameContent.Events;
using Terraria.GameInput;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using ProvidenceBoss = CalamityMod.NPCs.Providence.Providence;
@@ -392,7 +393,10 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center + Player.velocity * 1.5f, Vector2.Zero, ModContent.ProjectileType<PauldronDash>(), damage, 0, Player.whoAmI);
}
if (Player.dashDelay == -1)
{
Player.endurance += 0.1f;
Player.noKnockback = true;
}
}
@@ -917,7 +921,7 @@ namespace CalamityMod.CalPlayer
// Create a direct strike to hit this specific NPC.
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Calamity>()));
Projectile sigilStrike = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), sigilDamage, 0f, Player.whoAmI, target.whoAmI);
Projectile sigilStrike = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), sigilDamage, 0f, Player.whoAmI, target.whoAmI, 255f);
// Enable crits by setting the sigil's damage class to be whatever the player's strongest damage class is.
sigilStrike.DamageType = Player.GetBestClass();
@@ -1338,10 +1342,16 @@ namespace CalamityMod.CalPlayer
}
else
{
if (Player.mount.Type == MountID.Slime || Player.mount.Type == MountID.PogoStick)
if (Player.mount.Type == MountID.Slime)
Player.velocity.X *= 0.91f;
else if (Player.mount.Type == MountID.QueenSlime)
Player.velocity.X *= 0.95f;
else if (Player.mount.Type == MountID.PogoStick)
{
if (Player.velocity.X > 10 || Player.velocity.X < -10)
Player.velocity.X *= 0.99f; //Stops infinite high-speed movement, but allows fun pogo movement tech still
Player.maxFallSpeed *= 0.75f; // 1.5x fall speed instead of 2x to counterbalance
}
}
// Increase Rope climb velocities, if enabled
@@ -2052,12 +2062,8 @@ namespace CalamityMod.CalPlayer
VoidCooldown--;
if (ursaSergeantCooldown > 0)
ursaSergeantCooldown--;
if (bGlassbandCooldown > 0)
bGlassbandCooldown--;
if (batholithBangleCooldown > 0)
batholithBangleCooldown--;
if (protolithBangleCooldown > 0)
protolithBangleCooldown--;
if (generalBandCooldown > 0)
generalBandCooldown--;
if (AlchFlaskCooldown > 0)
AlchFlaskCooldown--;
if (tarraRangedCooldown > 0)
@@ -2076,6 +2082,43 @@ namespace CalamityMod.CalPlayer
jetPackDash--;
if (theBeeCooldown > 0)
theBeeCooldown--;
if (bloomStoneHealTimer > 0)
{
if (bloomStone && bloomStoneHealTimer % 40 == 0)
{
Player.HealPlayer(Math.Min(bloomStoneHealInc, bloomStoneTotalHeal));
// Special specifically programmed interaction with Chalice of the Blood God: Healing over time clears bits of the bleedout buffer.
if (chaliceOfTheBloodGod && chaliceBleedoutBuffer > 0D)
{
float amountOfBleedToClear = ChaliceOfTheBloodGod.HealingPotionRatioForBufferClear * bloomStoneHealInc;
chaliceBleedoutBuffer -= amountOfBleedToClear;
// Display text indicating that healing was applied to the bleedout buffer.
if (!Main.dedServ)
{
string text = $"(+{amountOfBleedToClear})";
Rectangle location = new Rectangle((int)Player.position.X + 4, (int)Player.position.Y - 3, Player.width - 4, Player.height - 4);
CombatText.NewText(location, ChaliceOfTheBloodGod.BleedoutBufferDamageTextColor, Language.GetTextValue(text), dot: true);
}
}
bloomStoneTotalHeal -= bloomStoneHealInc;
if (bloomStoneTotalHeal < 0)
bloomStoneTotalHeal = 0;
}
bloomStoneHealTimer--;
}
else
{
bloomStoneTotalHeal = 0;
bloomStoneHealInc = 0;
}
if (bloomStoneDR > 0)
{
Player.endurance += bloomStoneHealTimer > 0 ? 0.12f : 0.06f;
bloomStoneDR--;
}
if (summonProjCooldown > 0f)
summonProjCooldown -= 1f;
if (ataxiaDmg > 0f)
+77 -15
View File
@@ -10,7 +10,6 @@ using CalamityMod.Dusts;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Armor.Reaver;
using CalamityMod.Items.Fishing.AstralCatches;
using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Items.VanillaArmorChanges;
using CalamityMod.NPCs;
using CalamityMod.NPCs.NormalNPCs;
@@ -26,12 +25,10 @@ using CalamityMod.Projectiles.Typeless;
using CalamityMod.Systems;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Mono.Cecil;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
using static System.Net.Mime.MediaTypeNames;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.CalPlayer
@@ -146,14 +143,46 @@ namespace CalamityMod.CalPlayer
// Ursa Sergeant slash cooldown is reset on kill
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
ursaSergeantCooldown = (int)MathHelper.Clamp(ursaSergeantCooldown - 180, 0, 300);
if (bGlassBand && bGlassbandCooldown == 0)
if (generalBandCooldown == 0)
{
var source = item.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BlackGlassBandProjectile>(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
bGlassbandCooldown = BlackGlassBand.cooldown;
int cooldown = 0;
if (bGlassBand)
{
var source = item.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BlackGlassBandProjectile>(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
if (cooldown < BlackGlassBand.cooldown)
cooldown = BlackGlassBand.cooldown;
}
if (protolithBangle && item.DamageType == DamageClass.Ranged)
{
var source = item.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(ProtolithBangle.damage);
Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<ProtolithBangleProjectile>(), damage, -1, Player.whoAmI, target.whoAmI);
band.DamageType = DamageClass.Ranged;
if (cooldown < ProtolithBangle.cooldown)
cooldown = ProtolithBangle.cooldown;
}
if (batholithBangle && item.DamageType == DamageClass.Magic)
{
var source = item.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BatholithBangle.damage);
Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BatholithBangleProjectile>(), damage, -1, Player.whoAmI, target.whoAmI);
band.DamageType = DamageClass.Magic;
if (cooldown < BatholithBangle.cooldown)
cooldown = BatholithBangle.cooldown;
}
if (cooldown > 0) // Check if a band effect went off, and apply the highest cooldown
{
generalBandCooldown = cooldown;
Player.AddCooldown(Cooldowns.GenericBandCooldown.ID, cooldown);
}
}
if (luxorsGift)
luxorHit = true;
@@ -316,14 +345,47 @@ namespace CalamityMod.CalPlayer
// Ursa Sergeant slash cooldown is reset on kill
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
ursaSergeantCooldown = (int)MathHelper.Clamp(ursaSergeantCooldown - UrsaSergeant.CooldownReducedPerKill, 0, UrsaSergeant.MaxCooldown);
if (bGlassBand && bGlassbandCooldown == 0)
if (generalBandCooldown == 0)
{
var source = proj.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BlackGlassBandProjectile>(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
bGlassbandCooldown = BlackGlassBand.cooldown;
int cooldown = 0;
// NOTE: Apparently Pulse Pistol/Pulse Rifle projectiles will set spawned projectiles here to inherit the proj ID???
// No clue why this happens or how to fix it, but it just breaks using multiple band types together on these two weapons
if (bGlassBand)
{
var source = proj.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BlackGlassBand.damage);
Vector2 launchVel = Utils.DirectionTo(Player.Center, target.Center) * 6;
Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BlackGlassBandProjectile>(), damage, -1, Player.whoAmI, target.whoAmI, launchVel.X, launchVel.Y);
if (cooldown < BlackGlassBand.cooldown)
cooldown = BlackGlassBand.cooldown;
}
if (protolithBangle && proj.DamageType == DamageClass.Ranged)
{
var source = proj.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(ProtolithBangle.damage);
Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<ProtolithBangleProjectile>(), damage, -1, Player.whoAmI, target.whoAmI);
band.DamageType = DamageClass.Ranged;
if (cooldown < ProtolithBangle.cooldown)
cooldown = ProtolithBangle.cooldown;
}
if (batholithBangle && proj.DamageType == DamageClass.Magic)
{
var source = proj.GetSource_FromThis();
int damage = (int)Player.GetBestClassDamage().ApplyTo(BatholithBangle.damage);
Projectile band = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<BatholithBangleProjectile>(), damage, -1, Player.whoAmI, target.whoAmI);
band.DamageType = DamageClass.Magic;
if (cooldown < BatholithBangle.cooldown)
cooldown = BatholithBangle.cooldown;
}
if (cooldown > 0) // Check if a band effect went off, and apply the highest cooldown
{
generalBandCooldown = cooldown;
Player.AddCooldown(Cooldowns.GenericBandCooldown.ID, cooldown);
}
}
if (luxorsGift && proj.type != ModContent.ProjectileType<LuxorsGiftMelee>() && proj.type != ModContent.ProjectileType<LuxorsGiftRanged>() && proj.type != ModContent.ProjectileType<LuxorsGiftMagic>() && proj.type != ModContent.ProjectileType<LuxorsGiftSummon>() && proj.type != ModContent.ProjectileType<LuxorsGiftRogue>() && proj.type != ModContent.ProjectileType<LuxorsGiftClassless>())
luxorHit = true;
+9 -6
View File
@@ -16,16 +16,19 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
//Todo : Make this work even for accessories by somehow checking for the players.head equipslot's item instead of the head item.
Player drawPlayer = drawInfo.drawPlayer;
Item headItem = drawPlayer.armor[0];
if (drawPlayer.armor[10].type > ItemID.None)
headItem = drawPlayer.armor[10];
if (drawPlayer.head == -1)
return;
if (ModContent.GetModItem(headItem.type) is IExtendedHat extendedHatDrawer)
if (EquipLoader.GetEquipTexture(EquipType.Head, drawPlayer.head) == null)
return;
ModItem headItem = EquipLoader.GetEquipTexture(EquipType.Head, drawPlayer.head).Item;
if (headItem is IExtendedHat extendedHatDrawer)
{
string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.ModItem.Name;
string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.Name;
int equipSlot = EquipLoader.GetEquipSlot(Mod, equipSlotName, EquipType.Head);
if (extendedHatDrawer.PreDrawExtension(drawInfo) && !drawInfo.drawPlayer.dead && equipSlot == drawPlayer.head)
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod
//
public static readonly Condition DownedDesertScourge = Create("Drops.DownedDS", () => DownedBossSystem.downedDesertScourge);
public static readonly Condition DownedCrabulon = Create("Drops.DownedCrabulon", () => DownedBossSystem.downedDesertScourge);
public static readonly Condition DownedCrabulon = Create("Drops.DownedCrabulon", () => DownedBossSystem.downedCrabulon);
public static readonly Condition DownedHiveMind = Create("Drops.DownedHM", () => DownedBossSystem.downedHiveMind);
public static readonly Condition DownedPerforator = Create("Drops.DownedPerfs", () => DownedBossSystem.downedPerforator);
public static readonly Condition DownedSlimeGod = Create("Drops.DownedSG", () => DownedBossSystem.downedSlimeGod);
+4
View File
@@ -76,6 +76,10 @@ namespace CalamityMod
[DefaultValue(true)]
public bool EnableVanillaTextureEdits { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool SunkenSeaBackgroundDistortion { get; set; }
private const int MinParticleLimit = 500;
private const int MaxParticleLimit = 10000;
+19
View File
@@ -0,0 +1,19 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.Localization;
using static CalamityMod.CalamityUtils;
namespace CalamityMod.Cooldowns
{
public class GenericBandCooldown : CooldownHandler
{
public static new string ID => "BandCooldown";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/GenericBandCooldown";
public override Color OutlineColor => Color.White;
public override Color CooldownStartColor => Color.SlateGray;
public override Color CooldownEndColor => Color.Gray;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

+26
View File
@@ -0,0 +1,26 @@
sampler baseTexture : register(s0);
sampler distortionTexture : register(s1);
float time;
float distortionXSpeed;
float distortionYSpeed;
float distortionStrength;
float noiseScale;
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
{
float2 distortedCoords = coords + float2(time * distortionXSpeed, time * distortionYSpeed);
distortedCoords *= noiseScale;
float distortion = tex2D(distortionTexture, distortedCoords).r;
float4 returnColor = tex2D(baseTexture, coords + distortion * distortionStrength);
return returnColor * sampleColor.a;
}
technique Technique1
{
pass DistortionPass
{
PixelShader = compile ps_2_0 PixelShaderFunction();
}
}
Binary file not shown.
+13
View File
@@ -210,6 +210,14 @@ namespace CalamityMod.Effects
internal static Effect FlipScreenShader;
#endregion
//
// All below shaders were created by fryzahh
//
#region fryzahh's Shaders
// A simple shader which distorts an image using a provided texture of choice.
internal static Effect BasicTextureDistortionShader;
#endregion
public override void PostSetupContent()
{
AssetRepository calAss = CalamityMod.Instance.Assets;
@@ -417,6 +425,11 @@ namespace CalamityMod.Effects
FlipScreenShader = LoadShader("ScreenShaders/FlipScreen");
RegisterScreenShader(FlipScreenShader, "FlipTheScreen", "FlipScreen",EffectPriority.VeryHigh);
#endregion
#region Loading fryzahh's Shaders
BasicTextureDistortionShader = LoadShader("BasicTextureDistortionShader");
RegisterMiscShader(BasicTextureDistortionShader, "DistortionPass", "BasicTextureDistortion");
#endregion
}
// Shorthand to register a loaded shader in Terraria's graphics engine
+1 -1
View File
@@ -181,7 +181,7 @@ namespace CalamityMod.Events
/// </summary>
public static void TryStartEvent(bool forceRain = false)
{
if (AcidRainEventIsOngoing || (!NPC.downedBoss1 && !Main.hardMode && !DownedBossSystem.downedAquaticScourge) || BossRushEvent.BossRushActive)
if (AcidRainEventIsOngoing || (!NPC.downedBoss1 && !Main.hardMode && !DownedBossSystem.downedAquaticScourge && !DownedBossSystem.downedPolterghast) || BossRushEvent.BossRushActive || Terraria.GameContent.Creative.CreativePowerManager.Instance.GetPower<Terraria.GameContent.Creative.CreativePowers.FreezeRainPower>().Enabled)
return;
int playerCount = Main.CurrentFrameFlags.ActivePlayersCount;
Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

+2 -1
View File
@@ -652,7 +652,8 @@ namespace CalamityMod.ILEditing
if (modPlayer is null)
return;
if (modPlayer.chaliceOfTheBloodGod && modPlayer.chaliceBleedoutBuffer > 0D)
// CIT 17MAY2025: Bleedout clear has a special interaction with Bloom Stone handled elsewhere; do not run this if wearing Bloom Stone
if (modPlayer.chaliceOfTheBloodGod && modPlayer.chaliceBleedoutBuffer > 0D && !modPlayer.bloomStone)
{
// 20FEB2024: Ozzatron: to prevent abuse, buffer clearing is now 50% of the potion instead of 50% of your buffer
float amountOfBleedToClear = ChaliceOfTheBloodGod.HealingPotionRatioForBufferClear * player.GetHealLife(potion, true);
+39
View File
@@ -0,0 +1,39 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class BatholithBangle : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int cooldown = 600;
public static int damage = 225;
public override void SetDefaults()
{
Item.width = 36;
Item.height = 28;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.batholithBangle = true;
modPlayer.batholithBangleVisual = !hideVisual;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BlackGlassBand>().
AddRecipeGroup("Boss2Material", 15).
AddIngredient(ItemID.Granite, 45).
AddIngredient(ItemID.Amber, 3).
AddIngredient(ItemID.FallenStar, 5).
AddTile(TileID.Anvils).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

+5 -5
View File
@@ -8,8 +8,8 @@ namespace CalamityMod.Items.Accessories
public class BlackGlassBand : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int cooldown = 420;
public static int damage = 40;
public static int cooldown = 300;
public static int damage = 32;
public override void SetDefaults()
{
Item.width = 30;
@@ -27,9 +27,9 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnyGoldBar", 5).
AddIngredient(ItemID.Diamond, 2).
AddIngredient(ItemID.Obsidian, 25).
AddRecipeGroup("AnyGoldBar", 8).
AddIngredient(ItemID.Diamond, 3).
AddIngredient(ItemID.Obsidian, 35).
AddTile(TileID.Anvils).
Register();
}
+1
View File
@@ -40,6 +40,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().blazingCore = true;
player.noKnockback = true;
}
public static void HandleStars(Player player)
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.bloodflareCore = true;
player.noKnockback = true;
}
}
}
+4 -95
View File
@@ -22,101 +22,10 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.25f, 0.4f, 0.2f);
// Provide life benefits if the player is standing on ground and has typical gravity.
int x = (int)player.Center.X / 16;
int y = (int)(player.Bottom.Y - 1f) / 16;
Tile groundTile = CalamityUtils.ParanoidTileRetrieval(x, y + 1);
bool groundTileIsSolid = groundTile.HasUnactuatedTile && (Main.tileSolid[groundTile.TileType] || Main.tileSolidTop[groundTile.TileType]);
if (groundTileIsSolid && player.gravDir == 1f)
modPlayer.BloomStoneRegen = true;
// Flower boots effects.
if (player.whoAmI == Main.myPlayer && player.velocity.Y == 0f && player.grappling[0] == -1)
{
Tile walkTile = CalamityUtils.ParanoidTileRetrieval(x, y);
if (!walkTile.HasTile && walkTile.LiquidAmount == 0 && groundTile != null && WorldGen.SolidTile(groundTile))
{
walkTile.TileFrameY = 0;
walkTile.Get<TileWallWireStateData>().Slope = SlopeType.Solid;
walkTile.Get<TileWallWireStateData>().IsHalfBlock = false;
// On dirt blocks, there's a small chance to grow a dye plant.
if (groundTile.TileType == TileID.Dirt)
{
if (Main.rand.NextBool(1000))
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.DyePlants;
walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
while (walkTile.TileFrameX == 144)
walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
}
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
}
// On grass, grow flowers.
if (groundTile.TileType == TileID.Grass)
{
if (Main.rand.NextBool())
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.Plants;
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
while (walkTile.TileFrameX == 144)
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 11));
}
else
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.Plants2;
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
while (walkTile.TileFrameX == 144)
walkTile.TileFrameX = (short)(18 * Main.rand.Next(6, 21));
}
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
}
// On hallowed grass, grow hallowed flowers.
else if (groundTile.TileType == TileID.HallowedGrass)
{
if (Main.rand.NextBool())
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.HallowedPlants;
walkTile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
while (walkTile.TileFrameX == 90)
walkTile.TileFrameX = (short)(18 * Main.rand.Next(4, 7));
}
else
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.HallowedPlants2;
walkTile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
while (walkTile.TileFrameX == 90)
walkTile.TileFrameX = (short)(18 * Main.rand.Next(2, 8));
}
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
}
// On jungle grass, grow jungle flowers.
else if (groundTile.TileType == TileID.JungleGrass)
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.JunglePlants2;
walkTile.TileFrameX = (short)(18 * Main.rand.Next(9, 17));
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendTileSquare(-1, x, y, 1, TileChangeType.None);
}
}
}
modPlayer.healingPotionMultiplier += 0.5f;
modPlayer.bloomStone = true;
modPlayer.bloomStoneHookVisuals = true;
}
public override void UpdateVanity(Player player) => player.Calamity().bloomStoneHookVisuals = true;
}
}
+1
View File
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.darkSunRing = true;
player.noKnockback = true;
}
public override void AddRecipes()
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().deadshotBrooch = true;
player.Calamity().rangedAmmoCost *= 0.8f;
player.Calamity().ammoCost *= 0.8f;
player.GetDamage<RangedDamageClass>() += 0.12f;
player.GetCritChance<RangedDamageClass>() += 7;
}
+1
View File
@@ -57,6 +57,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.adrenaline = 0f;
modPlayer.draedonsHeart = true;
player.noKnockback = true;
modPlayer.hadNanomachinesLastFrame = true;
modPlayer.AdrenalineDuration = NanomachinesDuration;
modPlayer.contactDamageReduction += ContactDamageReduction;
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.flameLickedShell = true;
player.noKnockback = true;
}
public static void handleParry(Player player)
+2 -6
View File
@@ -1,8 +1,4 @@
using System;
using CalamityMod.Buffs.Summon;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,8 +10,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 42;
Item.height = 36;
Item.width = 48;
Item.height = 54;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 798 B

After

Width:  |  Height:  |  Size: 1.4 KiB

+1
View File
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Accessories
{
OldDukeScalesPlayer modPlayer = player.GetModPlayer<OldDukeScalesPlayer>();
modPlayer.OldDukeScalesOn = true;
player.noKnockback = true;
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
player.magicQuiver = true;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.deadshotBrooch = true;
modPlayer.rangedAmmoCost *= 0.8f;
modPlayer.ammoCost *= 0.8f;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => tooltips.IntegrateHotkey(CalamityKeybinds.AmmoCycleHotkey);
+40
View File
@@ -0,0 +1,40 @@
using CalamityMod.CalPlayer;
using CalamityMod.Items.Weapons.Ranged;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class ProtolithBangle : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int cooldown = 420;
public static int damage = 68;
public override void SetDefaults()
{
Item.width = 34;
Item.height = 34;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.protolithBangle = true;
modPlayer.protolithBangleVisual = !hideVisual;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BlackGlassBand>().
AddRecipeGroup("Boss2Material", 15).
AddIngredient(ItemID.Marble, 45).
AddIngredient(ItemID.Ruby, 3).
AddIngredient(ItemID.Lens, 5).
AddTile(TileID.Anvils).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+8 -8
View File
@@ -153,13 +153,13 @@ namespace CalamityMod.Items.Accessories
}
}
// If ranged, or any direct subclass thereof, display ranged ammo consumption
if (dc == DamageClass.Ranged || dc.GetModifierInheritance(DamageClass.Ranged).Equals(StatInheritanceData.Full))
stats2 += "\n" + this.GetLocalization("RangedStats").Format(TwoPlaces(100f * player.GetRangedAmmoCostReduction()));
// If held item uses ammo, display ammo consumption
if (heldItem.useAmmo > 0)
stats2 += "\n" + this.GetLocalization("AmmoStats").Format(OnePlace(100f * player.GetAmmoCostReduction()));
// If magic, or any direct subclass thereof, display mana stats
if (dc == DamageClass.Magic || dc == DamageClass.MagicSummonHybrid || dc.GetModifierInheritance(DamageClass.Magic).Equals(StatInheritanceData.Full))
stats2 += "\n" + this.GetLocalization("MagicStats").Format(TwoPlaces(100f * player.manaCost), player.manaRegen);
// If held item uses mana, display mana stats
if (heldItem.mana > 0)
stats2 += "\n" + this.GetLocalization("ManaStats").Format(OnePlace(100f * player.manaCost), player.manaRegen);
// If summon, or any direct subclass thereof, AND NOT A WHIP, display minion/sentry slots
if (dc != DamageClass.SummonMeleeSpeed && (dc == DamageClass.Summon || dc.GetModifierInheritance(DamageClass.Summon).Equals(StatInheritanceData.Full)))
@@ -168,7 +168,7 @@ namespace CalamityMod.Items.Accessories
// If whip, show whip range
float whipRange = player.whipRangeMultiplier - 1f;
if (dc == DamageClass.SummonMeleeSpeed || dc.GetModifierInheritance(DamageClass.SummonMeleeSpeed).Equals(StatInheritanceData.Full))
stats2 += "\n" + this.GetLocalization("WhipStats").Format(Sign(whipRange) + TwoPlaces(100f * whipRange));
stats2 += "\n" + this.GetLocalization("WhipStats").Format(Sign(whipRange) + OnePlace(100f * whipRange));
// If throwing or rogue, display rogue stats.
float rogueVelocity = modPlayer.rogueVelocity - 1f;
@@ -178,7 +178,7 @@ namespace CalamityMod.Items.Accessories
(int)(100f * modPlayer.rogueStealthMax),
TwoPlaces(60f * player.GetStandingStealthRegen()),
TwoPlaces(60f * player.GetMovingStealthRegen()),
Sign(rogueVelocity) + TwoPlaces(100f * rogueVelocity));
Sign(rogueVelocity) + OnePlace(100f * rogueVelocity));
}
// If tool, add tool range
+1 -1
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Accessories
{
if (npc.IsAnEnemy() && !npc.dontTakeDamage && Vector2.Distance(player.Center, npc.Center) <= range)
{
int campingFireDamage = (int)player.GetBestClassDamage().ApplyTo(Main.rand.Next(20, 41));
int campingFireDamage = (int)player.GetBestClassDamage().ApplyTo(Main.rand.Next(100, 121));
Projectile.NewProjectile(source, npc.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), campingFireDamage, 0f, player.whoAmI, npc.whoAmI);
}
}
+1
View File
@@ -87,6 +87,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.sponge = true;
player.noKnockback = true;
modPlayer.spongeShieldVisible = !hideVisual;
if (modPlayer.SpongeShieldDurability > 0)
+1 -1
View File
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void ModifyTooltips(List<TooltipLine> list)
{
list.IntegrateHotkey(CalamityKeybinds.TransformerHotKey);
list.FindAndReplace("[GFB]", Lang.SupportGlyphs(this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal")));
list.IntegrateHotkey(CalamityKeybinds.TransformerHotKey);
}
public override void SetStaticDefaults()
{
+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
public override void SetDefaults()
{
Item.width = 40;
Item.height = 44;
Item.width = 46;
Item.height = 48;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+77 -29
View File
@@ -46,9 +46,9 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Chain, 2).
AddIngredient<WulfrumMetalScrap>(6).
AddIngredient<WulfrumMetalScrap>(5).
AddIngredient<EnergyCore>().
AddIngredient(ItemID.Chain, 2).
AddTile(TileID.Anvils).
Register();
}
@@ -132,7 +132,7 @@ namespace CalamityMod.Items.Accessories
if (!Grappled)
return false;
if (!PlayerOnGround)
if (!PlayerOnGround || !obeyGravity)
return false;
if ((Player.Center - Main.projectile[Grapple].Center).Length() > SwingLength)
@@ -142,6 +142,8 @@ namespace CalamityMod.Items.Accessories
}
}
public bool obeyGravity => !(Player.miscEquips[4].type == ItemID.AntiGravityHook);
public bool strongerReel => Player.miscEquips[4].type == ItemID.StaticHook;
public Vector2 CurrentPosition;
public Vector2 OldPosition;
public List<VerletSimulatedSegment> Segments;
@@ -280,7 +282,10 @@ namespace CalamityMod.Items.Accessories
}
hookCache = -1;
if (!obeyGravity)
{
Player.gravity = -1f; //Disable player gravity with Anti-Grav hook
}
if (Grappled)
{
if ((Main.projectile[Grapple].Center - Player.Center).Length() > SwingLength + 80f)
@@ -299,7 +304,7 @@ namespace CalamityMod.Items.Accessories
public void SimulateMovement(Projectile grapple)
{
Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLength / SimulationResolution, 50, 0.3f * Player.gravDir);
Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLength / SimulationResolution, 50, (obeyGravity ? 0.3f * Player.gravDir : 0));
Vector2 CurrentPosition;
@@ -313,40 +318,83 @@ namespace CalamityMod.Items.Accessories
}
if (!GrappleMovementDisabled)
{
CurrentPosition = Segments[SimulationResolution].position;
Player.velocity = CurrentPosition - Player.Center;
//let the player swing themselves around if they are under the hook.
if (Player.gravDir * (Player.Center.Y - Segments[0].position.Y) > 0)
if (obeyGravity)
{
float swing = 0;
if (Math.Sign(Player.velocity.X) < 0)
CurrentPosition = Segments[SimulationResolution].position;
Player.velocity = CurrentPosition - Player.Center;
//let the player swing themselves around if they are under the hook.
if (Player.gravDir * (Player.Center.Y - Segments[0].position.Y) > 0)
{
if (Player.controlLeft)
swing -= 0.1f;
float swing = 0;
else if (Player.controlRight)
swing += 0.1f;
if (Math.Sign(Player.velocity.X) < 0)
{
if (Player.controlLeft)
swing -= 0.1f;
else if (Player.controlRight)
swing += 0.1f;
}
else if (Math.Sign(Player.velocity.X) > 0)
{
if (Player.controlRight)
swing += 0.1f;
else if (Player.controlLeft)
swing -= 0.1f;
}
Player.velocity.X += swing;
}
else if (Math.Sign(Player.velocity.X) > 0)
else if (Math.Abs(Player.Center.X - Segments[0].position.X) < 30f && Math.Abs(Player.velocity.X) < 1)
{
if (Player.controlRight)
swing += 0.1f;
else if (Player.controlLeft)
swing -= 0.1f;
Player.velocity.X = Player.velocity.X == 0 ? 1.5f : 1.5f * Math.Sign(Player.velocity.X);
}
Player.velocity.X += swing * (Player.miscEquips[4].type == ItemID.AntiGravityHook ? 1.75f : 1);
}
else if (Math.Abs(Player.Center.X - Segments[0].position.X) < 30f && Math.Abs(Player.velocity.X) < 1)
else
{
Player.velocity.X = Player.velocity.X == 0 ? 1.5f : 1.5f * Math.Sign(Player.velocity.X);
}
if (Player.grappling[0] > -1)
{
var Hook = Main.projectile[Player.grappling[0]];
if (Hook != null)
{
if (Player.controlRight)
Player.velocity.X += 0.3f;
else if (Player.controlLeft)
Player.velocity.X -= 0.3f;
Player.velocity -= Player.Center.DirectionTo(Hook.Center);
var estimatedPos = Player.Center + Player.velocity;
var estimatedDir = Hook.Center.DirectionTo(estimatedPos);
var goalPos = Hook.Center + estimatedDir * SwingLength;
var estimatedPosLocked = Hook.Center + Hook.Center.DirectionTo(Player.Center) * SwingLength;
if (estimatedPosLocked.Distance(estimatedPos) < 2)
{
estimatedPos = estimatedPosLocked;
}
var dis = Hook.Center.Distance(estimatedPos);
if (dis > SwingLength && dis < 1000f)
{
var dis2 = Math.Min(Player.Center.Distance(goalPos), SwingLength*3f);
if (dis2 > 0)
{
Player.velocity = Player.Center.DirectionTo(goalPos) * dis2;
}
}
if (Player.velocity.Length() < 1.5f)
Player.direction = Hook.Center.X > Player.Center.X ? 1 : -1;
}
}
}
}
if (Grappled)
@@ -512,7 +560,7 @@ namespace CalamityMod.Items.Accessories
}
if (Grappled && triggersSet.Up)
{
SwingLength -= (Player.miscEquips[4].type == ItemID.StaticHook ? StaticHookReelSpeed : ReelSpeed);
SwingLength -= (strongerReel ? StaticHookReelSpeed : ReelSpeed);
Player.controlUp = false; //This is required to stop the player from bouncing off platforms when falling down and reeling in. Also prevents gravity swapping while hooked.
}
if (triggersSet.Down) //Static Hook doesn't effect this speed because it would be faster than your fall speed and feel janky.
+1
View File
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Accessories
var source = player.GetSource_Accessory(Item);
player.moveSpeed += 0.15f;
player.GetDamage<GenericDamageClass>() += 0.15f;
player.noKnockback = true;
if (!player.StandingStill())
{
dragonTimer--;
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 1;
Item.defense = 4;
}
private void ActivateLift(Terraria.On_Player.orig_QuickMount orig, Player self)
@@ -155,7 +155,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 2;
Item.defense = 5;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -298,7 +298,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(12).
AddIngredient<WulfrumMetalScrap>(10).
AddIngredient<EnergyCore>().
AddTile(TileID.Anvils).
Register();
+19 -5
View File
@@ -293,7 +293,7 @@ namespace CalamityMod.Items
}
// Increase how much health Mushrooms heal.
if (item.type == ItemID.Mushroom && item.healLife == 15)
if (item.type == ItemID.Mushroom && item.healLife < 25)
item.healLife = 25;
// Allow Beam Sword to change direction when it fires, because vanilla disables it for some reason.
@@ -658,6 +658,8 @@ namespace CalamityMod.Items
public override bool? UseItem(Item item, Player player)
{
var modPlayer = player.Calamity();
if (Main.zenithWorld && item.type == ItemID.RodOfHarmony)
{
if (NPC.AnyNPCs(ModContent.NPCType<THELORDE>()))
@@ -671,6 +673,18 @@ namespace CalamityMod.Items
if (item.type == ItemID.Mushroom && player.Calamity().fungalSymbiote)
player.AddBuff(ModContent.BuffType<Mushy>(), 3600);
// Trigger Bloom Stone's heal over time from healing items
if (item.healLife > 0 && modPlayer.bloomStone)
{
// Temporarily disable Bloom Stone so that GetHealLife doesn't return 0
modPlayer.bloomStone = false;
modPlayer.bloomStoneTotalHeal = player.GetHealLife(item);
modPlayer.bloomStone = true;
modPlayer.bloomStoneHealInc = modPlayer.bloomStoneTotalHeal / 15;
modPlayer.bloomStoneHealTimer = (int)Math.Ceiling(modPlayer.bloomStoneTotalHeal / (double)modPlayer.bloomStoneHealInc) * 40;
}
// Staff/Axe of Regrowth growing Calamity grass
if (item.type == ItemID.StaffofRegrowth || item.type == ItemID.AcornAxe)
{
@@ -976,14 +990,13 @@ namespace CalamityMod.Items
}
#endregion
#region ModifyHitNPC
#region Hit NPC
public override void ModifyHitNPC(Item item, Player player, NPC target, ref NPC.HitModifiers modifiers)
{
// This assume all items with a damage hit is a weapon. There appears to be no edge cases for this thus far
if (player.Calamity().oldFashioned)
modifiers.SourceDamage *= OldFashioned.DamageReductionMultiplier;
}
#endregion
public override void OnHitNPC(Item item, Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
@@ -1009,6 +1022,7 @@ namespace CalamityMod.Items
}
}
}
#endregion
#region Armor Set Changes
public override string IsArmorSet(Item head, Item body, Item legs)
@@ -1553,7 +1567,7 @@ namespace CalamityMod.Items
#endregion
#region Ammo
public override bool CanConsumeAmmo(Item weapon, Item ammo, Player player) => Main.rand.NextFloat() <= player.Calamity().rangedAmmoCost;
public override bool CanConsumeAmmo(Item weapon, Item ammo, Player player) => Main.rand.NextFloat() <= player.Calamity().ammoCost;
public static bool HasEnoughAmmo(Player player, Item item, int ammoConsumed)
{
@@ -1626,7 +1640,7 @@ namespace CalamityMod.Items
dontConsumeAmmo = true;
if (player.ammoCost75 && Main.rand.NextBool(4))
dontConsumeAmmo = true;
if (Main.rand.NextFloat() > player.Calamity().rangedAmmoCost)
if (Main.rand.NextFloat() > player.Calamity().ammoCost)
dontConsumeAmmo = true;
if (!dontConsumeAmmo && itemAmmo.consumable)
+2 -21
View File
@@ -211,7 +211,7 @@ namespace CalamityMod.Items
{ ItemID.PygmyStaff, Do(AutoReuse, UseExact(20), DamageExact(70)) },
{ ItemID.QuadBarrelShotgun, Do(PointBlank, DamageExact(11)) },
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) },
{ ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13)) },
{ ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13), KnockbackExact(8f)) },
{ ItemID.Rally, Do(AutoReuse, DamageExact(18)) },
{ ItemID.RavenStaff, Do(AutoReuse, UseExact(20), DamageExact(36)) },
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
@@ -333,7 +333,7 @@ namespace CalamityMod.Items
#endregion
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(125)) }, // Axe of Regrowth
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
@@ -596,28 +596,9 @@ namespace CalamityMod.Items
#endregion
#region CATEGORY 9: Sell Prices
{ ItemID.Apple, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Apricot, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Banana, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.BlackCurrant, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.BloodOrange, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Cherry, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Coconut, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Dragonfruit, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Elderberry, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.EncumberingStone, Do(Worthless) },
{ ItemID.GlowingMushroom, Do(Worthless) },
{ ItemID.Grapefruit, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Lemon, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Mango, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Mushroom, Do(Worthless) },
{ ItemID.Peach, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Pineapple, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Plum, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Pomegranate, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Rambutan, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.SpicyPepper, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.Starfruit, Do(Value(Item.sellPrice(copper: 40))) },
{ ItemID.PortableStool, Do(Value(Item.sellPrice(copper: 20))) }, // Step Stool
{ ItemID.UncumberingStone, Do(Worthless) },
{ ItemID.ViciousMushroom, Do(Worthless) },
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(6).
AddIngredient<WulfrumMetalScrap>(5).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.PermanentBoosters
// Same price as Frog Leg, which is used to shimmer into it
Item.value = Item.sellPrice(gold: 1);
Item.rare = ModContent.RarityType<HotPink>();
Item.stack = Item.CommonMaxStack;
Item.maxStack = Item.CommonMaxStack;
Item.Calamity().devItem = true;
}
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables.Furniture
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(5).
AddIngredient<WulfrumBattery>().
AddIngredient<EnergyCore>().
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions.Alcohol
public static int HealValue = 200;
public static int RegenLoss = 1;
public static int SecondDuration = 15;
public static int SecondDuration = 30;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenLoss.ToRegenPerSecond(), SecondDuration);
public override void SetStaticDefaults()
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Tools
{
CreateRecipe().
AddRecipeGroup("AnySilverBar", 18).
AddRecipeGroup("Wood", 18).
AddIngredient(ItemID.RichMahogany, 18).
AddTile(TileID.Anvils).
Register();
}
+2 -2
View File
@@ -76,9 +76,9 @@ namespace CalamityMod.Items.Tools
public override void AddRecipes()
{
CreateRecipe(3).
AddIngredient(ItemID.Gel, 5). //Gel is a default combustible item to fuel the motors of the lil guys
CreateRecipe(15).
AddIngredient<WulfrumMetalScrap>(3).
AddIngredient<EnergyCore>().
Register();
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Tools
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(8).
AddIngredient<WulfrumMetalScrap>(5).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -281,7 +281,7 @@ namespace CalamityMod.Items.Tools
{
//Intentionally craftable anywhere.
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(6).
AddIngredient<WulfrumMetalScrap>(5).
Register()
.DisableDecraft();
}
@@ -55,8 +55,8 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags
expertPlus.Add(ModContent.ItemType<EssenceofEleum>(), 1, 1, 3);
expertPlus.Add(ModContent.ItemType<EssenceofSunlight>(), 1, 1, 3);
expertPlus.Add(ModContent.ItemType<EssenceofHavoc>(), 1, 1, 3);
normalOnly.Add(ModContent.ItemType<LifeAlloy>(), 2);
normalOnly.Add(ModContent.ItemType<CoreofCalamity>(), 3);
expertPlus.Add(ModContent.ItemType<LifeAlloy>(), 2);
expertPlus.Add(ModContent.ItemType<CoreofCalamity>(), 3);
}
}
}
+2 -2
View File
@@ -63,8 +63,8 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<Acidwood>(35).
AddIngredient<SulphuricScale>(10).
AddIngredient<Acidwood>(15).
AddIngredient<SulphuricScale>(12).
AddTile(TileID.Anvils).
Register();
}
+2 -3
View File
@@ -57,9 +57,8 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.HellstoneBar, 6).
AddIngredient(ItemID.Obsidian, 9).
AddIngredient(ItemID.Fireblossom, 2).
AddIngredient(ItemID.HellstoneBar, 10).
AddIngredient(ItemID.Fireblossom, 5).
AddIngredient(ItemID.Ruby).
AddTile(TileID.Bookcases).
Register();
+3
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -30,6 +31,8 @@ namespace CalamityMod.Items.Weapons.Magic
Item.Calamity().donorItem = true;
}
public override bool? CanAutoReuseItem(Player player) => player.ownedProjectileCounts[ModContent.ProjectileType<GiantIbanRobotOfDoom>()] > 0;
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
+1 -1
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient(ItemID.HellstoneBar, 10).
AddIngredient(ItemID.AshWood, 7).
AddIngredient(ItemID.AshWood, 10).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -96,7 +96,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient<Acidwood>(15).
AddIngredient<SulphuricScale>(18).
AddIngredient<SulphuricScale>(12).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.height = 60;
Item.damage = 190;
Item.DamageType = DamageClass.Magic;
Item.mana = 60;
Item.mana = 80;
Item.useTime = 3;
Item.useAnimation = 45;
Item.reuseDelay = 75;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 58;
Item.height = 56;
Item.damage = 230;
Item.damage = 205;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useTime = 12;
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.rare = ItemRarityID.Lime;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool CanUseItem(Player player) => !player.channel;
public override void AddRecipes()
{
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 70;
Item.height = 68;
Item.damage = 3333;
Item.damage = 2800;
Item.DamageType = DamageClass.Magic;
Item.mana = 40;
Item.useTime = 65;
-1
View File
@@ -145,7 +145,6 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(10).
AddIngredient<EnergyCore>().
AddTile(TileID.Anvils).
Register();
}
+2 -1
View File
@@ -2,6 +2,7 @@
using CalamityMod.Items.BaseItems;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Placeables.Abyss;
using CalamityMod.Projectiles.Melee;
using Terraria;
using Terraria.ID;
@@ -35,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AcidwoodSword>().
AddIngredient<Acidwood>(15).
AddIngredient<SulphuricScale>(12).
AddTile(TileID.Anvils).
Register();
+2 -2
View File
@@ -324,8 +324,8 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddRecipeGroup("AnyWoodenSword").
AddIngredient(ItemType<AerialiteBar>(), 5).
AddIngredient(ItemID.HellstoneBar, 5).
AddIngredient(ItemType<AerialiteBar>(), 10).
AddIngredient(ItemID.HellstoneBar, 10).
AddIngredient(ItemID.DirtBlock, 50).
AddIngredient(ItemID.StoneBlock, 50).
AddTile(TileID.Anvils).
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 40;
Item.height = 38;
Item.height = 48;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 300;
Item.knockBack = 7.5f;
+97 -16
View File
@@ -1,47 +1,128 @@
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.BaseProjectiles;
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.DataStructures;
using Microsoft.Xna.Framework;
using CalamityMod.Systems.Collections;
using System;
using Terraria.Localization;
using Terraria.Audio;
namespace CalamityMod.Items.Weapons.Melee
{
public class MirrorBlade : ModItem, ILocalizedModType
public class MirrorBlade : BaseSwordHoldoutItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
private int baseDamage = 100;
public override int ProjectileType => ModContent.ProjectileType<MirrorBladeProjectile>();
public int reflectTimer = 0;
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 5));
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
base.SetStaticDefaults();
}
public override void SetDefaults()
{
Item.width = 72;
Item.height = 72;
Item.damage = baseDamage;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 12;
Item.useTime = 12;
Item.width = 114;
Item.height = 128;
Item.damage = 1000;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = 40;
Item.useTime = 40;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 7f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
Item.rare = ModContent.RarityType<Turquoise>();
Item.shootSpeed = 9f;
Item.shoot = ModContent.ProjectileType<MirrorBlast>();
base.SetDefaults();
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
public override void UpdateInventory(Player player)
{
int conDamage = target.damage + baseDamage;
if (conDamage < baseDamage)
if (reflectTimer > 0)
{
conDamage = baseDamage;
if (reflectTimer <= 50)
{
float coneLength = 80f;
float maximumAngle = 0.8f;
float coneRotation = player.DirectionTo(Main.MouseWorld).ToRotation();
var shardCount = 0;
foreach (var proj in Main.projectile)
{
if (proj.active && proj.type == ModContent.ProjectileType<MirrorBlast>() && proj.owner == player.whoAmI && (proj.ModProjectile as MirrorBlast).isShard)
{
shardCount++;
}
}
foreach (var proj in Main.ActiveProjectiles)
{
if (proj.hostile && proj.damage > 0 && proj.Hitbox.IntersectsConeSlowMoreAccurate(player.Center, coneLength, coneRotation, maximumAngle))
{
if (shardCount >= 10)
{
player.SetImmuneTimeForAllTypes(player.longInvince ? 60 : 30);
}
proj.Calamity().multiplicativeDR += shardCount / 10f;
proj.Calamity().multiplicativeDRTimer = 60;
foreach (var proj2 in Main.projectile)
{
if (proj2.active && proj2.type == ModContent.ProjectileType<MirrorBlast>() && proj2.owner == player.whoAmI && (proj2.ModProjectile as MirrorBlast).isShard)
{
proj2.damage = (int)(proj2.damage * (shardCount >= 10 ? 3f : 2f));
(proj2.ModProjectile as MirrorBlast).shardShield = 0;
(proj2.ModProjectile as MirrorBlast).shardNum = 11;
proj2.netUpdate = true;
}
}
if (shardCount > 0)
SoundEngine.PlaySound(SoundID.DD2_WitherBeastDeath,player.Center);
reflectTimer = 0;
return;
}
}
}
reflectTimer--;
}
if (conDamage > 400)
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse == 2)
{
conDamage = 400;
bool alreadyReflecting = reflectTimer > 0;
bool hasShard = false;
reflectTimer = 60;
foreach (var proj in Main.projectile)
{
if (proj.active && proj.type == ModContent.ProjectileType<MirrorBlast>() && proj.owner == player.whoAmI && (proj.ModProjectile as MirrorBlast).isShard)
{
(proj.ModProjectile as MirrorBlast).shardShield = 60;
proj.netUpdate = true;
hasShard = true;
}
}
if (!alreadyReflecting && hasShard)
SoundEngine.PlaySound(SoundID.DD2_EtherianPortalSpawnEnemy,player.Center);
return false;
}
Item.damage = conDamage;
return base.Shoot(player, source, position, velocity, type, damage, knockback);
}
public override bool AltFunctionUse(Player player)
{
return true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 86;
Item.height = 64;
Item.damage = 718;
Item.damage = 1100;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.useAnimation = Item.useTime = 55;
Item.knockBack = 8.5f;
+12 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Melee;
using System.Collections.Generic;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
@@ -37,6 +38,16 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow").Value);
}
public override void UpdateInventory(Player player)
{
if (Main.zenithWorld)
Item.SetNameOverride(this.GetLocalizedValue("GFBName"));
}
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
string GFBflavour = this.GetLocalizedValue("GFB");
tooltips.FindAndReplace("[STATUS]", Main.zenithWorld ? "\n" + GFBflavour : "");
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
+16 -4
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.noMelee = true;
Item.useTurn = true;
Item.noUseGraphic = true;
Item.useAnimation = 25;
Item.useAnimation = 60;
Item.useTime = 25;
Item.useStyle = ItemUseStyleID.Shoot;
Item.knockBack = 9f;
@@ -27,16 +27,28 @@ namespace CalamityMod.Items.Weapons.Melee
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.channel = true;
Item.shoot = ModContent.ProjectileType<ViolenceThrownProjectile>();
Item.shootSpeed = 15f;
Item.channel = true;
}
public override bool CanUseItem(Player player) => player.altFunctionUse == 2 || player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, velocity.ToRotation());
if (player.altFunctionUse == 2)
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
player.itemAnimation = player.itemAnimationMax = player.itemTime = player.itemTimeMax = 60;
Projectile.NewProjectile(source, position, velocity*1.6666f, type, (int)(damage * 20), knockback, player.whoAmI, 0f, velocity.ToRotation(), 0);
}
else
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, velocity.ToRotation(), 1);
return false;
}
}
+1 -2
View File
@@ -85,8 +85,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(12).
AddIngredient<EnergyCore>().
AddIngredient<WulfrumMetalScrap>(10).
AddTile(TileID.Anvils).
Register();
}
+2 -2
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.useAnimation = Item.useTime = 75;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<BouncingShotgunPellet>();
Item.shootSpeed = 9f;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.UseSound = SoundID.Item38;
@@ -47,7 +47,7 @@ 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)
{
type = Item.shoot;
int bulletAmt = 30;
int bulletAmt = 40;
for (int i = 0; i < bulletAmt; i++)
{
float newSpeedX = velocity.X + Main.rand.NextFloat(-15f, 15f);
+1
View File
@@ -92,6 +92,7 @@ namespace CalamityMod.Items.Weapons.Ranged
CreateRecipe().
AddIngredient(ItemID.FlareGun).
AddIngredient(ItemID.HellstoneBar, 10).
AddIngredient(ItemID.IllegalGunParts).
AddTile(TileID.Anvils).
Register();
}
+3 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
@@ -23,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 15f;
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
Item.rare = ItemRarityID.Purple;
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
Item.rare = ModContent.RarityType<PureGreen>();
Item.UseSound = SoundID.Item92;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<PlasmaBlast>();
+3 -2
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Placeables.Abyss;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
@@ -45,8 +46,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AcidwoodBow>().
AddIngredient<SulphuricScale>(15).
AddIngredient<Acidwood>(15).
AddIngredient<SulphuricScale>(12).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -185,7 +185,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(9).
AddIngredient<WulfrumMetalScrap>(10).
AddTile(TileID.Anvils).
Register();
}
+1
View File
@@ -16,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.height = 1;
Item.damage = 75;
Item.DamageType = RogueDamageClass.Instance;
Item.autoReuse = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useTime = 15;
+3 -3
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthDamageMultiplier => 1.85f;
public override float StealthDamageMultiplier => 1.4f;
public override float StealthVelocityMultiplier => 0.9f;
public override float StealthKnockbackMultiplier => 0.5f;
@@ -35,9 +35,9 @@ namespace CalamityMod.Items.Weapons.Rogue
{
if (player.Calamity().StealthStrikeAvailable())
{
for (int i = -1; i <= 1; i++)
for (float i = -1.5f; i <= 1.5f; i++)
{
Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i * 9f));
Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i * 7f));
int stealth = Projectile.NewProjectile(source, position, perturbedSpeed, ModContent.ProjectileType<CobaltEnergy>(), damage, knockback, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
+3 -6
View File
@@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.damage = 27;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = 15;
Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 15;
Item.useTime = 30;
Item.knockBack = 5.5f;
Item.UseSound = null;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
@@ -32,10 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.autoReuse = true;
}
public override bool CanUseItem(Player player)
{
return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI && n.type == ModContent.ProjectileType<FishboneBoomerangProjectile>());
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] < 3;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
CreateRecipe().
AddIngredient(ItemID.HellstoneBar, 10).
AddIngredient(ItemID.Obsidian, 9).
AddIngredient(ItemID.AshWood, 10).
AddTile(TileID.Anvils).
Register();
}
+7 -25
View File
@@ -14,12 +14,11 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 30;
Item.height = 28;
Item.damage = 26;
Item.damage = 20;
Item.DamageType = RogueDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useTime = Item.useAnimation = 28;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 3.5f;
Item.autoReuse = true;
@@ -27,34 +26,17 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.shoot = ModContent.ProjectileType<SandDollarProj>();
Item.shootSpeed = 14f;
}
public override bool CanUseItem(Player player)
{
if (player.ownedProjectileCounts[Item.shoot] >= 2 && !player.Calamity().StealthStrikeAvailable())
{
return false;
}
else
{
return true;
}
Item.shootSpeed = 8f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
{
int spread = 2;
for (int i = 0; i < 2; i++)
{
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-2, 3), velocity.Y + Main.rand.Next(-2, 3)).RotatedBy(MathHelper.ToRadians(spread));
int stealth = Projectile.NewProjectile(source, position.X, position.Y, perturbedspeed.X * 1.5f, perturbedspeed.Y * 1.5f, ModContent.ProjectileType<SandDollarStealth>(), damage, knockback, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
spread -= Main.rand.Next(1, 3);
}
int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
Main.projectile[stealth].Calamity().stealthStrike = true;
return false;
}
return true;
+1 -1
View File
@@ -91,7 +91,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(9).
AddIngredient<WulfrumMetalScrap>(10).
AddTile(TileID.Anvils).
Register();
}
+2
View File
@@ -86,6 +86,8 @@ namespace CalamityMod.Items.Weapons.Summon
Item.DamageType = DamageClass.Summon;
}
public override bool? CanAutoReuseItem(Player player) => false;
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/AresExoskeleton").Value;
+2
View File
@@ -67,6 +67,8 @@ namespace CalamityMod.Items.Weapons.Summon
Item.Calamity().CannotBeEnchanted = true;
}
public override bool? CanAutoReuseItem(Player player) => false;
public static bool SpaceForLargeMech(Player player, bool visuals = true)
{
bool sufficientSpace = true;
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(9).
AddIngredient<WulfrumMetalScrap>(10).
AddTile(TileID.Anvils).
Register();
}
@@ -136,6 +136,7 @@ PrismBack: Far too slow and bulky to hunt normally, these turtles subsist on a d
PrismaticGuppy: Is it a crystal? Is it a candy? No, it's a little Guppy! Thanks to the unique prismatic sheen of their scales and their striking geometric shapes, these fish can camouflage as Sea Prisms to escape pursuing predators.
Probesnout: One of just a few known seahorse species who miraculously survived the Incineration. Its efficient snout allows it to streamline nutrients from the abundant sponge in the reefs that it lives in.
SandProwler: These colorful sea serpents prowl through the sand, looking for the gleam of an unsuspecting Guppy to snack on. Due to this creature’s habit of mistakenly capturing dropped coins, Ilmerians fond of avarice began to share the namesake.
Scavenger: This odd species of crab migrated to Ilmeris after its fateful incineration. Gifted with a remarkable sense of ownership and value, they hoard any scavenged treasures as a display of social status. Trade is not a foreign concept to their tribe, and they value Pearls above all else.
SeaFloaty: Flatworms can be found in many seas and oceans across the world, and are exceptional at fitting through cracks or crevices to find kelp due to their thin bodies. These particular flatworms are incredibly skittish, and thus fled with plenty of time to be spared from the infernal carnage.
SeaMinnow: Large schools of Sea Minnows were one of the most beautiful things one could witness during the days when Ilmeris was unsundered. Though the kingdom's grandeur has been lost like ashes in the wind, the tranquil fish continue to swim at peace, a breathtaking reminder that not all was lost.
Searslug: A distant cousin of the Slugbuns which can withstand the extreme heat of molten basalt. Their skin is scalding to the touch, a side effect of their adaptations to the many lava dips needed to squirm around the regions it lives in.
@@ -72,7 +72,7 @@ SunkenSeaBiome: {
}
AstralUnderground: {
DisplayName: Astral Underground
DisplayName: Underground Astral
TownNPCDialogueName: Underground Astral Infection
}
@@ -347,6 +347,16 @@ CalamityClientConfig: {
'''
}
SunkenSeaBackgroundDistortion: {
Label: "[i:CalamityMod/SeaRemains] Sunken Sea Background Distortion"
Tooltip:
'''
Whether or not the Sunken Sea's custom backgrounds should have an additional distortion shader applied to them to give the
illusion of underwater distortion.
[c/FF232C:Note that this will ONLY work if your "Wave Quality" setting is turned off.]
'''
}
VanillaCooldownDisplay: {
Label: "[i:HealingPotion] Display Vanilla Cooldowns"
Tooltip:
@@ -284,12 +284,25 @@ Baroclaw: {
'''
}
BatholithBangle: {
DisplayName: Batholith Bangle
Tooltip:
'''
Magic enemy hits create a powerful granite flash that always critically strikes
This effect has a 10 second cooldown, but is halved if the flash kills an enemy
Visual and audio effects are reduced if visibility is disabled
[c/0189D7:'The solid granite radiates energy throughout your body']
'''
}
BlackGlassBand: {
DisplayName: Black Glass Band
Tooltip:
'''
Enemy hits create an obsidian blast that always critically strikes
This effect has a 7 second cooldown, but is halved if the blast kills an enemy
Enemy hits create an obsidian flash that always critically strikes
This effect has a 5 second cooldown, but is halved if the flash kills an enemy
Visual and audio effects are reduced if visibility is disabled
[c/655DC5:'A shining band with boundless potential']
'''
}
@@ -297,6 +310,7 @@ BlazingCore: {
DisplayName: Blazing Core
Tooltip:
'''
Grants immunity to knockback
The searing core of the Profaned Goddess
Pressing [KEY] will activate a parry, encasing you in luminous profaned crystal
Being hit shortly after encasement will shatter the crystal
@@ -311,6 +325,7 @@ BloodflareCore: {
DisplayName: Bloodflare Core
Tooltip:
'''
Grants immunity to knockback
Recovering defense damage heals you, each defense recovered gives 1 HP
Taking damage converts at least half of your total defense in defense damage
'''
@@ -345,11 +360,10 @@ BloomStone: {
DisplayName: Bloom Stone
Tooltip:
'''
Grants between +1 HP/s and +3 HP/s life regen depending on time of day
Accelerates life regen based on time of day
Both of these effects are maximized from noon to sunset
Flowers grow on the grass you walk on
Random dye plants will grow while standing on grassless dirt
Healing Potions are 50% more effective, but provide their healing over time
Grappling hooks retract and pull the player 50% faster, and grow a flower at hookpoints
Touching a flower makes it burst into pollen which gives a temporary 6% damage reduction boost
The damage reduction boost increases to 12% while receiving healing over time
'One of the ancient relics'
'''
}
@@ -532,6 +546,7 @@ DarkSunRing: {
DisplayName: Dark Sun Ring
Tooltip:
'''
Grants immunity to knockback
12% increased damage
+0.5 HP/s life regen and +2 max minions
Increased minion knockback
@@ -600,6 +615,7 @@ DraedonsHeart: {
Tooltip:
'''
{0}% reduced contact damage from enemies
Grants immunity to knockback
[NANODESC]
With full Nanomachines, press [KEY] to heal {1} health over {2} {^2:second;seconds}
While healing, you take [DR]% less damage
@@ -769,6 +785,7 @@ FlameLickedShell: {
DisplayName: Flame-Licked Shell
Tooltip:
'''
Grants immunity to knockback
Pressing [KEY] will activate a parry, encasing you in rocks
Being hit shortly after encasement will implode the rocks
Upon implosion, a ring of brimstone hellfire is launched outwards and you receive 90% DR for that hit
@@ -1232,6 +1249,7 @@ OldDukeScales: {
DisplayName: Old Duke's Scales
Tooltip:
'''
Grants immunity to knockback
10% increased damage reduction, max movement speed, and acceleration
25% increased dash velocity and length
Adds a stamina tracker to the cooldown rack
@@ -1362,6 +1380,17 @@ ProfanedSoulCrystal: {
'''
}
ProtolithBangle: {
DisplayName: Protolith Bangle
Tooltip:
'''
Ranged enemy hits create a marble flash that always critically strikes and can hit multiple enemies
This effect has a 7 second cooldown, but is halved if the flash kills the first enemy it hits
Visual and audio effects are reduced if visibility is disabled
[c/C5B965:'The cold marble against your wrist puts your mind at ease']
'''
}
QuiverofNihility: {
DisplayName: Quiver of Nihility
Tooltip:
@@ -1621,8 +1650,9 @@ SlagsplitterPauldron: {
DisplayName: Slagsplitter Pauldron
Tooltip:
'''
You gain 10% damage reduction while dashing, and enemies are inflicted with Armor Crunch
Your dashes are empowered by fire, shredding enemies near you with violent explosions
Your dashes become empowered by flame, erupting on contact with enemies
Grants immunity to knockback and 10% damage reduction while dashing
Enemies hit by your dashes have their armor crushed
Visual effects are reduced if visibility is disabled
'''
}
@@ -1762,8 +1792,8 @@ StatMeter: {
AttackSpeed: Attack Speed: {0}%
WhipMeleeInheritance: " [{0}% from melee]"
// Class stats
RangedStats: Ammo Consumption Chance: {0}
MagicStats: Mana Usage: {0}% | Mana Regen: {1}
AmmoStats: Ammo Consumption Chance: {0}%
ManaStats: Mana Usage: {0}% | Mana Regen: {1}
SummonStats: Minion Slots: {0} | Sentry Slots: {1}
WhipStats: Whip Range: {0}%
RogueStats:
@@ -1868,7 +1898,7 @@ TheCamper: {
DisplayName: The Camper
Tooltip:
'''
You deal 90% less damage unless stationary
You deal 50% less damage unless stationary
Standing still grants buffs depending on held item, and creates a damaging aura around you
While moving, you regenerate health as if standing still
{$Common.AbyssLightLevel1}
@@ -1918,6 +1948,7 @@ TheSponge: {
DisplayName: The Sponge
Tooltip:
'''
Grants immunity to knockback
Gain a barrier with 180 health
The barrier grants 20 defense and 10% damage reduction while active
[ADREN]
@@ -2066,6 +2097,7 @@ WulfrumAcrobaticsPack: {
'''
Provides a wulfrum slingshot grappling hook
This slingshot's stats scale with your equipped hook
If the hook has special effects, the slingshot also benefits from them
The slingshot allows for advanced rope-swinging physics
Hold UP or DOWN to retract or extend the slingshot's rope
Automatically grapples nearby walls if a lethal fall is detected
@@ -2089,6 +2121,7 @@ YharimsGift: {
DisplayName: Yharim's Gift
Tooltip:
'''
Grants immunity to knockback
Flaming meteors rain down after getting hit
Volatile dragon dust trails behind you
Increases damage and movement speed by 15%
@@ -481,7 +481,7 @@ ReaverHeadMobility: {
'''
Grants immunity to fall damage and allows constant jumping
10% increased flight time and horizontal wing speed
Hooks fly out and retract 10% faster
Hooks fly out and retract 50% faster
Reduces the cooldown of dashes
'''
}
@@ -793,7 +793,11 @@ Lacerator: {
Tooltip:
'''
{$Common.YoyoStatsInfinite}
Accelerates natural life regeneration on hits with the yoyo
Striking enemies conjures a bloody saw to shred them
The saw does more damage the more often the yoyo hits, and fades away when not striking enemies
Enemies touching the edge of the sawblade get blood orbs torn out of them
Picking up these blood orbs reduces the duration of [Potion Sickness]
The direction of the saw's spin depends on which direction you originally threw the yoyo
[GFB]
'''
TooltipNormal: Someone thought this was a viable weapon against DoG at one point lol
@@ -848,8 +852,12 @@ MirrorBlade: {
DisplayName: Mirror Blade
Tooltip:
'''
The amount of contact damage an enemy does is added to this weapons' damage
You must hit an enemy with the blade to trigger this effect
Striking an enemy or a hostile projectile spawns mirror shards
You can have up to 10 mirror shards at once, and excess shards are launched at enemies
<right> to form your shards into a mirror shield
Each shard redues the damage of a projectile that hit the shield by 10%
The shield shatters after one projectile, launching the shards at enemies with increasd damage
With all 10 shards, you gain a brief period of invulnerability when shattering the shield
'''
}
@@ -1286,11 +1294,13 @@ Terratomere: {
TerrorBlade: {
DisplayName: Terror Blade
GFBName: TERROR BLADD4
Tooltip:
'''
Fires a terror beam that bounces off tiles
On every bounce it emits an explosion
On every bounce it emits an explosion[STATUS]
'''
GFB: "'Ignore my spelling.'"
}
TheBurningSky: {
@@ -1461,7 +1471,12 @@ UltimusCleaver: {
UrchinMace: {
DisplayName: Urchin Mace
Tooltip: Throws out a whirlpool when released
Tooltip:
'''
Throws out a whirlpool when released
[c/5C95A1:'The people of the sea were adept hunters, but they abhorred unnecessary violence.]
[c/5C95A1:Unfortunately, neighboring nations were brutish, so they fashioned their tools for war.']
'''
}
VanishingPoint: {
@@ -1480,7 +1495,12 @@ VeinBurster: {
Violence: {
DisplayName: Violence
Tooltip: Releases a blazing fork which stays near the mouse and shreds enemies
Tooltip:
'''
A demonic pitchfork, cursed to cause endless bloodshed
<left> commands the trident to follow your cursor and shred enemies with devastating speed
<right> throws the trident, violently tearing through enemies with immense power and inflicting Vulnerability Hex
'''
}
Virulence: {
@@ -232,6 +232,7 @@ BulletFilledShotgun: {
Tooltip:
'''
Fires a massive spread of bouncing bullets
Bullets attempt to bounce towards enemies after bouncing twice
Consumes five bullets per-use
'Aim? What's that?'
'''
@@ -137,7 +137,7 @@ Cinquedea: {
CobaltKunai: {
DisplayName: Cobalt Kunai
Tooltip: Stealth strikes fire three homing cobalt energy bolts
Tooltip: Stealth strikes fire four homing cobalt energy bolts
}
ConsecratedWater: {
@@ -948,8 +948,9 @@ SandDollar: {
DisplayName: Sand Dollar
Tooltip:
'''
Throws up to 2 returning sand dollars
Stealth strikes throw 2 long ranged sand dollars that explode into coral shards on enemy hits
Throws gliding sand dollars which can pierce enemies or bounce off floors
After bouncing, sand dollars lose their pierce but split into damaging shards on impact
Stealth strikes linger in place after bouncing, creating a small sandstorm around them
'''
}
+16 -15
View File
@@ -1,21 +1,22 @@
// Recipe Groups
# Recipe Groups
# {$LegacyMisc.37} is the vanilla localization used in recipe groups, that reads "Any" in English.
RecipeGroup: {
HardmodeAnvil: Any Hardmode Anvil
HardmodeForge: Any Hardmode Forge
AnyLargeGem: Any Large Gem
AnyFood: Any Food Item
AnyEvilBar: Any Evil Bar
AnyEvilPowder: Any Evil Powder
HardmodeAnvil: "{$LegacyMisc.37} Hardmode Anvil"
HardmodeForge: "{$LegacyMisc.37} Hardmode Forge"
AnyLargeGem: "{$LegacyMisc.37} Large Gem"
AnyFood: "{$LegacyMisc.37} Food Item"
AnyEvilBar: "{$LegacyMisc.37} Evil Bar"
AnyEvilPowder: "{$LegacyMisc.37} Evil Powder"
Boss2Material: Shadow Scale or Tissue Sample
CursedFlameIchor: Cursed Flame or Ichor
AnyEvilWater: Any Evil Water
AnyEvilFlask: Any Evil Flask
AnyEvilBlock: Any Evil Block
AnyGoodBlock: Any Good Block
LunarPickaxe: Any Lunar Pickaxe
LunarHamaxe: Any Lunar Hamaxe
AnyQuiver: Any Quiver
AnyWings: Any Wings
AnyEvilWater: "{$LegacyMisc.37} Evil Water"
AnyEvilFlask: "{$LegacyMisc.37} Evil Flask"
AnyEvilBlock: "{$LegacyMisc.37} Evil Block"
AnyGoodBlock: "{$LegacyMisc.37} Good Block"
LunarPickaxe: "{$LegacyMisc.37} Lunar Pickaxe"
LunarHamaxe: "{$LegacyMisc.37} Lunar Hamaxe"
AnyQuiver: "{$LegacyMisc.37} Quiver"
AnyWings: "{$LegacyMisc.37} Wings"
}
// Status
@@ -305,6 +305,7 @@ RadiantPrismaticGuppy: Radiant Prismatic Guppy
RadiantSlugbun: Radiant Slugbun
SandProwler.DisplayName: Sand Prowler
SandProwlerNested.DisplayName: Sand Prowler
Scavenger.DisplayName: Scavenger
SeaFloaty.DisplayName: Sea Floaty
SeaMinnow.DisplayName: Sea Minnow
SeaMinnowGold.DisplayName: Gold Sea Minnow
Loaded 100 of 221 files, more files were not shown because too many files have changed in this diff. Show more