This commit is contained in:
mountaindrew10 committed 2023-03-20 19:06:03 -05:00
commit d6304f1956
386 files changed
+2614 -1399

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 378 B

+2 -2
View File
@@ -1,4 +1,4 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.Summon
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<HerringMinion>()] > 0)
if (player.ownedProjectileCounts[ModContent.ProjectileType<HerringAI>()] > 0)
{
modPlayer.herring = true;
}
+12 -3
View File
@@ -2499,6 +2499,10 @@ namespace CalamityMod.CalPlayer
public override void ProcessTriggers(TriggersSet triggersSet)
{
// Why does this otherwise work when you're dead lmao
if (Player.dead)
return;
if (CalamityKeybinds.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == Player.whoAmI)
{
if (!Player.CCed && !Player.chaosState)
@@ -4542,11 +4546,9 @@ namespace CalamityMod.CalPlayer
contactDamageReduction += 0.5;
}
// Can't have any cooldowns here because dodges grrrrr....
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID))
{
Player.AddCooldown(Cooldowns.FleshTotem.ID, CalamityUtils.SecondsToFrames(20), true, coreOfTheBloodGod ? "bloodgod" : "default");
contactDamageReduction += 0.5;
}
if (tarragonCloak && tarraMelee && !Player.HasCooldown(Cooldowns.TarragonCloak.ID))
contactDamageReduction += 0.5;
@@ -4946,6 +4948,13 @@ namespace CalamityMod.CalPlayer
#endregion
#region On Hit
public override void OnHitByNPC(NPC npc, int damage, bool crit)
{
// ModifyHit (Flesh Totem effect happens here) -> Hurt (includes dodges) -> OnHit
// As such, to avoid cooldowns proccing from dodge hits, do it here
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && damage > 0)
Player.AddCooldown(Cooldowns.FleshTotem.ID, CalamityUtils.SecondsToFrames(20), true, coreOfTheBloodGod ? "bloodgod" : "default");
}
public override void OnHitByProjectile(Projectile proj, int damage, bool crit)
{
if (sulfurSet && !proj.friendly && damage > 0)
+4 -4
View File
@@ -2393,7 +2393,6 @@ namespace CalamityMod.CalPlayer
Player.magmaStone = true;
Player.GetDamage<MeleeDamageClass>() += 0.15f;
Player.GetCritChance<MeleeDamageClass>() += 5;
Player.lavaMax += 240;
}
if (bloodPactBoost)
@@ -2590,6 +2589,10 @@ namespace CalamityMod.CalPlayer
flightTimeMult += 0.1;
}
// Reaver Tank set nuke flight time
if (reaverDefense)
flightTimeMult -= 0.2f;
// Increase wing time
if (Player.wingTimeMax > 0)
Player.wingTimeMax = (int)(Player.wingTimeMax * flightTimeMult);
@@ -2822,7 +2825,6 @@ namespace CalamityMod.CalPlayer
if (yInsignia)
{
Player.GetDamage<MeleeDamageClass>() += 0.1f;
Player.lavaMax += 240;
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.GetDamage<GenericDamageClass>() += 0.1f;
}
@@ -3054,8 +3056,6 @@ namespace CalamityMod.CalPlayer
{
Player.scope = false; //this is so it doesn't mess with the balance of ranged transform attacks over the others
Player.lavaImmune = true;
Player.lavaMax += 420;
Player.lavaRose = true;
Player.fireWalk = true;
Player.buffImmune[ModContent.BuffType<HolyFlames>()] = Main.dayTime;
Player.buffImmune[ModContent.BuffType<Nightwither>()] = !Main.dayTime;
+2 -2
View File
@@ -610,7 +610,7 @@ namespace CalamityMod.CalPlayer
ProjectileType<AstralStar>(),
ProjectileID.BeeCloakStar,
ProjectileID.StarCloakStar,
ProjectileType<FallenStarProj>()
ProjectileID.StarCannonStar
});
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 12f, projectileType, astralStarDamage, 5f, Player.whoAmI);
@@ -688,7 +688,7 @@ namespace CalamityMod.CalPlayer
ProjectileType<AstralStar>(),
ProjectileID.BeeCloakStar,
ProjectileID.StarCloakStar,
ProjectileType<FallenStarProj>()
ProjectileID.StarCannonStar
});
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 25f, projectileType, astralStarDamage, 5f, Player.whoAmI);
+2 -2
View File
@@ -43,7 +43,7 @@ float mod(float a, float n)
(
float2 origin, float angle, float2 plot, float plotAngle)
{
//If the angle between the line's angle and the plot's angle is less than 90° (aka , not BEHIND the half-line), return the distance from the line
//If the angle between the line's angle and the plot's angle is less than 90� (aka , not BEHIND the half-line), return the distance from the line
if (abs(mod(angle - plotAngle + 3.1415926, 6.2831853) - 3.1415926) < 1.5707)
return distanceFromLine(origin, angle, plot);
@@ -75,7 +75,7 @@ float4 main(float2 uv : TEXCOORD) : COLOR
//Grabs the distance of the point from the edge line.
float distanceFromLine = distanceFromLineCropped(float2(0, 0), laserAngle, mappedUv, angle);
//If we are further from the line than the bloom's blending lenght, just don't.
//If we are further from the line than the bloom's blending length, just don't.
if (distanceFromLine > bloomSize + halfLaserWidth)
return float4(0, 0, 0, 0);
+5 -5
View File
@@ -1,7 +1,7 @@
float3 edgeColor;
float3 centerColor;
float edgeBlendLenght;
float edgeBlendLength;
float edgeBlendStrength;
float mainOpacity;
@@ -27,7 +27,7 @@ float distanceFromLine(float2 origin, float angle, float2 plot)
//Gets the distance of a plot from a line with a specified origin and angle, but crops the line so it only expands towards the angle
float distanceFromLineCropped(float2 origin, float angle, float2 plot, float plotAngle)
{
//If the angle between the line's angle and the plot's angle is less than 90° (aka , not BEHIND the half-line), return the distance from the line
//If the angle between the line's angle and the plot's angle is less than 90� (aka , not BEHIND the half-line), return the distance from the line
if (abs(angle - plotAngle) < 1.5707)
return distanceFromLine(origin, angle, plot);
@@ -68,12 +68,12 @@ float4 main(float2 uv : TEXCOORD) : COLOR
opacity = centerOpacity * pow(1 - distanceFromCenter, 2);
}
//If we are further from the line than the edge's blending lenght, just don't even do the blending.
if (distanceFromLine > edgeBlendLenght)
//If we are further from the line than the edge's blending length, just don't even do the blending.
if (distanceFromLine > edgeBlendLength)
return float4(colour * opacity * mainOpacity, opacity * mainOpacity);
//The higher this value is, the more we blend with the edge's opacity & color.
float edgeBlendFactor = pow(1 - distanceFromLine / edgeBlendLenght, edgeBlendStrength);
float edgeBlendFactor = pow(1 - distanceFromLine / edgeBlendLength, edgeBlendStrength);
colour = lerp(colour, edgeColor, edgeBlendFactor);
opacity = lerp(opacity, 1 * pow(1 - distanceFromCenter, 3), edgeBlendFactor) * mainOpacity;
+1 -1
View File
@@ -1,6 +1,6 @@
float rotation; // The rotation of the sword sprite.
//float2 spriteDimensions; //The size of the sprite (necessary as the shader only gives us a map between 0 and 1).
float pommelToOriginPercent; //I have no idea for a better variable name. This is the perccentage of the full lenght between the rotation origin and the sword's tip that is an empty gap between it and the bottom left of the sword.
float pommelToOriginPercent; //I have no idea for a better variable name. This is the perccentage of the full length between the rotation origin and the sword's tip that is an empty gap between it and the bottom left of the sword.
float4 color;
texture sampleTexture;
+4 -4
View File
@@ -8,7 +8,7 @@ float pingProgress; //How far along the ping progressed
float pingTravelTime; //Percent of the ping's duration during which the ping expands to reach its full radius.
float pingFadePoint; //Percent of the ping's duration at which to start fading away.
float edgeBlendStrength; //How starkly should the ping's edge fade off.
float edgeBlendOutLenght; //Small lenght at the edge of the wave to blend away smoothly.
float edgeBlendOutLength; //Small length at the edge of the wave to blend away smoothly.
float tileEdgeBlendStrenght; //How hard the border of a tile should get blended away.
float4 baseTintColor; //Color of the tile's overlay
@@ -175,7 +175,7 @@ float4 main(float2 uv : TEXCOORD) : COLOR
return float4(0, 0, 0, 0);
float waveEdgeDistanceFromCenter = max(currentPingRadius - pingWaveThickness, 0);
float edgeBlendFactor = pow(min(max((distanceFromPingOrigin - (waveEdgeDistanceFromCenter)), 0) / (pingWaveThickness - edgeBlendOutLenght), 1), edgeBlendStrength);
float edgeBlendFactor = pow(min(max((distanceFromPingOrigin - (waveEdgeDistanceFromCenter)), 0) / (pingWaveThickness - edgeBlendOutLength), 1), edgeBlendStrength);
float3 ColorTotal = lerp(baseTintColor.rgb, waveColor.rgb, edgeBlendFactor);
float OpacityTotal = lerp(baseTintColor.a, waveColor.a, edgeBlendFactor);
@@ -193,8 +193,8 @@ float4 main(float2 uv : TEXCOORD) : COLOR
}
//Fade away the border
if (realPingRadius - distanceFromPingOrigin < edgeBlendOutLenght)
OpacityTotal *= (realPingRadius - distanceFromPingOrigin) / edgeBlendOutLenght;
if (realPingRadius - distanceFromPingOrigin < edgeBlendOutLength)
OpacityTotal *= (realPingRadius - distanceFromPingOrigin) / edgeBlendOutLength;
//General fade out at the end.
OpacityTotal *= 1 - max(pingProgress - pingFadePoint, 0) / (1 - pingFadePoint);
+20
View File
@@ -2,6 +2,9 @@
using Terraria.DataStructures;
using Terraria.ModLoader;
using Terraria.ID;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -32,5 +35,22 @@ namespace CalamityMod.Items.Accessories
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.85f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -1,6 +1,9 @@
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -49,5 +52,22 @@ namespace CalamityMod.Items.Accessories
}
public override void UpdateEquip(Player player) => player.Calamity().blazingCursorVisuals = true;
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.5f,
drawOffset: new(0f, -4f)
);
return false;
}
}
}
+24
View File
@@ -6,6 +6,13 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
using Terraria.ID;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -52,5 +59,22 @@ namespace CalamityMod.Items.Accessories
AddTile<CosmicAnvil>().
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.8f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -3,6 +3,9 @@ using Terraria;
using Terraria.ID;
using Terraria.DataStructures;
using Terraria.ModLoader;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -35,5 +38,22 @@ Grants immunity to Dragonfire and Electrified");
player.buffImmune[BuffID.Electrified] = true;
player.buffImmune[ModContent.BuffType<Dragonfire>()] = true;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.95f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
-1
View File
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("Melee attacks and projectiles inflict Hellfire\n" +
"15% increased melee speed, damage, and 5% increased melee critical strike chance\n" +
"20% increased true melee damage\n" +
"Temporary immunity to lava\n" +
"Increased melee knockback\n" +
"Enables auto swing for melee weapons\n" +
"Increases the size of melee weapons");
+2 -3
View File
@@ -16,8 +16,7 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("35% decreased movement speed\n" +
"Enemies take damage when they hit you\n" +
"You move faster and lose 18 defense for 3 seconds if you take damage\n" +
"Temporary immunity to lava\n" +
"Grants immunity to Armor Crunch");
"Grants immunity to lava and Armor Crunch");
}
public override void SetDefaults()
@@ -35,7 +34,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.flameLickedShell = true;
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true;
player.lavaMax += 240;
player.lavaImmune = true;
float moveSpeedDecrease = modPlayer.shellBoost ? 0.15f : 0.35f;
player.moveSpeed -= moveSpeedDecrease;
player.thorns += 0.25f;
+21 -2
View File
@@ -1,8 +1,10 @@
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ModLoader;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
@@ -53,7 +55,7 @@ namespace CalamityMod.Items.Accessories
{
Vector2 spawn = baseSpawn;
spawn.X = spawn.X + i * 30 - (FireProjectiles * 15);
Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / (float)FireProjectiles)));
Vector2 velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-FireAngleSpread / 2 + (FireAngleSpread * i / FireProjectiles)));
velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f;
int damage = (int)player.GetBestClassDamage().ApplyTo(54);
Projectile.NewProjectile(source, spawn.X, spawn.Y, velocity.X, velocity.Y, ModContent.ProjectileType<BrimstoneHellfireballFriendly2>(), damage, 5f, Main.myPlayer, 0f, 0f);
@@ -62,5 +64,22 @@ namespace CalamityMod.Items.Accessories
}
}
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.8f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -3,6 +3,9 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories
{
@@ -36,5 +39,22 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.heartOfDarkness = true;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.8f,
drawOffset: new(-2f, -2f)
);
return false;
}
}
}
+19
View File
@@ -2,10 +2,12 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
using static Terraria.ModLoader.ModContent;
@@ -90,5 +92,22 @@ namespace CalamityMod.Items.Accessories
Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ProjectileType<HowlsHeartTurnipHead>(), 0, 0f, player.whoAmI, 0f, 0f);
}
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -6,6 +6,9 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories
{
@@ -45,5 +48,22 @@ namespace CalamityMod.Items.Accessories
AddTile(TileID.LunarCraftingStation).
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.9f,
drawOffset: new(2f, -2f)
);
return false;
}
}
}
+23
View File
@@ -3,9 +3,11 @@ using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -63,5 +65,26 @@ namespace CalamityMod.Items.Accessories
AddTile(TileID.LunarCraftingStation).
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
// This item doesn't follow many of the guidelines
// for this method.
// But I (nalyddd) saw the sprite in-game and felt extremely
// sad about how EXTREMELY squished it was.
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.55f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -2,6 +2,7 @@
using CalamityMod.Rarities;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -10,6 +11,7 @@ using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.GameContent;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
@@ -173,6 +175,24 @@ namespace CalamityMod.Items.Accessories
level = reader.ReadInt32();
totalRageDamage = reader.ReadInt64();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.5f,
drawOffset: new(0f, 2f)
);
//return false;
return true; // For some reason, putting this item in an accessory slot hides it UNLESS this returns true.
}
}
public class ShatteredCommunityPlayer : ModPlayer
+20
View File
@@ -3,6 +3,9 @@ using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories
{
@@ -46,5 +49,22 @@ namespace CalamityMod.Items.Accessories
AddTile(TileID.MythrilAnvil).
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.8f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -1,9 +1,12 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -51,5 +54,22 @@ namespace CalamityMod.Items.Accessories
AddTile(TileID.LunarCraftingStation).
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+20
View File
@@ -7,6 +7,9 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories
{
@@ -57,5 +60,22 @@ namespace CalamityMod.Items.Accessories
AddTile<CosmicAnvil>().
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+19
View File
@@ -1,12 +1,14 @@
using CalamityMod.CalPlayer;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using System.Linq;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -122,5 +124,22 @@ namespace CalamityMod.Items.Accessories
"Movement speed increased by " + (moveSpeedIncrease*100).ToString("n1") + "%\n" +
"Flight time increased by " + (flightTimeIncrease*100).ToString("n1") + "%";
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.7f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+33 -1
View File
@@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -65,12 +66,43 @@ namespace CalamityMod.Items.Accessories
}
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
return Texture != "CalamityMod/Items/Accessories/TheSponge";
}
public override void PostDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
if (Texture == "CalamityMod/Items/Accessories/TheSponge")
{
float wantedScale = 0.85f;
Vector2 drawOffset = new(-2f, -1f);
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale,
drawOffset
);
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Items/Accessories/TheSpongeShield").Value;
spriteBatch.Draw(tex, position, Main.itemAnimations[Item.type].GetFrame(tex), Color.Cyan * 0.4f, 0f, origin, scale, SpriteEffects.None, 0);
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: tex,
position,
Main.itemAnimations[Item.type].GetFrame(tex),
Color.Cyan * 0.4f,
itemColor,
origin,
scale,
wantedScale,
drawOffset
);
}
}
+20
View File
@@ -3,6 +3,9 @@ using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.DataStructures;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories
{
@@ -35,5 +38,22 @@ namespace CalamityMod.Items.Accessories
modPlayer.transformer = true;
modPlayer.aSpark = true;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.95f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+2 -3
View File
@@ -23,8 +23,7 @@ namespace CalamityMod.Items.Accessories
"12% increase to all damage\n" +
"All attacks inflict Brimstone Flames\n" +
"Brimstone fire rains down after getting hit\n" +
"Reduces damage from touching lava\n" +
"Grants immunity to Burning, On Fire!, Brimstone Flames and Searing Lava");
"Grants immunity to lava, Burning, On Fire!, Brimstone Flames and Searing Lava");
}
public override void SetDefaults()
@@ -62,7 +61,7 @@ namespace CalamityMod.Items.Accessories
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
player.buffImmune[BuffID.OnFire] = true;
player.fireWalk = true;
player.lavaRose = true;
player.lavaImmune = true;
player.GetDamage<GenericDamageClass>() += 0.12f;
if (player.immune)
{
+19
View File
@@ -1,10 +1,12 @@
using System;
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories
{
@@ -95,5 +97,22 @@ namespace CalamityMod.Items.Accessories
return bonus;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.6f,
drawOffset: new(0f, -2f)
);
return false;
}
}
}
+21 -3
View File
@@ -3,11 +3,13 @@ using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories.Wings
{
@@ -27,8 +29,7 @@ namespace CalamityMod.Items.Accessories.Wings
"50% increased running acceleration\n" +
"Greater mobility on ice\n" +
"Water and lava walking\n" +
"Immunity to the On Fire! debuff\n" +
"Temporary immunity to lava\n" +
"Immunity to lava and On Fire! debuff\n" +
"Being hit for over 200 damage will make you immune for an extended period of time");
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 12f, 3f);
}
@@ -66,7 +67,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
@@ -92,5 +93,22 @@ namespace CalamityMod.Items.Accessories.Wings
AddTile<CosmicAnvil>().
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.8f,
drawOffset: new(1f, 0f)
);
return false;
}
}
}
+21 -3
View File
@@ -3,11 +3,13 @@ using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.DataStructures;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories.Wings
{
@@ -27,8 +29,7 @@ namespace CalamityMod.Items.Accessories.Wings
"36% increased running acceleration\n" +
"Greater mobility on ice\n" +
"Water and lava walking\n" +
"Immunity to the On Fire! debuff\n" +
"Temporary immunity to lava");
"Immunity to lava and On Fire! debuff");
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 10.5f, 2.75f);
}
@@ -65,7 +66,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
@@ -92,5 +93,22 @@ namespace CalamityMod.Items.Accessories.Wings
AddTile<CosmicAnvil>().
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.9f,
drawOffset: new(1f, 0f)
);
return false;
}
}
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories.Wings
"Acceleration multiplier: 2.7\n" +
"Great vertical speed\n" +
"Flight time: 240\n" +
"Temporary immunity to lava and 10% increased movement speed");
"Grants immunity to lava and 10% increased movement speed");
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 9.5f, 2.7f);
}
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
CalamityPlayer modPlayer = player.Calamity();
player.moveSpeed += 0.1f;
player.lavaMax += 240;
player.lavaImmune = true;
player.noFallDmg = true;
modPlayer.elysianFire = true;
if (hideVisual)
+21 -3
View File
@@ -1,10 +1,12 @@
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent;
namespace CalamityMod.Items.Accessories.Wings
{
@@ -25,8 +27,7 @@ namespace CalamityMod.Items.Accessories.Wings
"24% increased running acceleration\n" +
"Greater mobility on ice\n" +
"Water and lava walking\n" +
"Immunity to the On Fire! debuff\n" +
"Temporary immunity to lava");
"Immunity to lava and On Fire! debuff");
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(140, 9f, 2.6f);
}
@@ -63,7 +64,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.iceSkate = true;
player.waterWalk = true;
player.fireWalk = true;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
@@ -88,5 +89,22 @@ namespace CalamityMod.Items.Accessories.Wings
AddTile(TileID.LunarCraftingStation).
Register();
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 0.9f,
drawOffset: new(1f, 0f)
);
return false;
}
}
}
+20
View File
@@ -4,6 +4,9 @@ using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
using Terraria.ID;
using Terraria.GameContent;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Items.Accessories.Wings
{
@@ -75,5 +78,22 @@ namespace CalamityMod.Items.Accessories.Wings
}
}
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(0f, 0f)
);
return false;
}
}
}
+5 -5
View File
@@ -120,9 +120,9 @@ namespace CalamityMod.Items.Accessories
/// </summary>
public int Grapple = 0;
/// <summary>
/// The lenght of the current rope. Determined when the grapple lands.
/// The length of the current rope. Determined when the grapple lands.
/// </summary>
public float SwingLenght = 0f;
public float SwingLength = 0f;
/// <summary>
/// Used when we need to store the hook between instructions.
/// </summary>
@@ -145,7 +145,7 @@ namespace CalamityMod.Items.Accessories
if (!PlayerOnGround)
return false;
if ((Player.Center - Main.projectile[Grapple].Center).Length() > SwingLenght)
if ((Player.Center - Main.projectile[Grapple].Center).Length() > SwingLength)
return false;
return true;
@@ -223,7 +223,7 @@ namespace CalamityMod.Items.Accessories
if (Grappled)
{
if ((Main.projectile[Grapple].Center - Player.Center).Length() > SwingLenght + 80f)
if ((Main.projectile[Grapple].Center - Player.Center).Length() > SwingLength + 80f)
{
SoundEngine.PlaySound(WulfrumAcrobaticsPack.ReleaseSound, Main.projectile[Grapple].Center);
Main.projectile[Grapple].Kill();
@@ -235,7 +235,7 @@ namespace CalamityMod.Items.Accessories
public void SimulateMovement(Projectile grapple)
{
Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLenght / SimulationResolution, 50, 0.3f * Player.gravDir);
Segments = VerletSimulatedSegment.SimpleSimulation(Segments, SwingLength / SimulationResolution, 50, 0.3f * Player.gravDir);
Vector2 CurrentPosition;
+1 -2
View File
@@ -16,8 +16,7 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("10% increased damage when under 50% life\n" +
"10% increased melee speed\n" +
"10% increased melee and true melee damage\n" +
"Melee attacks and melee projectiles inflict holy fire\n" +
"Temporary immunity to lava\n" +
"All melee attacks inflict Holy Flames\n" +
"Increased melee knockback");
}
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.godSlayerRanged = true;
modPlayer.auricSet = true;
player.thorns += 3f;
player.lavaMax += 240;
player.ignoreWater = true;
player.crimsonRegen = true;
@@ -56,7 +56,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.rogueStealthMax += 1.3f;
modPlayer.wearingRogueArmor = true;
player.thorns += 3f;
player.lavaMax += 240;
player.ignoreWater = true;
player.crimsonRegen = true;
-1
View File
@@ -56,7 +56,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.godSlayerDamage = true;
modPlayer.auricSet = true;
player.thorns += 3f;
player.lavaMax += 240;
player.ignoreWater = true;
player.crimsonRegen = true;
player.aggro += 1200;
@@ -58,7 +58,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.auricSet = true;
modPlayer.WearingPostMLSummonerSet = true;
player.thorns += 3f;
player.lavaMax += 240;
player.ignoreWater = true;
player.crimsonRegen = true;
player.GetDamage<SummonDamageClass>() += 0.75f;
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Armor.Auric
modPlayer.silvaMage = true;
modPlayer.auricSet = true;
player.thorns += 3f;
player.lavaMax += 240;
player.ignoreWater = true;
player.crimsonRegen = true;
}
@@ -15,8 +15,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
SacrificeTotal = 1;
DisplayName.SetDefault("Bloodflare Hydra Hood");
Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" +
"20% increased magic damage, 10% increased magic critical strike chance, +100 max mana and 17% reduced mana usage");
Tooltip.SetDefault("20% increased magic damage, 10% increased magic critical strike chance, +100 max mana and 17% reduced mana usage");
}
public override void SetDefaults()
@@ -54,8 +53,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void UpdateEquip(Player player)
{
player.manaCost *= 0.83f;
player.lavaMax += 240;
player.ignoreWater = true;
player.GetDamage<MagicDamageClass>() += 0.2f;
player.GetCritChance<MagicDamageClass>() += 10;
player.statManaMax2 += 100;
@@ -15,8 +15,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
SacrificeTotal = 1;
DisplayName.SetDefault("Bloodflare Ram Mask");
Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" +
"10% increased melee damage and critical strike chance");
Tooltip.SetDefault("10% increased melee damage and critical strike chance");
}
public override void SetDefaults()
@@ -57,8 +56,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void UpdateEquip(Player player)
{
player.lavaMax += 240;
player.ignoreWater = true;
player.GetDamage<MeleeDamageClass>() += 0.1f;
player.GetCritChance<MeleeDamageClass>() += 10;
}
@@ -18,8 +18,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
SacrificeTotal = 1;
DisplayName.SetDefault("Bloodflare Horned Helm");
Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" +
"10% increased ranged damage and critical strike chance");
Tooltip.SetDefault("10% increased ranged damage and critical strike chance");
}
public override void SetDefaults()
@@ -58,8 +57,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void UpdateEquip(Player player)
{
player.lavaMax += 240;
player.ignoreWater = true;
player.GetDamage<RangedDamageClass>() += 0.1f;
player.GetCritChance<RangedDamageClass>() += 10;
}
@@ -15,8 +15,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
SacrificeTotal = 1;
DisplayName.SetDefault("Bloodflare Imp Mask");
Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" +
"10% increased rogue damage and critical strike chance, 5% increased movement speed");
Tooltip.SetDefault("10% increased rogue damage and critical strike chance, 5% increased movement speed");
}
public override void SetDefaults()
@@ -57,8 +56,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void UpdateEquip(Player player)
{
player.lavaMax += 240;
player.ignoreWater = true;
player.GetDamage<ThrowingDamageClass>() += 0.1f;
player.GetCritChance<ThrowingDamageClass>() += 10;
player.moveSpeed += 0.05f;
@@ -15,8 +15,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
{
SacrificeTotal = 1;
DisplayName.SetDefault("Bloodflare Wyvern Helm");
Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" +
"5% increased minion damage");
Tooltip.SetDefault("5% increased minion damage");
}
public override void SetDefaults()
@@ -58,8 +57,6 @@ namespace CalamityMod.Items.Armor.Bloodflare
public override void UpdateEquip(Player player)
{
player.lavaMax += 240;
player.ignoreWater = true;
player.GetDamage<SummonDamageClass>() += 0.05f;
}
+1 -4
View File
@@ -12,8 +12,7 @@ namespace CalamityMod.Items.Armor.Brimflame
{
SacrificeTotal = 1;
DisplayName.SetDefault("Brimflame Robes");
Tooltip.SetDefault("5% increased magic damage and critical strike chance\n" +
"Reduces damage from touching lava");
Tooltip.SetDefault("5% increased magic damage and critical strike chance");
if (Main.netMode == NetmodeID.Server)
return;
@@ -37,13 +36,11 @@ namespace CalamityMod.Items.Armor.Brimflame
{
player.GetDamage<MagicDamageClass>() += 0.05f;
player.GetCritChance<MagicDamageClass>() += 5;
player.lavaRose = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.ObsidianRose).
AddIngredient<AshesofCalamity>(8).
AddIngredient<UnholyCore>(4).
AddTile(TileID.MythrilAnvil).
+1 -3
View File
@@ -25,8 +25,7 @@ namespace CalamityMod.Items.Armor.Empyrean
{
SacrificeTotal = 1;
DisplayName.SetDefault("Empyrean Mask");
Tooltip.SetDefault("11% increased rogue damage and critical strike chance, 5% increased movement speed\n" +
"Temporary immunity to lava");
Tooltip.SetDefault("11% increased rogue damage and critical strike chance, 5% increased movement speed");
if (Main.netMode == NetmodeID.Server)
return;
@@ -87,7 +86,6 @@ namespace CalamityMod.Items.Armor.Empyrean
player.GetDamage<ThrowingDamageClass>() += 0.11f;
player.GetCritChance<ThrowingDamageClass>() += 11;
player.moveSpeed += 0.05f;
player.lavaMax += 240;
}
public override void AddRecipes()
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
SacrificeTotal = 1;
DisplayName.SetDefault("Hydrothermic Mask");
Tooltip.SetDefault("12% increased magic damage, +100 max mana, and 10% increased magic critical strike chance\n" +
"Temporary immunity to lava, and immunity to fire damage");
"Grants immunity to lava and On Fire! debuff");
}
public override void SetDefaults()
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
player.statManaMax2 += 100;
player.GetDamage<MagicDamageClass>() += 0.12f;
player.GetCritChance<MagicDamageClass>() += 10;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
}
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" +
"18% increased melee speed\n" +
"Melee attacks and melee projectiles inflict on fire\n" +
"Temporary immunity to lava and immunity to fire damage");
"Grants immunity to lava and On Fire! debuff");
}
public override void SetDefaults()
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
player.GetAttackSpeed<MeleeDamageClass>() += 0.18f;
player.GetDamage<MeleeDamageClass>() += 0.12f;
player.GetCritChance<MeleeDamageClass>() += 10;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
}
@@ -15,7 +15,8 @@ namespace CalamityMod.Items.Armor.Hydrothermic
SacrificeTotal = 1;
DisplayName.SetDefault("Hydrothermic Headgear");
Tooltip.SetDefault("12% increased ranged damage and 10% increased ranged critical strike chance\n" +
"Reduces ammo usage by 25%, temporary immunity to lava, and immunity to fire damage");
"Reduces ammo usage by 25%\n" +
"Grants immunity to lava and On Fire! debuff");
}
public override void SetDefaults()
@@ -55,7 +56,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
player.ammoCost75 = true;
player.GetDamage<RangedDamageClass>() += 0.12f;
player.GetCritChance<RangedDamageClass>() += 10;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
}
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
DisplayName.SetDefault("Hydrothermic Hood");
Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" +
"50% chance to not consume rogue items and 5% increased movement speed\n" +
"Temporary immunity to lava and immunity to fire damage");
"Grants immunity to lava and On Fire! debuff");
}
public override void SetDefaults()
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
player.GetDamage<ThrowingDamageClass>() += 0.12f;
player.GetCritChance<ThrowingDamageClass>() += 10;
player.moveSpeed += 0.05f;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
}
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
SacrificeTotal = 1;
DisplayName.SetDefault("Hydrothermic Helmet");
Tooltip.SetDefault("5% increased minion damage and increased minion knockback\n" +
"Temporary immunity to lava and immunity to fire damage");
"Grants immunity to lava and On Fire! debuff");
}
public override void SetDefaults()
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
{
player.GetDamage<SummonDamageClass>() += 0.05f;
player.GetKnockback<SummonDamageClass>() += 1.5f;
player.lavaMax += 240;
player.lavaImmune = true;
player.buffImmune[BuffID.OnFire] = true;
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Reaver
SacrificeTotal = 1;
DisplayName.SetDefault("Reaver Headgear");
Tooltip.SetDefault("40% increased pick speed and block/wall placement speed\n" +
"Temporary immunity to lava and can move freely through liquids");
"Grants immunity to lava and can move freely through liquids");
}
public override void SetDefaults()
@@ -74,10 +74,10 @@ namespace CalamityMod.Items.Armor.Reaver
public override void UpdateEquip(Player player)
{
player.ignoreWater = true;
player.lavaImmune = true;
player.pickSpeed -= 0.4f;
player.tileSpeed += 0.4f;
player.wallSpeed += 0.4f;
player.lavaMax += 420;
}
public override void AddRecipes()
+1 -5
View File
@@ -15,9 +15,7 @@ namespace CalamityMod.Items.Armor.Tarragon
{
SacrificeTotal = 1;
DisplayName.SetDefault("Tarragon Mask");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids\n" +
"20% increased magic damage and 10% increased magic critical strike chance\n" +
Tooltip.SetDefault("20% increased magic damage and 10% increased magic critical strike chance\n" +
"5% increased damage reduction, +100 max mana, and 15% reduced mana usage");
}
@@ -60,9 +58,7 @@ namespace CalamityMod.Items.Armor.Tarragon
player.GetDamage<MagicDamageClass>() += 0.2f;
player.GetCritChance<MagicDamageClass>() += 10;
player.endurance += 0.05f;
player.lavaMax += 240;
player.statManaMax2 += 100;
player.ignoreWater = true;
}
public override void AddRecipes()
+2 -6
View File
@@ -15,10 +15,8 @@ namespace CalamityMod.Items.Armor.Tarragon
{
SacrificeTotal = 1;
DisplayName.SetDefault("Tarragon Helm");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids\n" +
"5% increased damage reduction\n" +
"10% increased melee damage and critical strike chance");
Tooltip.SetDefault("10% increased melee damage and critical strike chance\n" +
"5% increased damage reduction");
}
public override void SetDefaults()
@@ -61,8 +59,6 @@ namespace CalamityMod.Items.Armor.Tarragon
player.GetDamage<MeleeDamageClass>() += 0.1f;
player.GetCritChance<MeleeDamageClass>() += 10;
player.endurance += 0.05f;
player.lavaMax += 240;
player.ignoreWater = true;
}
public override void AddRecipes()
+1 -5
View File
@@ -15,9 +15,7 @@ namespace CalamityMod.Items.Armor.Tarragon
{
SacrificeTotal = 1;
DisplayName.SetDefault("Tarragon Visage");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids\n" +
"10% increased ranged damage and critical strike chance\n" +
Tooltip.SetDefault("10% increased ranged damage and critical strike chance\n" +
"5% increased damage reduction");
}
@@ -57,8 +55,6 @@ namespace CalamityMod.Items.Armor.Tarragon
player.GetDamage<RangedDamageClass>() += 0.1f;
player.GetCritChance<RangedDamageClass>() += 10;
player.endurance += 0.05f;
player.lavaMax += 240;
player.ignoreWater = true;
}
public override void AddRecipes()
+2 -6
View File
@@ -15,10 +15,8 @@ namespace CalamityMod.Items.Armor.Tarragon
{
SacrificeTotal = 1;
DisplayName.SetDefault("Tarragon Helmet");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids, 5% increased movement speed\n" +
"10% increased rogue damage and critical strike chance\n" +
"5% increased damage reduction");
Tooltip.SetDefault("10% increased rogue damage and critical strike chance\n" +
"5% increased damage reduction and movement speed");
}
public override void SetDefaults()
@@ -63,8 +61,6 @@ namespace CalamityMod.Items.Armor.Tarragon
player.GetCritChance<ThrowingDamageClass>() += 10;
player.moveSpeed += 0.05f;
player.endurance += 0.05f;
player.lavaMax += 240;
player.ignoreWater = true;
}
public override void AddRecipes()
+1 -5
View File
@@ -15,9 +15,7 @@ namespace CalamityMod.Items.Armor.Tarragon
{
SacrificeTotal = 1;
DisplayName.SetDefault("Tarragon Horned Helm");
Tooltip.SetDefault("Temporary immunity to lava\n" +
"Can move freely through liquids\n" +
"5% increased damage reduction and minion damage");
Tooltip.SetDefault("5% increased minion damage and damage reduction");
}
public override void SetDefaults()
@@ -59,8 +57,6 @@ namespace CalamityMod.Items.Armor.Tarragon
{
player.endurance += 0.05f;
player.GetDamage<SummonDamageClass>() += 0.05f;
player.lavaMax += 240;
player.ignoreWater = true;
}
public override void AddRecipes()
-15
View File
@@ -145,10 +145,6 @@ namespace CalamityMod.Items
if (item.type == ItemID.EoCShield)
CannotBeEnchanted = true;
// Star Cannon no longer makes noise.
if (item.type == ItemID.StarCannon)
item.UseSound = null;
// Fix Bones being attracted to the player when you have open ammo slots.
if (item.type == ItemID.Bone)
item.notAmmo = true;
@@ -500,17 +496,6 @@ namespace CalamityMod.Items
}
}
}
if (item.type == ItemID.StarCannon)
{
Vector2 muzzleOffset = velocity.SafeNormalize(Vector2.Zero) * 5f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0))
{
position += muzzleOffset;
}
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<FallenStarProj>(), damage, knockBack, player.whoAmI);
SoundEngine.PlaySound(SoundID.Item11 with { PitchVariance = 0.05f }, position);
return false;
}
if (item.type == ItemID.PearlwoodBow)
{
for (int i = 0; i < Main.maxProjectiles; i++)
+46 -20
View File
@@ -4,7 +4,10 @@ using CalamityMod.Tiles;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -12,56 +15,79 @@ namespace CalamityMod.Items.Materials
{
public class AuricBar : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public static Asset<Texture2D> GlowTexture { get; private set; }
public override void Load()
{
if (!Main.dedServ)
{
GlowTexture = ModContent.Request<Texture2D>($"{Texture}_Glow");
}
}
public override void SetStaticDefaults()
{
SacrificeTotal = 25;
ItemID.Sets.ItemNoGravity[Item.type] = true;
DisplayName.SetDefault("Auric Bar");
Tooltip.SetDefault("Boundless power emanates from the metal");
ItemID.Sets.SortingPriorityMaterials[Type] = 120;
ItemID.Sets.AnimatesAsSoul[Type] = true;
ItemID.Sets.ItemNoGravity[Item.type] = true;
Main.RegisterItemAnimation(
Type,
new DrawAnimationVertical(5, 12) /* 5 ticks per frame, has 12 frames total */
);
}
public override void Unload()
{
GlowTexture = null;
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<AuricTeslaBar>();
Item.width = 62;
Item.height = 44;
Item.maxStack = 999;
Item.DefaultToPlaceableTile(ModContent.TileType<AuricTeslaBar>());
Item.value = Item.sellPrice(gold: 60);
Item.rare = ModContent.RarityType<Violet>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
player.itemLocation += new Vector2(-20f * player.direction, 15f * player.gravDir).RotatedBy(player.itemRotation);
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBar_Animated").Value;
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
texture: TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(-1f, 0f)
);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBar_Animated").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/AuricBarGlow").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 5, 12, false), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
var frame = Item.GetFrame(whoAmI);
var position = Item.Center - Main.screenPosition;
var origin = frame.Size() / 2f;
spriteBatch.Draw(TextureAssets.Item[Type].Value, position, frame, lightColor, rotation, origin, scale, SpriteEffects.None, 0);
spriteBatch.Draw(GlowTexture.Value, position, frame, lightColor, rotation, origin, scale, SpriteEffects.None, 0);
}
public override void Update(ref float gravity, ref float maxFallSpeed)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+24 -10
View File
@@ -1,6 +1,9 @@
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Tiles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -12,25 +15,36 @@ namespace CalamityMod.Items.Materials
public override void SetStaticDefaults()
{
SacrificeTotal = 25;
DisplayName.SetDefault("Cryonic Bar");
ItemID.Sets.SortingPriorityMaterials[Type] = 90; // Chlorophyte Ore
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<CryonicBarTile>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.width = 30;
Item.height = 24;
Item.maxStack = 999;
Item.DefaultToPlaceableTile(ModContent.TileType<CryonicBarTile>());
Item.value = Item.sellPrice(silver: 60);
Item.rare = ItemRarityID.Pink;
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(-2f, 0f)
);
return false;
}
public override void AddRecipes()
{
CreateRecipe().
+25 -22
View File
@@ -3,6 +3,8 @@ using CalamityMod.Tiles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -11,42 +13,43 @@ namespace CalamityMod.Items.Materials
[LegacyName("CruptixBar")]
public class ScoriaBar : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
SacrificeTotal = 25;
DisplayName.SetDefault("Scoria Bar");
Tooltip.SetDefault("The smoke feels warm");
ItemID.Sets.SortingPriorityMaterials[Type] = 95; // Stardust Fragment
ItemID.Sets.SortingPriorityMaterials[Type] = 95; // Stardust Fragment
ItemID.Sets.AnimatesAsSoul[Type] = true;
Main.RegisterItemAnimation(
Type,
new DrawAnimationVertical(6, 6) /* 6 ticks per frame, has 6 frames total */
);
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<ChaoticBarPlaced>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.width = 40;
Item.height = 52;
Item.maxStack = 999;
Item.DefaultToPlaceableTile(ModContent.TileType<ChaoticBarPlaced>());
Item.value = Item.sellPrice(gold: 1, silver: 20);
Item.rare = ItemRarityID.Yellow;
}
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/Materials/ScoriaBar_Animated").Value;
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/ScoriaBar_Animated").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 6, 6), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(5f, -12f)
);
return false;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B

+31 -25
View File
@@ -4,6 +4,8 @@ using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -11,51 +13,55 @@ namespace CalamityMod.Items.Materials
{
public class ShadowspecBar : ModItem
{
public int frameCounter = 0;
public int frame = 0;
public override void SetStaticDefaults()
{
SacrificeTotal = 25;
DisplayName.SetDefault("Shadowspec Bar");
Tooltip.SetDefault("A vile, black metal, so horrendous and powerful as to defy explanation");
ItemID.Sets.SortingPriorityMaterials[Type] = 124;
ItemID.Sets.SortingPriorityMaterials[Type] = 124;
ItemID.Sets.AnimatesAsSoul[Type] = true;
Main.RegisterItemAnimation(
Type,
new DrawAnimationVertical(8, 8) /* 8 ticks per frame, has 8 frames total */
);
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<ShadowspecBarTile>();
Item.width = 38;
Item.height = 40;
Item.maxStack = 999;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.DefaultToPlaceableTile(ModContent.TileType<ShadowspecBarTile>());
Item.value = Item.sellPrice(platinum: 1, gold: 92);
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
}
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/Materials/ShadowspecBar_Animated").Value;
spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), Color.White, 0f, origin, scale, SpriteEffects.None, 0);
return false;
}
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/Materials/ShadowspecBar_Animated").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0);
CalamityUtils.DrawInventoryCustomScale(
spriteBatch,
TextureAssets.Item[Type].Value,
position,
frame,
drawColor,
itemColor,
origin,
scale,
wantedScale: 1f,
drawOffset: new(0f, -6f)
);
return false;
}
public override void AddRecipes()
{
CreateRecipe(1).AddIngredient(ModContent.ItemType<AuricBar>()).AddIngredient(ModContent.ItemType<ExoPrism>()).AddIngredient(ModContent.ItemType<AshesofAnnihilation>()).AddTile(ModContent.TileType<DraedonsForge>()).Register();
CreateRecipe()
.AddIngredient<AuricBar>()
.AddIngredient<ExoPrism>()
.AddIngredient<AshesofAnnihilation>()
.AddTile<DraedonsForge>()
.Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 425 B

+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.SummonItems
{
SacrificeTotal = 1;
DisplayName.SetDefault("Eye of Desolation");
Tooltip.SetDefault("Tonight is going to be a horrific night...\n" +
Tooltip.SetDefault("This is going to be a horrific night...\n" +
"Summons the Calamitas Clone when used during nighttime\n" +
"Enrages during the day\n" +
"Not consumable");
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
Item.damage = 128;
Item.damage = 96;
Item.DamageType = DamageClass.Magic;
Item.mana = 18;
Item.width = 56;
+2 -2
View File
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Magic
Item.mana = 13;
Item.width = 28;
Item.height = 30;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 5.5f;
+49 -35
View File
@@ -1,7 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -11,58 +10,73 @@ namespace CalamityMod.Items.Weapons.Magic
{
public class ShaderainStaff : ModItem
{
#region Other stats
// Stats for the shaderain.
public const int RainAmount = 3;
public const float LesserRainVELMultiplier = 0.75f; // The lowest speed modifier the rain can get.
public const float HigherRainVELMultiplier = 1.25f; // The highest speed modifier the rain can get.
public const float GravityStrenght = 0.15f;
// Stats for the shade clouds.
public const int FadeoutSpeed = 2;
public const float CloudDMGMultiplier = 1.25f;
public const float CloudVELMultiplier = 1.25f;
public const float DeaccelerationStrenght = 0.95f; // A number lower than 1, non-including 1, changing it very slightly will have drastic results.
#endregion
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shaderain Staff");
Tooltip.SetDefault("Fires a shade storm cloud");
Tooltip.SetDefault("Fires a spray of evil clouds and rain");
Item.staff[Item.type] = true;
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.damage = 21;
Item.DamageType = DamageClass.Magic;
Item.shootSpeed = 10f;
Item.useTime = Item.useAnimation = 25;
Item.mana = 10;
Item.width = 42;
Item.height = 42;
Item.useTime = 25;
Item.useAnimation = 25;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<Shaderain>();
Item.width = Item.height = 42;
Item.DamageType = DamageClass.Magic;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item66;
Item.shoot = ModContent.ProjectileType<ShadeNimbus>();
Item.shootSpeed = 16f;
Item.rare = ItemRarityID.Orange;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.autoReuse = true;
Item.noMelee = true;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float num72 = Item.shootSpeed;
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
if (player.gravDir == -1f)
// Shoots the shaderain.
for (int shadeRainIndex = 0; shadeRainIndex < RainAmount; shadeRainIndex++)
{
num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y;
Projectile.NewProjectile(source,
player.Center,
velocity * Main.rand.NextFloat(LesserRainVELMultiplier, HigherRainVELMultiplier),
type,
damage,
knockback,
player.whoAmI);
}
float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f))
{
num78 = (float)player.direction;
num79 = 0f;
num80 = num72;
}
else
{
num80 = num72 / num80;
}
num78 *= num80;
num79 *= num80;
int num154 = Projectile.NewProjectile(source, vector2.X, vector2.Y, num78, num79, ModContent.ProjectileType<ShadeNimbusCloud>(), damage, knockback, player.whoAmI, 0f, 0f);
Main.projectile[num154].ai[0] = (float)Main.mouseX + Main.screenPosition.X;
Main.projectile[num154].ai[1] = (float)Main.mouseY + Main.screenPosition.Y;
// Shoots the small cloud.
Projectile.NewProjectile(source,
player.Center,
velocity * CloudVELMultiplier,
ModContent.ProjectileType<ShadeNimbusCloud>(),
(int)(damage * CloudDMGMultiplier),
knockback,
player.whoAmI);
return false;
}
+2 -2
View File
@@ -25,8 +25,8 @@ namespace CalamityMod.Items.Weapons.Magic
Item.mana = 18;
Item.width = 28;
Item.height = 30;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 5.5f;
+3 -3
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
public float Combo = 0f;
public float Charge = 0f;
public const float ComboLenght = 4f; //How many regular swings before the long throw happens
public const float ComboLength = 4f; //How many regular swings before the long throw happens
public static float snapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap
public static float chargeDamageMultiplier = 1.2f; //Extra damage from charge
@@ -146,12 +146,12 @@ namespace CalamityMod.Items.Weapons.Melee
if (Charge > 0)
damage = (int)(chargeDamageMultiplier * damage);
float scissorState = Combo == ComboLenght ? 2 : Combo % 2;
float scissorState = Combo == ComboLength ? 2 : Combo % 2;
Projectile.NewProjectile(source, player.Center, velocity, ProjectileType<ArkoftheElementsSwungBlade>(), damage, knockback, player.whoAmI, scissorState, Charge);
Combo += 1;
if (Combo > ComboLenght)
if (Combo > ComboLength)
Combo = 0;
+42 -37
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Carnage");
Tooltip.SetDefault("Enemies explode into homing blood on death");
Tooltip.SetDefault("Slain enemies erupt into homing blood");
SacrificeTotal = 1;
}
@@ -36,58 +36,63 @@ namespace CalamityMod.Items.Weapons.Melee
public override void MeleeEffects(Player player, Rectangle hitbox)
{
// Spawn occasional blood dust
if (Main.rand.NextBool(3))
{
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 5);
}
Dust.NewDust(hitbox.TopLeft(), hitbox.Width, hitbox.Height, DustID.Blood);
}
// Carnage's on-hits only occur on valid enemies. Specifically won't trigger on statues.
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
OnHitEffects(player, target.life <= 0, target.Center, target.width, target.height, knockback);
if (target.life > 0 || !target.IsAnEnemy(allowStatues: false))
return;
OnHitEffects(player, target, knockback);
}
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
OnHitEffects(player, target.statLife <= 0, target.Center, target.width, target.height, Item.knockBack);
if (target.statLife > 0)
return;
OnHitEffects(player, target, Item.knockBack);
}
private void OnHitEffects(Player player, bool health, Vector2 targetPos, int targetWidth, int targetHeight, float kBack)
private void OnHitEffects(Player player, Entity target, float kb)
{
if (health)
var source = player.GetSource_ItemUse(Item);
// Play sound
SoundEngine.PlaySound(SoundID.Item74, target.Center);
// Dust loop 1
for (int i = 0; i < 15; i++)
{
var source = player.GetSource_ItemUse(Item);
SoundEngine.PlaySound(SoundID.Item74, targetPos);
targetPos.X += (float)(targetWidth / 2);
targetPos.Y += (float)(targetHeight / 2);
targetPos.X -= (float)(targetWidth / 2);
targetPos.Y -= (float)(targetHeight / 2);
for (int i = 0; i < 15; i++)
int idx = Dust.NewDust(target.position, target.width, target.height, DustID.Blood, 0f, 0f, 100, default, 2f);
Main.dust[idx].velocity *= 3f;
if (Main.rand.NextBool(2))
{
int idx = Dust.NewDust(targetPos, targetWidth, targetHeight, 5, 0f, 0f, 100, default, 2f);
Main.dust[idx].velocity *= 3f;
if (Main.rand.NextBool(2))
{
Main.dust[idx].scale = 0.5f;
Main.dust[idx].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
}
}
for (int i = 0; i < 25; i++)
{
int idx = Dust.NewDust(targetPos, targetWidth, targetHeight, 5, 0f, 0f, 100, default, 3f);
Main.dust[idx].noGravity = true;
Main.dust[idx].velocity *= 5f;
idx = Dust.NewDust(targetPos, targetWidth, targetHeight, 5, 0f, 0f, 100, default, 2f);
Main.dust[idx].velocity *= 2f;
}
int bloodAmt = Main.rand.Next(4, 6);
int bloodDamage = player.CalcIntDamage<MeleeDamageClass>(Item.damage);
for (int i = 0; i < bloodAmt; i++)
{
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
Projectile.NewProjectile(source, targetPos, velocity, ModContent.ProjectileType<Blood>(), bloodDamage, kBack, player.whoAmI, 0f, 0f);
Main.dust[idx].scale = 0.5f;
Main.dust[idx].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
}
}
// Dust loop 2
for (int i = 0; i < 25; i++)
{
int idx = Dust.NewDust(target.position, target.width, target.height, DustID.Blood, 0f, 0f, 100, default, 3f);
Main.dust[idx].noGravity = true;
Main.dust[idx].velocity *= 5f;
idx = Dust.NewDust(target.position, target.width, target.height, DustID.Blood, 0f, 0f, 100, default, 2f);
Main.dust[idx].velocity *= 2f;
}
// 6-8 blood projectiles spawned on kill
int bloodAmt = Main.rand.Next(6, 9);
int bloodDamage = player.CalcIntDamage<MeleeDamageClass>(0.3f * Item.damage);
for (int i = 0; i < bloodAmt; i++)
{
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
Projectile.NewProjectile(source, target.Center, velocity, ModContent.ProjectileType<Blood>(), bloodDamage, kb, player.whoAmI, 0f, 0f);
}
}
}
}
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 100;
Item.height = 100;
Item.autoReuse = true;
Item.useAnimation = Item.useTime = 72;
Item.useAnimation = Item.useTime = 64;
Item.shoot = ModContent.ProjectileType<Rox1>();
Item.shootSpeed = 10f;
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Melee
Item.damage = 26;
Item.DamageType = DamageClass.Melee;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.width = 38;
Item.height = 38;
Item.width = 40;
Item.height = 40;
Item.knockBack = 2;
Item.shootSpeed = 11;
Item.rare = ItemRarityID.Green;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

After

Width:  |  Height:  |  Size: 784 B

+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 84;
Item.height = 90;
Item.width = 90;
Item.height = 100;
Item.scale = 1.5f;
Item.damage = 480;
Item.DamageType = DamageClass.Melee;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

+3 -4
View File
@@ -13,8 +13,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Clockwork Bow");
Tooltip.SetDefault("Hold left click to load up to six precision bolts\n" +
"The more precision bolts are loaded, the harder they hit");
Tooltip.SetDefault("Hold to load up to six homing precision bolts\n" +
"Loads slightly faster when continuously used");
SacrificeTotal = 1;
}
@@ -24,8 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.DamageType = DamageClass.Ranged;
Item.width = 48;
Item.height = 96;
Item.useTime = 60;
Item.useAnimation = 30;
Item.useTime = Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.channel = true;
+2 -2
View File
@@ -55,10 +55,10 @@ namespace CalamityMod.Items.Weapons.Ranged
Rectangle targetHitbox = target.Hitbox;
float collisionPoint = 0f;
float gunLenght = 66f;
float gunLength = 66f;
float gunHeight = 15;
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), player.MountedCenter, player.MountedCenter + ((player.itemRotation + (player.direction < 0 ? MathHelper.Pi : 0f)).ToRotationVector2() * gunLenght), gunHeight, ref collisionPoint) ? null : false;
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), player.MountedCenter, player.MountedCenter + ((player.itemRotation + (player.direction < 0 ? MathHelper.Pi : 0f)).ToRotationVector2() * gunLength), gunHeight, ref collisionPoint) ? null : false;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
+2 -2
View File
@@ -48,10 +48,10 @@ namespace CalamityMod.Items.Weapons.Ranged
Rectangle targetHitbox = target.Hitbox;
float collisionPoint = 0f;
float gunLenght = 60f;
float gunLength = 60f;
float gunHeight = 26f;
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), player.MountedCenter, player.MountedCenter + ((player.itemRotation + (player.direction < 0 ? MathHelper.Pi : 0f)).ToRotationVector2() * gunLenght), gunHeight, ref collisionPoint) ? null : false;
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), player.MountedCenter, player.MountedCenter + ((player.itemRotation + (player.direction < 0 ? MathHelper.Pi : 0f)).ToRotationVector2() * gunLength), gunHeight, ref collisionPoint) ? null : false;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
+4 -4
View File
@@ -106,8 +106,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
float aimLenght = (Main.MouseWorld - player.MountedCenter).Length();
float damageMult = MathHelper.Lerp(1f, MaxDamageFalloff, Math.Clamp(aimLenght - MaxSpreadDistance, 0, MinSpreadDistance - MaxSpreadDistance) / (MinSpreadDistance - MaxSpreadDistance));
float aimLength = (Main.MouseWorld - player.MountedCenter).Length();
float damageMult = MathHelper.Lerp(1f, MaxDamageFalloff, Math.Clamp(aimLength - MaxSpreadDistance, 0, MinSpreadDistance - MaxSpreadDistance) / (MinSpreadDistance - MaxSpreadDistance));
damage = (int)(damage * damageMult);
}
@@ -116,8 +116,8 @@ namespace CalamityMod.Items.Weapons.Ranged
if (player.Calamity().GeneralScreenShakePower < 3f)
player.Calamity().GeneralScreenShakePower = 3f;
float aimLenght = (Main.MouseWorld - player.MountedCenter).Length();
float spreadDistance = Math.Clamp(aimLenght - MaxSpreadDistance, 0, MinSpreadDistance - MaxSpreadDistance) / (MinSpreadDistance - MaxSpreadDistance);
float aimLength = (Main.MouseWorld - player.MountedCenter).Length();
float spreadDistance = Math.Clamp(aimLength - MaxSpreadDistance, 0, MinSpreadDistance - MaxSpreadDistance) / (MinSpreadDistance - MaxSpreadDistance);
float spread = MathHelper.Lerp(MaxSpread, MinSpread, spreadDistance);
Vector2 nuzzleDir = velocity.SafeNormalize(Vector2.Zero);
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SetDefaults()
{
Item.width = 44;
Item.width = 48;
Item.damage = 16;
Item.noMelee = true;
Item.noUseGraphic = true;
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.knockBack = 3f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.height = 44;
Item.height = 48;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.rare = ItemRarityID.Green;
Item.shoot = ModContent.ProjectileType<CrystallineProj>();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1009 B

After

Width:  |  Height:  |  Size: 622 B

+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.damage = 17;
Item.shootSpeed = 12f;
Item.shoot = ModContent.ProjectileType<Brick>();
Item.width = 26;
Item.width = 28;
Item.height = 20;
Item.useTime = Item.useAnimation = 35;
Item.useStyle = ItemUseStyleID.Swing;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 369 B

+13 -13
View File
@@ -12,35 +12,35 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Herring Staff");
Tooltip.SetDefault("Summons a herring to fight for you\n" +
"Each herring takes only half of a minion slot");
Tooltip.SetDefault("Summons a group of herrings to fight for you");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.damage = 17;
Item.knockBack = 1.25f;
Item.mana = 10;
Item.shoot = ModContent.ProjectileType<HerringAI>();
Item.width = Item.height = 48;
Item.useTime = Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.knockBack = 1.25f;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item21;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<HerringMinion>();
Item.DamageType = DamageClass.Summon;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item21;
Item.rare = ItemRarityID.Orange;
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
Item.autoReuse = true;
Item.noMelee = true;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse != 2)
{
position = Main.MouseWorld;
velocity = Vector2.Zero;
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
int p = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, type, damage, knockback, player.whoAmI);
if (Main.projectile.IndexInRange(p))
Main.projectile[p].originalDamage = Item.damage;
}
+22 -15
View File
@@ -10,6 +10,14 @@ namespace CalamityMod.Items.Weapons.Summon
{
public class SandSharknadoStaff : ModItem
{
#region Other stats for easy modifcation
public const float ProjVel = 30f;
public const float FireSpeed = 120f; // In frames. 60 frames = 2 seconds.
#endregion
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sand Sharknado Staff");
@@ -20,32 +28,31 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
Item.damage = 47;
Item.knockBack = 2f;
Item.mana = 10;
Item.shoot = ModContent.ProjectileType<SandnadoMinion>();
Item.width = 48;
Item.height = 56;
Item.useTime = Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.knockBack = 2f;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.UseSound = SoundID.Item44;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<SandnadoMinion>();
Item.shootSpeed = 10f;
Item.DamageType = DamageClass.Summon;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item44;
Item.rare = ItemRarityID.Lime;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.noMelee = true;
Item.autoReuse = true;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse != 2)
{
position = Main.MouseWorld;
velocity.X = 0;
velocity.Y = 0;
int p = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI, 0f, 1f);
if (Main.projectile.IndexInRange(p))
Main.projectile[p].originalDamage = Item.damage;
int sandnado = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, type, damage, knockback, player.whoAmI);
if (Main.projectile.IndexInRange(sandnado))
Main.projectile[sandnado].originalDamage = Item.damage;
}
return false;
}
+1 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Summon
Item.noMelee = true;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.maxMinions >= 8;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.damage = 40;
Item.mana = 10;
Item.width = 52;
Item.width = 50;
Item.height = 60;
Item.useTime = Item.useAnimation = 25;
Item.useStyle = ItemUseStyleID.Swing;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 724 B

+3
View File
@@ -19,6 +19,9 @@ namespace CalamityMod.NPCs.Abyss
{
DisplayName.SetDefault("Box Jellyfish");
Main.npcFrameCount[NPC.type] = 4;
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0);
value.Position.Y += 10;
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
}
public override void SetDefaults()
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.NPCs.Abyss
NPC.width = 78;
NPC.height = 78;
NPC.defense = 50;
NPC.lifeMax = 5625;
NPC.lifeMax = 5600;
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
+2 -2
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.AcidRain
NPC.height = 20;
NPC.damage = 20;
NPC.lifeMax = 42;
NPC.lifeMax = 45;
NPC.defense = 4;
NPC.knockBackResist = 0.9f;
@@ -59,7 +59,7 @@ namespace CalamityMod.NPCs.AcidRain
else if (DownedBossSystem.downedAquaticScourge)
{
NPC.damage = 50;
NPC.lifeMax = 176;
NPC.lifeMax = 180;
}
NPC.value = Item.buyPrice(0, 0, 3, 32);
Loaded 100 of 386 files, more files were not shown because too many files have changed in this diff. Show more