Merge branch '1.4' into patron-items
This commit is contained in:
commit
f204ee17d1
731 files changed
+3099
-3628
No files matched your search
@@ -133,7 +133,7 @@ namespace CalamityMod.Balancing
|
||||
public bool AppliesTo(NPC npc, NPCHitContext hitContext)
|
||||
{
|
||||
if (hitContext.DamageSource == DamageSourceType.FriendlyProjectile)
|
||||
return Main.projectile[hitContext.ProjectileIndex.Value].Calamity().trueMelee;
|
||||
return Main.projectile[hitContext.ProjectileIndex.Value].IsTrueMelee();
|
||||
|
||||
return hitContext.DamageSource == DamageSourceType.TrueMeleeSwing;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 562 B |
+71
-71
@@ -1,23 +1,34 @@
|
||||
using CalamityMod.Balancing;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs;
|
||||
using CalamityMod.Buffs.Cooldowns;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Pets;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.EntitySources;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.FluidSimulation;
|
||||
using CalamityMod.Items;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.Armor.Bloodflare;
|
||||
using CalamityMod.Items.Armor.Brimflame;
|
||||
using CalamityMod.Items.Armor.Demonshade;
|
||||
using CalamityMod.Items.Armor.GemTech;
|
||||
using CalamityMod.Items.Armor.OmegaBlue;
|
||||
using CalamityMod.Items.Armor.PlagueReaper;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Mounts.Minecarts;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
@@ -43,11 +54,9 @@ using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.Chat;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.Graphics.Shaders;
|
||||
@@ -55,19 +64,6 @@ using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.IO;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using Terraria.Chat;
|
||||
using CalamityMod.EntitySources;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.FluidSimulation;
|
||||
using CalamityMod.Items.Armor.Bloodflare;
|
||||
using CalamityMod.Items.Armor.Brimflame;
|
||||
using CalamityMod.Items.Armor.Demonshade;
|
||||
using CalamityMod.Items.Armor.GemTech;
|
||||
using CalamityMod.Items.Armor.OmegaBlue;
|
||||
using CalamityMod.Items.Armor.PlagueReaper;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
|
||||
namespace CalamityMod.CalPlayer
|
||||
{
|
||||
@@ -95,7 +91,6 @@ namespace CalamityMod.CalPlayer
|
||||
public float KameiTrailXScale = 0.1f;
|
||||
public int KameiBladeUseDelay = 0;
|
||||
public Vector2[] OldPositions = new Vector2[4];
|
||||
public double trueMeleeDamage = 0D;
|
||||
public double contactDamageReduction = 0D;
|
||||
public double projectileDamageReduction = 0D;
|
||||
public const float projectileMeleeWeaponMeleeSpeedMultiplier = 0f;
|
||||
@@ -128,7 +123,10 @@ namespace CalamityMod.CalPlayer
|
||||
public DoGCartSegment[] DoGCartSegments = new DoGCartSegment[DoGCartMount.SegmentCount];
|
||||
public float SmoothenedMinecartRotation;
|
||||
public bool LungingDown = false;
|
||||
|
||||
public float moveSpeedBonus = 0f;
|
||||
public int momentumCapacitorTime = 0;
|
||||
public float momentumCapacitorBoost = 0f;
|
||||
#endregion
|
||||
|
||||
#region Speedrun Timer
|
||||
@@ -364,7 +362,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
#region Defense Damage
|
||||
// Ratio at which incoming damage (after mitigation) is converted into defense damage.
|
||||
// Used to be 5% normal, 10% expert, 12% rev, 15% death, 20% malice
|
||||
// Used to be 5% normal, 10% expert, 12% rev, 15% death, 20% boss rush
|
||||
// It is now 15% on all difficulties because you already take less damage on lower difficulties.
|
||||
public const double DefenseDamageRatio = 0.15;
|
||||
public int CurrentDefenseDamage => (int)(totalDefenseDamage * ((float)defenseDamageRecoveryFrames / totalDefenseDamageRecoveryFrames));
|
||||
@@ -567,7 +565,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool dragonScales = false;
|
||||
public bool gloveOfPrecision = false;
|
||||
public bool gloveOfRecklessness = false;
|
||||
public bool momentumCapacitor = false;
|
||||
public bool vampiricTalisman = false;
|
||||
public bool electricianGlove = false;
|
||||
public bool bloodyGlove = false;
|
||||
@@ -1485,9 +1482,6 @@ namespace CalamityMod.CalPlayer
|
||||
rogueAmmoCost = 1f;
|
||||
accStealthGenBoost = 0f;
|
||||
|
||||
trueMeleeDamage = 0D;
|
||||
warBannerBonus = 0f;
|
||||
|
||||
DashID = string.Empty;
|
||||
externalAbyssLight = 0;
|
||||
externalColdImmunity = externalHeatImmunity = false;
|
||||
@@ -1819,7 +1813,6 @@ namespace CalamityMod.CalPlayer
|
||||
dragonScales = false;
|
||||
gloveOfPrecision = false;
|
||||
gloveOfRecklessness = false;
|
||||
momentumCapacitor = false;
|
||||
vampiricTalisman = false;
|
||||
electricianGlove = false;
|
||||
bloodyGlove = false;
|
||||
@@ -2509,6 +2502,8 @@ namespace CalamityMod.CalPlayer
|
||||
potionTimer = 0;
|
||||
bloodflareCoreLostDefense = 0;
|
||||
persecutedEnchantSummonTimer = 0;
|
||||
momentumCapacitorTime = 0;
|
||||
momentumCapacitorBoost = 0f;
|
||||
LungingDown = false;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
@@ -2557,15 +2552,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void ProcessTriggers(TriggersSet triggersSet)
|
||||
{
|
||||
if (CalamityKeybinds.MomentumCapacitatorHotkey.JustPressed && momentumCapacitor && Main.myPlayer == Player.whoAmI && rogueStealth >= rogueStealthMax * 0.3f &&
|
||||
wearingRogueArmor && rogueStealthMax > 0 && CalamityUtils.CountProjectiles(ModContent.ProjectileType<MomentumCapacitorOrb>()) == 0)
|
||||
{
|
||||
rogueStealth -= rogueStealthMax * 0.3f;
|
||||
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<MomentumCapacitor>()));
|
||||
Vector2 fieldSpawnCenter = new Vector2(Main.mouseX, Main.mouseY) + Main.screenPosition;
|
||||
Projectile.NewProjectile(source, fieldSpawnCenter, Vector2.Zero, ModContent.ProjectileType<MomentumCapacitorOrb>(), 0, 0f, Player.whoAmI, 0f, 0f);
|
||||
}
|
||||
if (CalamityKeybinds.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
if (!Player.CCed && !Player.chaosState)
|
||||
@@ -2776,10 +2762,10 @@ namespace CalamityMod.CalPlayer
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i;
|
||||
int soul = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, ModContent.ProjectileType<BloodflareSoul>(), damage, 0f, Player.whoAmI, 0f, ai1);
|
||||
if (soul.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[soul].Calamity().forceClassless = true;
|
||||
Main.projectile[soul].DamageType = DamageClass.Generic;
|
||||
int soul2 = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, ModContent.ProjectileType<BloodflareSoul>(), damage, 0f, Player.whoAmI, 0f, ai1);
|
||||
if (soul2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[soul2].Calamity().forceClassless = true;
|
||||
Main.projectile[soul2].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2867,7 +2853,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int mark = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, ModContent.ProjectileType<CircletMark>(), damage, kBack, Player.whoAmI);
|
||||
if (mark.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[mark].Calamity().forceClassless = true;
|
||||
Main.projectile[mark].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2947,7 +2933,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[projectileIndex].tileCollide = false;
|
||||
Main.projectile[projectileIndex].localAI[1] = (Main.projectile[projectileIndex].velocity.Y < 0f).ToInt();
|
||||
if (projectileIndex.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectileIndex].Calamity().forceClassless = true;
|
||||
Main.projectile[projectileIndex].DamageType = DamageClass.Generic;
|
||||
}
|
||||
|
||||
// Remove all rage when the special attack is used, and apply the cooldown.
|
||||
@@ -3107,7 +3093,7 @@ namespace CalamityMod.CalPlayer
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
|
||||
int bubble = Projectile.NewProjectile(source, new Vector2(Player.position.X, Player.position.Y + (Player.gravDir == -1f ? 20 : -20)), Vector2.Zero, ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), damage, 0f, Player.whoAmI, 1f, 0f);
|
||||
if (bubble.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[bubble].Calamity().forceClassless = true;
|
||||
Main.projectile[bubble].DamageType = DamageClass.Generic;
|
||||
sulphurBubbleCooldown = 20;
|
||||
}
|
||||
}
|
||||
@@ -3541,7 +3527,16 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region PostUpdateEquips
|
||||
public override void PostUpdateEquips() => ForceVariousEffects();
|
||||
public override void PostUpdateEquips()
|
||||
{
|
||||
// True melee damage from various vanilla equipment placed here.
|
||||
|
||||
// Titan Glove and ALL upgrades
|
||||
if (Player.kbGlove)
|
||||
Player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
|
||||
ForceVariousEffects();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region PostUpdate
|
||||
@@ -3572,8 +3567,7 @@ namespace CalamityMod.CalPlayer
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(blueCandle ? 0.05f : 0f) +
|
||||
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f);
|
||||
|
||||
float runSpeedMult = 1f +
|
||||
(shadowSpeed ? 0.5f : 0f) +
|
||||
@@ -3586,8 +3580,7 @@ namespace CalamityMod.CalPlayer
|
||||
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f) +
|
||||
(rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f);
|
||||
((deepDiver && Player.IsUnderwater()) ? 0.15f : 0f);
|
||||
|
||||
if (abyssalDivingSuit && !Player.IsUnderwater())
|
||||
{
|
||||
@@ -3616,6 +3609,19 @@ namespace CalamityMod.CalPlayer
|
||||
runAccMult *= 0.6f;
|
||||
}
|
||||
|
||||
if (momentumCapacitorTime > 0)
|
||||
{
|
||||
runAccMult += momentumCapacitorBoost * 0.25f;
|
||||
runSpeedMult += momentumCapacitorBoost;
|
||||
|
||||
// Sputters out chaotically when you let go of the button
|
||||
if (momentumCapacitorTime < MomentumCapacitor.TotalFadeTime - 3)
|
||||
momentumCapacitorBoost *= Main.rand.NextFloat(0.955f, 0.99f);
|
||||
}
|
||||
// If the timer has hit zero, or you aren't using Momentum Capacitor, you get nothing.
|
||||
else
|
||||
momentumCapacitorBoost = 0f;
|
||||
|
||||
Player.runAcceleration *= runAccMult;
|
||||
Player.maxRunSpeed *= runSpeedMult;
|
||||
}
|
||||
@@ -3773,7 +3779,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[lumenyl].rotation = Main.rand.NextFloat(0, 360);
|
||||
Main.projectile[lumenyl].frame = Main.rand.Next(0, 4);
|
||||
if (lumenyl.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[lumenyl].Calamity().forceClassless = true;
|
||||
Main.projectile[lumenyl].DamageType = DamageClass.Generic;
|
||||
}
|
||||
|
||||
// TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
|
||||
@@ -3801,7 +3807,7 @@ namespace CalamityMod.CalPlayer
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(2750);
|
||||
int eclipse = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<EclipseMirrorBurst>(), damage, 0, Player.whoAmI);
|
||||
if (eclipse.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[eclipse].Calamity().forceClassless = true;
|
||||
Main.projectile[eclipse].DamageType = DamageClass.Generic;
|
||||
|
||||
// TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
@@ -4379,9 +4385,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
#region MultiplierBoosts
|
||||
double damageMult = 1.0;
|
||||
bool isTrueMelee = item.CountsAsClass<MeleeDamageClass>() && item.type != ModContent.ItemType<UltimusCleaver>() && item.type != ModContent.ItemType<InfernaCutter>();
|
||||
if (isTrueMelee)
|
||||
damageMult += trueMeleeDamage;
|
||||
|
||||
if (enraged)
|
||||
damageMult += 1.25;
|
||||
@@ -4390,7 +4393,7 @@ namespace CalamityMod.CalPlayer
|
||||
damageMult += 0.6;
|
||||
|
||||
// Rippers are always checked for application, because there are ways to get rippers outside of Rev now
|
||||
CalamityUtils.ApplyRippersToDamage(this, isTrueMelee, ref damageMult);
|
||||
CalamityUtils.ApplyRippersToDamage(this, item.IsTrueMelee(), ref damageMult);
|
||||
|
||||
damage = (int)(damage * damageMult);
|
||||
#endregion
|
||||
@@ -4462,14 +4465,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (proj.npcProj || proj.trap)
|
||||
return;
|
||||
|
||||
bool isTrueMelee = proj.Calamity().trueMelee;
|
||||
bool isSummon = proj.IsSummon();
|
||||
Item heldItem = Player.ActiveItem();
|
||||
|
||||
#region MultiplierBoosts
|
||||
double damageMult = 1D;
|
||||
if (isTrueMelee)
|
||||
damageMult += trueMeleeDamage;
|
||||
|
||||
if (screwdriver)
|
||||
{
|
||||
@@ -4495,7 +4495,7 @@ namespace CalamityMod.CalPlayer
|
||||
damageMult += 0.6;
|
||||
|
||||
// Rippers are always checked for application, because there are ways to get rippers outside of Rev now
|
||||
CalamityUtils.ApplyRippersToDamage(this, isTrueMelee, ref damageMult);
|
||||
CalamityUtils.ApplyRippersToDamage(this, proj.IsTrueMelee(), ref damageMult);
|
||||
|
||||
if (filthyGlove && proj.Calamity().stealthStrike && proj.CountsAsClass<RogueDamageClass>())
|
||||
{
|
||||
@@ -5123,7 +5123,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// If this projectile is capable of dealing defense damage, then apply defense damage.
|
||||
// Defense damage is not applied if the player has iframes.
|
||||
if (proj.Calamity().canBreakPlayerDefense && !hasIFrames)
|
||||
if (proj.Calamity().DealsDefenseDamage && !hasIFrames)
|
||||
DealDefenseDamage(damage);
|
||||
|
||||
if (projRefRare)
|
||||
@@ -5508,7 +5508,7 @@ namespace CalamityMod.CalPlayer
|
||||
int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.065), knockBack * 0.5f, Player.whoAmI);
|
||||
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[p].Calamity().forceClassless = true; //in case melee/rogue variants bug out
|
||||
Main.projectile[p].DamageType = DamageClass.Generic; //in case melee/rogue variants bug out
|
||||
|
||||
// Handle AI edge-cases.
|
||||
if (item.type == ModContent.ItemType<FinalDawn>())
|
||||
@@ -5531,7 +5531,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
int knife = Projectile.NewProjectile(source, Player.Center, velocity2, ModContent.ProjectileType<VeneratedKnife>(), knifeDamage, 0f, Player.whoAmI, knifeCol, 0);
|
||||
if (knife.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[knife].Calamity().forceClassless = true;
|
||||
Main.projectile[knife].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5551,7 +5551,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (drop.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[drop].penetrate = 2;
|
||||
Main.projectile[drop].Calamity().forceClassless = true;
|
||||
Main.projectile[drop].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6336,7 +6336,7 @@ namespace CalamityMod.CalPlayer
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileID.HallowStar, deificStarDamage, 4f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
star.Calamity().forceClassless = true;
|
||||
star.DamageType = DamageClass.Generic;
|
||||
star.usesLocalNPCImmunity = true;
|
||||
star.localNPCHitCooldown = 5;
|
||||
}
|
||||
@@ -6394,12 +6394,12 @@ namespace CalamityMod.CalPlayer
|
||||
if (spark1.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[spark1].timeLeft = 120;
|
||||
Main.projectile[spark1].Calamity().forceClassless = true;
|
||||
Main.projectile[spark1].DamageType = DamageClass.Generic;
|
||||
}
|
||||
if (spark2.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[spark2].timeLeft = 120;
|
||||
Main.projectile[spark2].Calamity().forceClassless = true;
|
||||
Main.projectile[spark2].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6417,7 +6417,7 @@ namespace CalamityMod.CalPlayer
|
||||
SoundEngine.PlaySound(SoundID.Item61, Player.position);
|
||||
int ink = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
|
||||
if (ink.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[ink].Calamity().forceClassless = true;
|
||||
Main.projectile[ink].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6471,9 +6471,9 @@ namespace CalamityMod.CalPlayer
|
||||
int shard = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, ProjectileID.CrystalShard, sDamage, 1f, Player.whoAmI, 0f, 0f);
|
||||
int shard2 = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, ProjectileID.CrystalShard, sDamage, 1f, Player.whoAmI, 0f, 0f);
|
||||
if (shard.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[shard].Calamity().forceClassless = true;
|
||||
Main.projectile[shard].DamageType = DamageClass.Generic;
|
||||
if (shard2.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[shard2].Calamity().forceClassless = true;
|
||||
Main.projectile[shard2].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6522,7 +6522,7 @@ namespace CalamityMod.CalPlayer
|
||||
Projectile beam = CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 22f, ProjectileID.ShadowBeamFriendly, shadowbeamDamage, 7f, Player.whoAmI);
|
||||
if (beam.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
beam.Calamity().forceClassless = true;
|
||||
beam.DamageType = DamageClass.Generic;
|
||||
beam.usesLocalNPCImmunity = true;
|
||||
beam.localNPCHitCooldown = 10;
|
||||
}
|
||||
@@ -6533,7 +6533,7 @@ namespace CalamityMod.CalPlayer
|
||||
Projectile scythe = CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 22f, ProjectileID.DemonScythe, scytheDamage, 7f, Player.whoAmI);
|
||||
if (scythe.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
scythe.Calamity().forceClassless = true;
|
||||
scythe.DamageType = DamageClass.Generic;
|
||||
scythe.usesLocalNPCImmunity = true;
|
||||
scythe.localNPCHitCooldown = 10;
|
||||
}
|
||||
@@ -8101,7 +8101,7 @@ namespace CalamityMod.CalPlayer
|
||||
// This floor is only applied if bosses are alive
|
||||
if (areThereAnyDamnBosses)
|
||||
{
|
||||
int defenseDamageFloor = ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 5 : CalamityWorld.death ? 4 : CalamityWorld.revenge ? 3 : Main.expertMode ? 2 : 1) * (NPC.downedMoonlord ? 3 : Main.hardMode ? 2 : 1);
|
||||
int defenseDamageFloor = (BossRushEvent.BossRushActive ? 5 : CalamityWorld.death ? 4 : CalamityWorld.revenge ? 3 : Main.expertMode ? 2 : 1) * (NPC.downedMoonlord ? 3 : Main.hardMode ? 2 : 1);
|
||||
if (defenseDamageTaken < defenseDamageFloor)
|
||||
defenseDamageTaken = defenseDamageFloor;
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
// Adjusts the life steal cap in rev/death
|
||||
float lifeStealCap = (CalamityWorld.malice || BossRushEvent.BossRushActive) ? 30f : CalamityWorld.death ? 45f : 60f;
|
||||
float lifeStealCap = BossRushEvent.BossRushActive ? 30f : CalamityWorld.death ? 45f : 60f;
|
||||
if (Player.lifeSteal > lifeStealCap)
|
||||
Player.lifeSteal = lifeStealCap;
|
||||
|
||||
@@ -676,8 +676,8 @@ namespace CalamityMod.CalPlayer
|
||||
// Reduces Expert Mode life steal recovery rate from 0.5/s to 0.35/s
|
||||
// Revengeance Mode recovery rate is 0.3/s
|
||||
// Death Mode recovery rate is 0.25/s
|
||||
// Malice Mode recovery rate is 0.2/s
|
||||
float lifeStealCooldown = (CalamityWorld.malice || BossRushEvent.BossRushActive) ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f;
|
||||
// Boss Rush recovery rate is 0.2/s
|
||||
float lifeStealCooldown = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f;
|
||||
Player.lifeSteal -= lifeStealCooldown;
|
||||
|
||||
// Nebula Armor nerf
|
||||
@@ -1048,6 +1048,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (expiredCooldowns.Count > 0)
|
||||
SyncCooldownRemoval(Main.netMode == NetmodeID.Server, expiredCooldowns);
|
||||
|
||||
if (momentumCapacitorTime > 0)
|
||||
--momentumCapacitorTime;
|
||||
if (spiritOriginBullseyeShootCountdown > 0)
|
||||
spiritOriginBullseyeShootCountdown--;
|
||||
if (phantomicHeartRegen > 0 && phantomicHeartRegen < 1000)
|
||||
@@ -1614,7 +1616,7 @@ namespace CalamityMod.CalPlayer
|
||||
int projectile = Projectile.NewProjectile(source, Player.Center, lightningVel, ModContent.ProjectileType<BlunderBoosterLightning>(), damage, 0, Player.whoAmI, Main.rand.Next(2), 0f);
|
||||
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
@@ -1638,7 +1640,7 @@ namespace CalamityMod.CalPlayer
|
||||
int projectile = Projectile.NewProjectile(source, Player.Center, cloudVelocity, ModContent.ProjectileType<PlaguedFuelPackCloud>(), damage, 0, Player.whoAmI, 0, 0);
|
||||
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
@@ -2594,7 +2596,7 @@ namespace CalamityMod.CalPlayer
|
||||
(prismaticGreaves ? 0.1 : 0D) +
|
||||
(plagueReaper ? 0.05 : 0D) +
|
||||
(draconicSurge ? 0.2 : 0D) +
|
||||
(Player.empressBrooch ? 0.5 : 0D);
|
||||
(Player.empressBrooch ? 0.25 : 0D);
|
||||
|
||||
if (harpyRing)
|
||||
Player.moveSpeed += 0.1f;
|
||||
@@ -2817,9 +2819,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statDefense += 10;
|
||||
}
|
||||
|
||||
if (warbannerOfTheSun)
|
||||
Player.GetDamage<MeleeDamageClass>() += warBannerBonus;
|
||||
|
||||
// The player's true max life value with Calamity adjustments
|
||||
actualMaxLife = Player.statLifeMax2;
|
||||
|
||||
@@ -2905,7 +2904,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[projectile].originalDamage = 3750;
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3009,7 +3008,7 @@ namespace CalamityMod.CalPlayer
|
||||
int spark = Projectile.NewProjectile(source, npc.Center, velocity, ModContent.ProjectileType<EutrophicSpark>(), damage / 2, 0f, Player.whoAmI);
|
||||
if (spark.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[spark].Calamity().forceClassless = true;
|
||||
Main.projectile[spark].DamageType = DamageClass.Generic;
|
||||
Main.projectile[spark].localNPCHitCooldown = -2;
|
||||
Main.projectile[spark].penetrate = 5;
|
||||
}
|
||||
@@ -3222,7 +3221,7 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[bee].localNPCHitCooldown = 10;
|
||||
Main.projectile[bee].penetrate = 2;
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[bee].Calamity().forceClassless = true;
|
||||
Main.projectile[bee].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3392,7 +3391,7 @@ namespace CalamityMod.CalPlayer
|
||||
int laser = Projectile.NewProjectile(source, startPos, velocity, ModContent.ProjectileType<DeathhailBeam>(), dmg, 4f, Player.whoAmI, 0f, 0f);
|
||||
Main.projectile[laser].localNPCHitCooldown = 5;
|
||||
if (laser.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[laser].Calamity().forceClassless = true;
|
||||
Main.projectile[laser].DamageType = DamageClass.Generic;
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.Item12, Player.Center);
|
||||
}
|
||||
@@ -3468,18 +3467,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityConfig.Instance.Proficiency)
|
||||
GetStatBonuses();
|
||||
|
||||
// True melee damage bonuses
|
||||
double damageAdd = (dodgeScarf ? 0.1 : 0) +
|
||||
(evasionScarf ? 0.05 : 0) +
|
||||
((aBulwarkRare && aBulwarkRareMeleeBoostTimer > 0) ? 0.5 : 0) +
|
||||
(fungalSymbiote ? 0.15 : 0) +
|
||||
((Player.head == ArmorIDs.Head.MoltenHelmet && Player.body == ArmorIDs.Body.MoltenBreastplate && Player.legs == ArmorIDs.Legs.MoltenGreaves) ? 0.2 : 0) +
|
||||
(Player.kbGlove ? 0.1 : 0) +
|
||||
(eGauntlet ? 0.1 : 0) +
|
||||
(yInsignia ? 0.1 : 0) +
|
||||
(warbannerOfTheSun ? warBannerBonus : 0);
|
||||
trueMeleeDamage += damageAdd;
|
||||
|
||||
// Amalgam boosts
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
|
||||
@@ -671,7 +671,7 @@ namespace CalamityMod.CalPlayer
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 12f, projectileType, astralStarDamage, 5f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
star.Calamity().forceClassless = true;
|
||||
star.DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -722,9 +722,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (alchFlask && Player.ownedProjectileCounts[ProjectileType<PlagueSeeker>()] < 3 && hasClass)
|
||||
{
|
||||
int seekerDamage = (int)Player.GetBestClassDamage().ApplyTo(30);
|
||||
Projectile projectile = CalamityGlobalProjectile.SpawnOrb(proj, seekerDamage, ProjectileType<PlagueSeeker>(), 400f, 12f);
|
||||
Projectile projectile = CalamityUtils.SpawnOrb(proj, seekerDamage, ProjectileType<PlagueSeeker>(), 400f, 12f);
|
||||
if (projectile.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile.whoAmI].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile.whoAmI].DamageType = DamageClass.Generic;
|
||||
}
|
||||
|
||||
if (theBee && Player.statLife >= Player.statLifeMax2)
|
||||
@@ -760,7 +760,7 @@ namespace CalamityMod.CalPlayer
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 25f, projectileType, astralStarDamage, 5f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
star.Calamity().forceClassless = true;
|
||||
star.DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -783,7 +783,7 @@ namespace CalamityMod.CalPlayer
|
||||
var source = proj.GetSource_FromThis();
|
||||
Item heldItem = Player.ActiveItem();
|
||||
|
||||
if (modProj.trueMelee)
|
||||
if (proj.IsTrueMelee())
|
||||
{
|
||||
titanBoost = 600;
|
||||
if (soaring)
|
||||
@@ -817,7 +817,7 @@ namespace CalamityMod.CalPlayer
|
||||
int geyserDamage = CalamityUtils.DamageSoftCap(proj.damage * 0.15, 36);
|
||||
Projectile.NewProjectile(source, proj.Center, Vector2.Zero, ProjectileType<ChaoticGeyser>(), geyserDamage, 0f, Player.whoAmI, 0f, 0f);
|
||||
}
|
||||
if (bloodflareMelee && modProj.trueMelee && bloodflareMeleeHits < 15 && !bloodflareFrenzy && !Player.HasCooldown(BloodflareFrenzy.ID))
|
||||
if (bloodflareMelee && proj.IsTrueMelee() && bloodflareMeleeHits < 15 && !bloodflareFrenzy && !Player.HasCooldown(BloodflareFrenzy.ID))
|
||||
bloodflareMeleeHits++;
|
||||
}
|
||||
}
|
||||
@@ -848,7 +848,7 @@ namespace CalamityMod.CalPlayer
|
||||
int leaf = Projectile.NewProjectile(source, position, velocity, ProjectileID.Leaf, leafDamage, 0f, Player.whoAmI);
|
||||
if (leaf.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[leaf].Calamity().forceClassless = true;
|
||||
Main.projectile[leaf].DamageType = DamageClass.Generic;
|
||||
Main.projectile[leaf].netUpdate = true;
|
||||
}
|
||||
}
|
||||
@@ -877,7 +877,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (ataxiaMage && ataxiaDmg <= 0)
|
||||
{
|
||||
int orbDamage = (int)(proj.damage * 0.6);
|
||||
CalamityGlobalProjectile.SpawnOrb(proj, orbDamage, ProjectileType<HydrothermicSphere>(), 800f, 20f);
|
||||
CalamityUtils.SpawnOrb(proj, orbDamage, ProjectileType<HydrothermicSphere>(), 800f, 20f);
|
||||
int cooldown = (int)(orbDamage * 0.5);
|
||||
ataxiaDmg += cooldown;
|
||||
}
|
||||
@@ -898,7 +898,7 @@ namespace CalamityMod.CalPlayer
|
||||
int fire = Projectile.NewProjectile(source, position, velocity, ProjectileID.BallofFire, bloodflareFireballDamage, 0f, Player.whoAmI);
|
||||
if (fire.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[fire].Calamity().forceClassless = true;
|
||||
Main.projectile[fire].DamageType = DamageClass.Generic;
|
||||
Main.projectile[fire].netUpdate = true;
|
||||
}
|
||||
}
|
||||
@@ -950,7 +950,7 @@ namespace CalamityMod.CalPlayer
|
||||
int damage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(75);
|
||||
int dagger = Projectile.NewProjectile(source, proj.position, proj.velocity, ProjectileType<PhantomicDagger>(), damage, 1f, Player.whoAmI, 0f);
|
||||
if (dagger.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[dagger].Calamity().forceClassless = true;
|
||||
Main.projectile[dagger].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1008,7 +1008,7 @@ namespace CalamityMod.CalPlayer
|
||||
int apparatusDamage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(60);
|
||||
int projectile = Projectile.NewProjectile(source, proj.Center, Vector2.Zero, ProjectileType<ApparatusExplosion>(), apparatusDamage, 4f, proj.owner);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
jellyDmg = 100f;
|
||||
}
|
||||
else if (starbusterCore)
|
||||
@@ -1016,7 +1016,7 @@ namespace CalamityMod.CalPlayer
|
||||
int starburstDamage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(40);
|
||||
int projectile = Projectile.NewProjectile(source, proj.Center, Vector2.Zero, ProjectileType<SummonAstralExplosion>(), starburstDamage, 3.5f, proj.owner);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
jellyDmg = 60f;
|
||||
}
|
||||
else if (nuclearRod)
|
||||
@@ -1024,13 +1024,13 @@ namespace CalamityMod.CalPlayer
|
||||
int nuclearDamage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(20);
|
||||
int projectile = Projectile.NewProjectile(source, proj.Center, Vector2.Zero, ProjectileType<IrradiatedAura>(), nuclearDamage, 0f, proj.owner);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
jellyDmg = 60f;
|
||||
}
|
||||
else if (jellyChargedBattery)
|
||||
{
|
||||
int batteryDamage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(15);
|
||||
CalamityGlobalProjectile.SpawnOrb(proj, batteryDamage, ProjectileType<EnergyOrb>(), 800f, 15f);
|
||||
CalamityUtils.SpawnOrb(proj, batteryDamage, ProjectileType<EnergyOrb>(), 800f, 15f);
|
||||
jellyDmg = 60f;
|
||||
}
|
||||
}
|
||||
@@ -1045,7 +1045,7 @@ namespace CalamityMod.CalPlayer
|
||||
int hallowedDamage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(30);
|
||||
int projectile = Projectile.NewProjectile(source, spawnPosition, Vector2.Normalize(position - spawnPosition) * speed, ProjectileType<HallowedStarSummon>(), hallowedDamage, 3f, proj.owner);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1090,7 +1090,7 @@ namespace CalamityMod.CalPlayer
|
||||
int projectileIndex = Projectile.NewProjectile(spawnSource, projTileX * 16 + 8, projTileY * 16 - 24, 0f, 0f, ProjectileType<InfernadoFriendly>(), damage, 15f, Main.myPlayer, 16f, 16f);
|
||||
if (projectileIndex.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[projectileIndex].Calamity().forceClassless = true;
|
||||
Main.projectile[projectileIndex].DamageType = DamageClass.Generic;
|
||||
Main.projectile[projectileIndex].netUpdate = true;
|
||||
Main.projectile[projectileIndex].localNPCHitCooldown = 10;
|
||||
}
|
||||
@@ -1106,14 +1106,14 @@ namespace CalamityMod.CalPlayer
|
||||
case 0:
|
||||
// Exodus Rogue Stars: 80%
|
||||
int starDamage = (int)(proj.damage * 0.8);
|
||||
CalamityGlobalProjectile.SpawnOrb(proj, starDamage, ProjectileType<EmpyreanStellarDetritus>(), 800f, Main.rand.Next(15, 30));
|
||||
CalamityUtils.SpawnOrb(proj, starDamage, ProjectileType<EmpyreanStellarDetritus>(), 800f, Main.rand.Next(15, 30));
|
||||
xerocDmg += (int)(starDamage * 0.5);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
// Exodus Rogue Orbs: 60%
|
||||
int orbDamage = (int)(proj.damage * 0.6);
|
||||
CalamityGlobalProjectile.SpawnOrb(proj, orbDamage, ProjectileType<EmpyreanMarble>(), 800f, 30f);
|
||||
CalamityUtils.SpawnOrb(proj, orbDamage, ProjectileType<EmpyreanMarble>(), 800f, 30f);
|
||||
xerocDmg += (int)(orbDamage * 0.5);
|
||||
break;
|
||||
|
||||
@@ -1132,7 +1132,7 @@ namespace CalamityMod.CalPlayer
|
||||
case 4:
|
||||
// Exodus Rogue Bubble: 60%
|
||||
int bubbleDamage = (int)(proj.damage * 0.6);
|
||||
CalamityGlobalProjectile.SpawnOrb(proj, bubbleDamage, ProjectileType<EmpyreanGlob>(), 800f, 15f);
|
||||
CalamityUtils.SpawnOrb(proj, bubbleDamage, ProjectileType<EmpyreanGlob>(), 800f, 15f);
|
||||
xerocDmg += (int)(bubbleDamage * 0.5);
|
||||
break;
|
||||
|
||||
@@ -1164,7 +1164,7 @@ namespace CalamityMod.CalPlayer
|
||||
Vector2 velocity = (position - source) / 10f;
|
||||
int flare = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileID.LunarFlare, lunarFlareDamage, lunarFlareKB, proj.owner);
|
||||
if (flare.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[flare].Calamity().forceClassless = true;
|
||||
Main.projectile[flare].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
else if (featherCrown)
|
||||
@@ -1178,7 +1178,7 @@ namespace CalamityMod.CalPlayer
|
||||
int featherDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(15);
|
||||
int feather = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<StickyFeather>(), featherDamage, 3f, proj.owner);
|
||||
if (feather.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[feather].Calamity().forceClassless = true;
|
||||
Main.projectile[feather].DamageType = DamageClass.Generic;
|
||||
}
|
||||
spawnedFeathers = true;
|
||||
}
|
||||
@@ -1196,7 +1196,7 @@ namespace CalamityMod.CalPlayer
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(40);
|
||||
int eater = Projectile.NewProjectile(spawnSource, proj.Center.X, proj.Center.Y, xVector, yVector, ProjectileType<ForbiddenCircletEater>(), damage, proj.knockBack, proj.owner);
|
||||
if (eater.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[eater].Calamity().forceClassless = true;
|
||||
Main.projectile[eater].DamageType = DamageClass.Generic;
|
||||
forbiddenCooldown = 15;
|
||||
}
|
||||
}
|
||||
@@ -1243,7 +1243,7 @@ namespace CalamityMod.CalPlayer
|
||||
float speed = Main.rand.NextFloat(5f, 11f);
|
||||
int cloud = Projectile.NewProjectile(spawnSource, position, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * speed, type, damage, proj.knockBack, Player.whoAmI);
|
||||
if (cloud.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[cloud].Calamity().forceClassless = true;
|
||||
Main.projectile[cloud].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1257,14 +1257,14 @@ namespace CalamityMod.CalPlayer
|
||||
Vector2 SoulSpeed = new Vector2(13f, 13f).RotatedBy(MathHelper.ToRadians(randrot));
|
||||
int soul = Projectile.NewProjectile(spawnSource, proj.Center, SoulSpeed, ProjectileType<PenumbraSoul>(), (int)(proj.damage * 0.1), 3f, proj.owner, 0f, 0f);
|
||||
if (soul.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[soul].Calamity().forceClassless = true;
|
||||
Main.projectile[soul].DamageType = DamageClass.Generic;
|
||||
shadowPotCooldown = 30;
|
||||
}
|
||||
if (CalamityLists.spikyBallProjList.Contains(proj.type))
|
||||
{
|
||||
int scythe = Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<CosmicScythe>(), (int)(proj.damage * 0.05), 3f, proj.owner, 1f, 0f);
|
||||
if (scythe.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[scythe].Calamity().forceClassless = true;
|
||||
Main.projectile[scythe].DamageType = DamageClass.Generic;
|
||||
Main.projectile[scythe].usesLocalNPCImmunity = true;
|
||||
Main.projectile[scythe].localNPCHitCooldown = 10;
|
||||
Main.projectile[scythe].penetrate = 2;
|
||||
@@ -1277,17 +1277,17 @@ namespace CalamityMod.CalPlayer
|
||||
shardVelocity *= 5f;
|
||||
int shard = Projectile.NewProjectile(spawnSource, proj.Center, shardVelocity, ProjectileType<EquanimityDarkShard>(), (int)(proj.damage * 0.15), 0f, proj.owner);
|
||||
if (shard.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[shard].Calamity().forceClassless = true;
|
||||
Main.projectile[shard].DamageType = DamageClass.Generic;
|
||||
Main.projectile[shard].timeLeft = 150;
|
||||
shadowPotCooldown = 30;
|
||||
}
|
||||
if (CalamityLists.boomerangProjList.Contains(proj.type))
|
||||
{
|
||||
int spiritDamage = (int)(proj.damage * 0.2);
|
||||
Projectile ghost = CalamityGlobalProjectile.SpawnOrb(proj, spiritDamage, ProjectileID.SpectreWrath, 800f, 4f);
|
||||
Projectile ghost = CalamityUtils.SpawnOrb(proj, spiritDamage, ProjectileID.SpectreWrath, 800f, 4f);
|
||||
if (ghost.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
ghost.Calamity().forceClassless = true;
|
||||
ghost.DamageType = DamageClass.Generic;
|
||||
ghost.penetrate = 1;
|
||||
}
|
||||
shadowPotCooldown = 30;
|
||||
@@ -1296,7 +1296,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int blackhole = Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<ShadowBlackhole>(), (int)(proj.damage * 0.05), 3f, proj.owner, 0f, 0f);
|
||||
if (blackhole.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[blackhole].Calamity().forceClassless = true;
|
||||
Main.projectile[blackhole].DamageType = DamageClass.Generic;
|
||||
Main.projectile[blackhole].Center = proj.Center;
|
||||
shadowPotCooldown = 30;
|
||||
}
|
||||
@@ -1326,7 +1326,7 @@ namespace CalamityMod.CalPlayer
|
||||
int spark = Projectile.NewProjectile(spawnSource, position, velocity, ProjectileType<Spark>(), damage, 0f, Player.whoAmI);
|
||||
if (spark.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[spark].Calamity().forceClassless = true;
|
||||
Main.projectile[spark].DamageType = DamageClass.Generic;
|
||||
Main.projectile[spark].localNPCHitCooldown = -1;
|
||||
}
|
||||
}
|
||||
@@ -1722,7 +1722,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (bloodflareMelee && modProj.trueMelee)
|
||||
if (bloodflareMelee && proj.IsTrueMelee())
|
||||
{
|
||||
int healAmount = Main.rand.Next(2) + 1;
|
||||
Player.statLife += healAmount;
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
int scythe = Projectile.NewProjectile(player.GetSource_FromAI(), player.Center, Vector2.Zero, ModContent.ProjectileType<CosmicScythe>(), scytheDamage, 5f, player.whoAmI);
|
||||
if (scythe.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[scythe].Calamity().forceClassless = true;
|
||||
Main.projectile[scythe].DamageType = DamageClass.Generic;
|
||||
Main.projectile[scythe].usesIDStaticNPCImmunity = true;
|
||||
Main.projectile[scythe].idStaticNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod
|
||||
public static ModKeybind AdrenalineHotKey { get; private set; }
|
||||
public static ModKeybind AstralTeleportHotKey { get; private set; }
|
||||
public static ModKeybind AstralArcanumUIHotkey { get; private set; }
|
||||
public static ModKeybind MomentumCapacitatorHotkey { get; private set; }
|
||||
public static ModKeybind SandCloakHotkey { get; private set; }
|
||||
public static ModKeybind SpectralVeilHotKey { get; private set; }
|
||||
public static ModKeybind PlaguePackHotKey { get; private set; }
|
||||
@@ -31,7 +30,6 @@ namespace CalamityMod
|
||||
SetBonusHotKey = KeybindLoader.RegisterKeybind(Mod, "Armor Set Bonus", "Y");
|
||||
AstralTeleportHotKey = KeybindLoader.RegisterKeybind(Mod, "Astral Teleport", "P");
|
||||
AstralArcanumUIHotkey = KeybindLoader.RegisterKeybind(Mod, "Astral Arcanum UI Toggle", "O");
|
||||
MomentumCapacitatorHotkey = KeybindLoader.RegisterKeybind(Mod, "Momentum Capacitor Effect", "U");
|
||||
SandCloakHotkey = KeybindLoader.RegisterKeybind(Mod, "Sand Cloak Effect", "C");
|
||||
SpectralVeilHotKey = KeybindLoader.RegisterKeybind(Mod, "Spectral Veil Teleport", "Z");
|
||||
PlaguePackHotKey = KeybindLoader.RegisterKeybind(Mod, "Booster Dash", "Q");
|
||||
@@ -43,8 +41,6 @@ namespace CalamityMod
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
// Not required anymore, but nice nontheless
|
||||
|
||||
NormalityRelocatorHotKey = null;
|
||||
RageHotKey = null;
|
||||
AdrenalineHotKey = null;
|
||||
@@ -52,7 +48,6 @@ namespace CalamityMod
|
||||
SetBonusHotKey = null;
|
||||
AstralTeleportHotKey = null;
|
||||
AstralArcanumUIHotkey = null;
|
||||
MomentumCapacitatorHotkey = null;
|
||||
SandCloakHotkey = null;
|
||||
SpectralVeilHotKey = null;
|
||||
PlaguePackHotKey = null;
|
||||
|
||||
@@ -119,7 +119,6 @@ namespace CalamityMod
|
||||
public static List<int> daggerProjList;
|
||||
public static List<int> flaskBombProjList;
|
||||
public static List<int> spikyBallProjList;
|
||||
public static List<int> noGravityList;
|
||||
public static List<int> lavaFishList;
|
||||
public static List<int> highTestFishList;
|
||||
public static List<int> flamethrowerList;
|
||||
@@ -1625,84 +1624,6 @@ namespace CalamityMod
|
||||
ProjectileType<SystemBaneProjectile>()
|
||||
};
|
||||
|
||||
noGravityList = new List<int>()
|
||||
{
|
||||
ItemType<AuricBar>(),
|
||||
ItemType<EssenceofChaos>(),
|
||||
ItemType<EssenceofSunlight>(),
|
||||
ItemType<EssenceofEleum>(),
|
||||
ItemType<CoreofChaos>(),
|
||||
ItemType<CoreofSunlight>(),
|
||||
ItemType<CoreofEleum>(),
|
||||
ItemType<CoreofCalamity>(),
|
||||
ItemType<HellcasterFragment>(),
|
||||
ItemType<TwistingNether>(),
|
||||
ItemType<DarkPlasma>(),
|
||||
ItemType<DarksunFragment>(),
|
||||
ItemType<UnholyEssence>(),
|
||||
ItemType<GalacticaSingularity>(),
|
||||
ItemType<NightmareFuel>(),
|
||||
ItemType<EndothermicEnergy>(),
|
||||
ItemType<SoulofCryogen>(),
|
||||
ItemType<AscendantSpiritEssence>(),
|
||||
|
||||
ItemType<KnowledgeAquaticScourge>(),
|
||||
ItemType<KnowledgeAstralInfection>(),
|
||||
ItemType<KnowledgeAstrumAureus>(),
|
||||
ItemType<KnowledgeAstrumDeus>(),
|
||||
ItemType<KnowledgeBloodMoon>(),
|
||||
ItemType<KnowledgeBrainofCthulhu>(),
|
||||
ItemType<KnowledgeBrimstoneCrag>(),
|
||||
ItemType<KnowledgeBrimstoneElemental>(),
|
||||
ItemType<KnowledgeDragonfolly>(),
|
||||
ItemType<KnowledgeCalamitas>(),
|
||||
ItemType<KnowledgeCalamitasClone>(),
|
||||
ItemType<KnowledgeCorruption>(),
|
||||
ItemType<KnowledgeCrabulon>(),
|
||||
ItemType<KnowledgeCrimson>(),
|
||||
ItemType<KnowledgeCryogen>(),
|
||||
ItemType<KnowledgeDesertScourge>(),
|
||||
ItemType<KnowledgeDestroyer>(),
|
||||
ItemType<KnowledgeDevourerofGods>(),
|
||||
ItemType<KnowledgeDukeFishron>(),
|
||||
ItemType<KnowledgeEaterofWorlds>(),
|
||||
ItemType<KnowledgeExoMechs>(),
|
||||
ItemType<KnowledgeEyeofCthulhu>(),
|
||||
ItemType<KnowledgeGolem>(),
|
||||
ItemType<KnowledgeHiveMind>(),
|
||||
ItemType<KnowledgeKingSlime>(),
|
||||
ItemType<KnowledgeLeviathanAnahita>(),
|
||||
ItemType<KnowledgeLunaticCultist>(),
|
||||
ItemType<KnowledgeMechs>(),
|
||||
ItemType<KnowledgeMoonLord>(),
|
||||
ItemType<KnowledgeOcean>(),
|
||||
ItemType<KnowledgeOldDuke>(),
|
||||
ItemType<KnowledgePerforators>(),
|
||||
ItemType<KnowledgePlaguebringerGoliath>(),
|
||||
ItemType<KnowledgePlantera>(),
|
||||
ItemType<KnowledgePolterghast>(),
|
||||
ItemType<KnowledgeProfanedGuardians>(),
|
||||
ItemType<KnowledgeProvidence>(),
|
||||
ItemType<KnowledgeQueenBee>(),
|
||||
ItemType<KnowledgeRavager>(),
|
||||
ItemType<KnowledgeSentinels>(),
|
||||
ItemType<KnowledgeSkeletron>(),
|
||||
ItemType<KnowledgeSkeletronPrime>(),
|
||||
ItemType<KnowledgeSlimeGod>(),
|
||||
ItemType<KnowledgeSulphurSea>(),
|
||||
ItemType<KnowledgeTwins>(),
|
||||
ItemType<KnowledgeUnderworld>(),
|
||||
ItemType<KnowledgeWallofFlesh>(),
|
||||
ItemType<KnowledgeYharon>(),
|
||||
};
|
||||
|
||||
lavaFishList = new List<int>()
|
||||
{
|
||||
ItemType<SlurperPole>(),
|
||||
ItemType<RiftReeler>(),
|
||||
ItemType<TheDevourerofCods>()
|
||||
};
|
||||
|
||||
highTestFishList = new List<int>()
|
||||
{
|
||||
ItemID.GoldenFishingRod,
|
||||
@@ -2810,7 +2731,6 @@ namespace CalamityMod
|
||||
daggerProjList = null;
|
||||
flaskBombProjList = null;
|
||||
spikyBallProjList = null;
|
||||
noGravityList = null;
|
||||
lavaFishList = null;
|
||||
highTestFishList = null;
|
||||
flamethrowerList = null;
|
||||
|
||||
+4
-1
@@ -44,6 +44,7 @@ using CalamityMod.NPCs.StormWeaver;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles;
|
||||
using CalamityMod.Projectiles.BaseProjectiles;
|
||||
using CalamityMod.Schematics;
|
||||
using CalamityMod.Skies;
|
||||
@@ -188,6 +189,7 @@ namespace CalamityMod
|
||||
|
||||
// Initialize Calamity Balance, since it is tightly coupled with the remaining lists
|
||||
CalamityGlobalItem.LoadTweaks();
|
||||
CalamityGlobalProjectile.LoadTweaks();
|
||||
|
||||
// Mount balancing occurs during runtime and is undone when Calamity is unloaded.
|
||||
Mount.mounts[MountID.Unicorn].dashSpeed *= CalamityPlayer.UnicornSpeedNerfPower;
|
||||
@@ -357,6 +359,7 @@ namespace CalamityMod
|
||||
CalamityLists.UnloadLists();
|
||||
NPCStats.Unload();
|
||||
CalamityGlobalItem.UnloadTweaks();
|
||||
CalamityGlobalProjectile.UnloadTweaks();
|
||||
|
||||
PopupGUIManager.UnloadGUIs();
|
||||
InvasionProgressUIManager.UnloadGUIs();
|
||||
@@ -475,7 +478,7 @@ namespace CalamityMod
|
||||
{ NPCID.DiabolistRed, 0.2f },
|
||||
{ NPCID.DiabolistWhite, 0.2f },
|
||||
{ NPCID.DukeFishron, 0.15f },
|
||||
{ NPCID.DungeonGuardian, 0.999999f },
|
||||
{ NPCID.DungeonGuardian, 0.9f },
|
||||
{ NPCID.DungeonSpirit, 0.2f },
|
||||
{ NPCID.ElfCopter, 0.15f },
|
||||
{ NPCID.Everscream, 0.1f },
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
// True Melee is a subclass of Melee that is affected by melee speed.
|
||||
// You can give players regular melee speed and it will affect true melee weapons of this damage class.
|
||||
// If you want to give players attack speed which only affects true melee weapons, give them TrueMeleeDamageClass attack speed.
|
||||
public class TrueMeleeDamageClass : DamageClass
|
||||
{
|
||||
internal static TrueMeleeDamageClass Instance;
|
||||
|
||||
public override void Load() => Instance = this;
|
||||
public override void Unload() => Instance = null;
|
||||
|
||||
public override StatInheritanceData GetModifierInheritance(DamageClass damageClass)
|
||||
{
|
||||
if (damageClass == Melee || damageClass == Generic)
|
||||
return StatInheritanceData.Full;
|
||||
|
||||
return StatInheritanceData.None;
|
||||
}
|
||||
|
||||
// Does not inherit effects from MeleeNoSpeed, because that class already inherits directly from Melee itself.
|
||||
public override bool GetEffectInheritance(DamageClass damageClass) => damageClass == Melee;
|
||||
|
||||
// SetDefaultStats not included, because the player gets 4% Melee crit by default, which carries over to this
|
||||
}
|
||||
|
||||
// True Melee No Speed is a subclass of True Melee that, like MeleeNoSpeed, is NOT affected by melee speed.
|
||||
// You should never give the player stat boosts to this class.
|
||||
// Simply give them stat boosts to TrueMeleeDamageClass. This class will inherit everything but melee speed.
|
||||
public class TrueMeleeNoSpeedDamageClass : DamageClass
|
||||
{
|
||||
internal static TrueMeleeNoSpeedDamageClass Instance;
|
||||
|
||||
public override void Load() => Instance = this;
|
||||
public override void Unload() => Instance = null;
|
||||
|
||||
// This code lifted from the definition of MeleeNoSpeed, with the added change that it benefits from standard True Melee.
|
||||
public override StatInheritanceData GetModifierInheritance(DamageClass damageClass)
|
||||
{
|
||||
if (damageClass == Generic || damageClass == Melee || damageClass == TrueMeleeDamageClass.Instance)
|
||||
return StatInheritanceData.Full with { attackSpeedInheritance = 0 };
|
||||
|
||||
return StatInheritanceData.None;
|
||||
}
|
||||
|
||||
// True Melee No Speed inherits effects from regular Melee, MeleeNoSpeed and regular True Melee.
|
||||
public override bool GetEffectInheritance(DamageClass damageClass) =>
|
||||
damageClass == Melee || damageClass == MeleeNoSpeed || damageClass == TrueMeleeDamageClass.Instance;
|
||||
|
||||
// SetDefaultStats not included, because the player gets 4% Melee crit by default, which carries over to this
|
||||
}
|
||||
}
|
||||
@@ -125,8 +125,7 @@ namespace CalamityMod.DataStructures
|
||||
MeleeCrystalCountdown--;
|
||||
|
||||
// Make the crystal fire countdown go down faster if holding a true melee item.
|
||||
bool isHoldingMeleeItem = Owner.ActiveItem().CountsAsClass<MeleeDamageClass>() && !Owner.ActiveItem().accessory;
|
||||
if (isHoldingMeleeItem && (Owner.ActiveItem().shoot == ProjectileID.None || Owner.ActiveItem().Calamity().trueMelee))
|
||||
if (Owner.ActiveItem().IsTrueMelee())
|
||||
MeleeCrystalCountdown--;
|
||||
|
||||
// Ensure the crystal cooldown does not go below 0 due to the second decrement.
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod
|
||||
bool exists = EnemyStats.ProjectileDamageValues.TryGetValue(new Tuple<int, int>(npc.type, projType), out int[] projectileDamage);
|
||||
return !exists ? 1 // Base case for safety, in case the array is not initialized yet.
|
||||
: Main.masterMode ? projectileDamage[4]
|
||||
: (CalamityWorld.death || CalamityWorld.malice) ? projectileDamage[3]
|
||||
: CalamityWorld.death ? projectileDamage[3]
|
||||
: CalamityWorld.revenge ? projectileDamage[2]
|
||||
: Main.expertMode ? projectileDamage[1]
|
||||
: projectileDamage[0];
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
// Mechanics / features
|
||||
On.Terraria.NPC.ApplyTileCollision += AllowTriggeredFallthrough;
|
||||
On.Terraria.NPC.ShouldEmpressBeEnraged += AllowEmpressToEnrageInMalice;
|
||||
On.Terraria.NPC.ShouldEmpressBeEnraged += AllowEmpressToEnrageInBossRush;
|
||||
IL.Terraria.Main.UpdateTime += PermitNighttimeTownNPCSpawning;
|
||||
On.Terraria.Main.UpdateTime_SpawnTownNPCs += AlterTownNPCSpawnRate;
|
||||
IL.Terraria.Player.Hurt += RemoveRNGFromDodges;
|
||||
@@ -129,7 +129,7 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
// Mechanics / features
|
||||
On.Terraria.NPC.ApplyTileCollision -= AllowTriggeredFallthrough;
|
||||
On.Terraria.NPC.ShouldEmpressBeEnraged -= AllowEmpressToEnrageInMalice;
|
||||
On.Terraria.NPC.ShouldEmpressBeEnraged -= AllowEmpressToEnrageInBossRush;
|
||||
IL.Terraria.Main.UpdateTime -= PermitNighttimeTownNPCSpawning;
|
||||
On.Terraria.Main.UpdateTime_SpawnTownNPCs -= AlterTownNPCSpawnRate;
|
||||
IL.Terraria.Player.Hurt -= RemoveRNGFromDodges;
|
||||
|
||||
@@ -231,15 +231,15 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion Dash Fixes and Improvements
|
||||
|
||||
#region Allow Empress to Enrage in Malice
|
||||
private static bool AllowEmpressToEnrageInMalice(On.Terraria.NPC.orig_ShouldEmpressBeEnraged orig)
|
||||
#region Allow Empress to Enrage in Boss Rush
|
||||
private static bool AllowEmpressToEnrageInBossRush(On.Terraria.NPC.orig_ShouldEmpressBeEnraged orig)
|
||||
{
|
||||
if (Main.dayTime || CalamityWorld.malice || BossRushEvent.BossRushActive)
|
||||
if (Main.dayTime || BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
|
||||
return orig();
|
||||
}
|
||||
#endregion Allow Empress to Enrage in Malice
|
||||
#endregion Allow Empress to Enrage in Boss Rush
|
||||
|
||||
#region Enabling of Triggered NPC Platform Fallthrough
|
||||
// Why this isn't a mechanism provided by TML itself or vanilla itself is beyond me.
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
|
||||
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
rain.Calamity().forceClassless = true;
|
||||
rain.DamageType = DamageClass.Generic;
|
||||
rain.tileCollide = false;
|
||||
rain.penetrate = 1;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Counter Scarf");
|
||||
Tooltip.SetDefault("True melee strikes deal 10% more damage\n" +
|
||||
Tooltip.SetDefault("10% increased true melee damage\n" +
|
||||
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
|
||||
"After a successful dodge you must wait 30 seconds before you can dodge again");
|
||||
}
|
||||
@@ -31,6 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dodgeScarf = true;
|
||||
modPlayer.DashID = CounterScarfDash.ID;
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.autoReuseGlove = true;
|
||||
player.meleeScaleGlove = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Evasion Scarf");
|
||||
Tooltip.SetDefault("True melee strikes deal 15% more damage\n" +
|
||||
Tooltip.SetDefault("15% increased true melee damage\n" +
|
||||
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
|
||||
"After a successful dodge you must wait 30 seconds before you can dodge again\n");
|
||||
}
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.15f;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dodgeScarf = true;
|
||||
modPlayer.evasionScarf = true;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Fungal Symbiote");
|
||||
Tooltip.SetDefault("Various melee weapons emit mushrooms in true melee range\n" +
|
||||
"True melee strikes deal 15% more damage");
|
||||
"15% increased true melee damage");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -26,6 +26,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.15f;
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.fungalSymbiote = true;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<ExodiumCluster>(25).
|
||||
AddIngredient<Plagueplate>(25).
|
||||
AddIngredient<HellcasterFragment>(5).
|
||||
AddIngredient<YharonSoulFragment>(5).
|
||||
AddTile(TileID.DemonAltar).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -33,6 +33,8 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
|
||||
modPlayer.aBulwarkRare = true;
|
||||
if (modPlayer.aBulwarkRareMeleeBoostTimer > 0)
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.5f;
|
||||
player.buffImmune[BuffID.CursedInferno] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using System.Linq;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class MomentumCapacitor : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Momentum Capacitor");
|
||||
Tooltip.SetDefault("TOOLTIP LINE HERE\n" +
|
||||
"Rogue projectiles that enter the field get a constant acceleration and 15% damage boost\n" +
|
||||
"These boosts can only happen to a projectile once\n" +
|
||||
"There can only be one field");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 32;
|
||||
Item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
Item.accessory = true;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.MomentumCapacitatorHotkey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null)
|
||||
line.Text = "Press " + hotkey + " to consume 30% of your maximum stealth to create an energy field at the cursor position";
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.momentumCapacitor = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
class PhantomicArtifact : ModItem
|
||||
public class PhantomicArtifact : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -32,10 +32,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().phantomicArtifact = true;
|
||||
}
|
||||
public override void UpdateAccessory(Player player, bool hideVisual) => player.Calamity().phantomicArtifact = true;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
|
||||
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
rain.Calamity().forceClassless = true;
|
||||
rain.DamageType = DamageClass.Generic;
|
||||
rain.tileCollide = false;
|
||||
rain.penetrate = 1;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Accessories
|
||||
static string TwoPlaces(float f) => f.ToString("n2");
|
||||
|
||||
//
|
||||
// RAW STATS (as obtained from the game engine, not yet modified for display
|
||||
// RAW STATS (as obtained from the game engine, not yet modified for display)
|
||||
//
|
||||
|
||||
// Defense
|
||||
@@ -68,8 +68,12 @@ namespace CalamityMod.Items.Accessories
|
||||
float jumpBoost = player.GetJumpBoost();
|
||||
float wingFlightTime = player.wingTimeMax;
|
||||
|
||||
// Melee
|
||||
float trueMeleeDamage = (float)modPlayer.trueMeleeDamage;
|
||||
// Luck
|
||||
// Does not use NormalizedLuck. Presents the player's luck exactly as it is used by the game engine.
|
||||
// NormalizedLuck is only used in one place: the Wizard's luck report. Which is entirely obsoleted by this Meter.
|
||||
float luck = player.luck;
|
||||
|
||||
// No melee-specific stats anymore, because True Melee is its own class
|
||||
|
||||
// Ranged
|
||||
float rangedAmmoConsumption = player.GetRangedAmmoCostReduction();
|
||||
@@ -81,20 +85,20 @@ namespace CalamityMod.Items.Accessories
|
||||
// Summon
|
||||
int minionSlots = player.maxMinions;
|
||||
|
||||
// rogue
|
||||
// Rogue
|
||||
float rogueStealth = modPlayer.rogueStealthMax;
|
||||
float standingRegen = player.GetStandingStealthRegen();
|
||||
float movingRegen = player.GetMovingStealthRegen();
|
||||
float rogueVelocity = modPlayer.rogueVelocity - 1f;
|
||||
float rogueAmmoConsumption = modPlayer.rogueAmmoCost;
|
||||
|
||||
// rippers
|
||||
// Rippers
|
||||
float rageDamage = modPlayer.RageDamageBoost;
|
||||
float adrenalineDamage = modPlayer.GetAdrenalineDamage();
|
||||
int numAdrenBoosters = (modPlayer.adrenalineBoostOne ? 1 : 0) + (modPlayer.adrenalineBoostTwo ? 1 : 0) + (modPlayer.adrenalineBoostThree ? 1 : 0);
|
||||
float adrenalineDR = BalancingConstants.FullAdrenalineDR + numAdrenBoosters * BalancingConstants.AdrenalineDRPerBooster;
|
||||
|
||||
// abyss
|
||||
// Abyss
|
||||
int lightLevel = player.GetCurrentAbyssLightLevel();
|
||||
float breathLoss = modPlayer.abyssBreathLossStat;
|
||||
float breathLossRate = modPlayer.abyssBreathLossRateStat;
|
||||
@@ -129,6 +133,8 @@ namespace CalamityMod.Items.Accessories
|
||||
damageClassName = "Classless";
|
||||
else if (dc == AverageDamageClass.Instance)
|
||||
damageClassName = "Averaged";
|
||||
else if (dc == TrueMeleeDamageClass.Instance || dc == TrueMeleeNoSpeedDamageClass.Instance)
|
||||
damageClassName = "True Melee";
|
||||
else if (dc == DamageClass.Melee || dc == DamageClass.MeleeNoSpeed)
|
||||
damageClassName = "Melee";
|
||||
else if (dc == DamageClass.Ranged)
|
||||
@@ -186,10 +192,6 @@ namespace CalamityMod.Items.Accessories
|
||||
sb.Append(' ').Append(sign).Append(OnePlace(flatDamage)).Append(" flat");
|
||||
}
|
||||
|
||||
// If melee, display true melee damage
|
||||
if (dc == DamageClass.Melee)
|
||||
sb.Append('\n').Append("True Melee Damage: ").Append(TwoPlaces(100f * trueMeleeDamage)).Append('%');
|
||||
|
||||
// Newline between damage and crit
|
||||
sb.Append('\n').Append(damageClassName).Append(" Crit Chance: ");
|
||||
sb.Append(TwoPlaces(totalCrit)).Append('%');
|
||||
@@ -266,7 +268,14 @@ namespace CalamityMod.Items.Accessories
|
||||
sb.Append('+');
|
||||
sb.Append(TwoPlaces(100f * moveSpeedBoost)).Append('%');
|
||||
sb.Append(" | Jump Boost: ").Append(TwoPlaces(20f * jumpBoost)).Append('%');
|
||||
sb.Append(" | Wing Flight Time: ").Append(TwoPlaces(wingFlightTime / 60f)).Append(" seconds\n\n");
|
||||
sb.Append(" | Wing Flight Time: ").Append(TwoPlaces(wingFlightTime / 60f)).Append(" seconds\n");
|
||||
|
||||
sb.Append("Luck: ");
|
||||
// Positive boosts need a + prefix, negative will have its own - sign automatically.
|
||||
// There's a "clever" way to do this with formatting but it's harder.
|
||||
if (luck >= 0f)
|
||||
sb.Append('+');
|
||||
sb.Append(TwoPlaces(100f * luck)).Append("%\n\n");
|
||||
|
||||
// Detailed Abyss stats only render if the player is in the Abyss.
|
||||
sb.Append("Abyss Light Strength: ").Append(lightLevel).Append('\n');
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Increases fishing skill by 80\n" +
|
||||
"Fishing line will never break and decreases chance of bait consumption\n" +
|
||||
"Increases chance to catch crates\n" +
|
||||
"Allows fishing in lava\n" +
|
||||
"Sonar potion effect");
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Projectile rain = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ProjectileType<AuraRain>(), damage, 2f, player.whoAmI);
|
||||
if (rain.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
rain.Calamity().forceClassless = true;
|
||||
rain.DamageType = DamageClass.Generic;
|
||||
rain.tileCollide = false;
|
||||
rain.penetrate = 1;
|
||||
}
|
||||
|
||||
@@ -39,10 +39,13 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.warbannerOfTheSun = true;
|
||||
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += CalculateMeleeSpeedBonus(player);
|
||||
float bonus = CalculateBonus(player);
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += bonus;
|
||||
player.GetDamage<MeleeDamageClass>() += bonus;
|
||||
player.GetDamage<TrueMeleeDamageClass>() += bonus;
|
||||
}
|
||||
|
||||
private static float CalculateMeleeSpeedBonus(Player player)
|
||||
private static float CalculateBonus(Player player)
|
||||
{
|
||||
float bonus = 0f;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Icicles rain down as you fly");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 3));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 6.25f, 1f);
|
||||
}
|
||||
|
||||
@@ -68,7 +69,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
int p = Projectile.NewProjectile(source, player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ModContent.ProjectileType<FrostShardFriendly>(), damage, 3f, player.whoAmI, 1f);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[p].Calamity().forceClassless = true;
|
||||
Main.projectile[p].DamageType = DamageClass.Generic;
|
||||
Main.projectile[p].frame = Main.rand.Next(5);
|
||||
}
|
||||
modPlayer.icicleCooldown = 10;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.yInsignia = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.1f;
|
||||
player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper
|
||||
var damage = (int)player.GetTotalDamage<RangedDamageClass>().ApplyTo(40);
|
||||
var cinder = CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<TheSyringeCinder>(), damage, 4f, player.whoAmI);
|
||||
if (cinder.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
cinder.Calamity().forceClassless = true;
|
||||
cinder.DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+20
-23
@@ -85,7 +85,6 @@ namespace CalamityMod.Items
|
||||
public bool donorItem = false;
|
||||
public bool devItem = false;
|
||||
public bool canFirePointBlankShots = false;
|
||||
public bool trueMelee = false;
|
||||
|
||||
public static readonly Color ExhumedTooltipColor = new Color(198, 27, 64);
|
||||
|
||||
@@ -136,7 +135,6 @@ namespace CalamityMod.Items
|
||||
myClone.donorItem = donorItem;
|
||||
myClone.devItem = devItem;
|
||||
myClone.canFirePointBlankShots = canFirePointBlankShots;
|
||||
myClone.trueMelee = trueMelee;
|
||||
|
||||
return myClone;
|
||||
}
|
||||
@@ -208,15 +206,17 @@ namespace CalamityMod.Items
|
||||
break;
|
||||
}
|
||||
|
||||
// Apply Calamity Global Item Tweaks.
|
||||
SetDefaults_ApplyTweaks(item);
|
||||
|
||||
// TODO -- these properties should be some sort of dictionary.
|
||||
// Perhaps the solution here is to just apply all changes of all kinds using the "Balance" system.
|
||||
if (CalamityLists.noGravityList.Contains(item.type))
|
||||
ItemID.Sets.ItemNoGravity[item.type] = true;
|
||||
|
||||
if (CalamityLists.lavaFishList.Contains(item.type))
|
||||
ItemID.Sets.CanFishInLava[item.type] = true;
|
||||
// Items which are "classic true melee" (melee items with no fired projectile) are automatically reclassed as True Melee class.
|
||||
if (item.shoot == ProjectileID.None)
|
||||
{
|
||||
if (item.DamageType == DamageClass.Melee)
|
||||
item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
else if (item.DamageType == DamageClass.MeleeNoSpeed)
|
||||
item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -266,7 +266,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position, velocity * 0.5f, ModContent.ProjectileType<LuxorsGiftMelee>(), (int)meleeDamage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
else if (item.CountsAsClass<ThrowingDamageClass>())
|
||||
@@ -276,7 +276,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<LuxorsGiftRogue>(), (int)throwingDamage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
else if (item.CountsAsClass<RangedDamageClass>())
|
||||
@@ -292,7 +292,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position, velocity * 1.5f, ModContent.ProjectileType<LuxorsGiftRanged>(), (int)rangedDamage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -303,7 +303,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<LuxorsGiftMagic>(), (int)magicDamage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
else if (item.CountsAsClass<SummonDamageClass>() && player.ownedProjectileCounts[ModContent.ProjectileType<LuxorsGiftSummon>()] < 1)
|
||||
@@ -313,7 +313,7 @@ namespace CalamityMod.Items
|
||||
int projectile = Projectile.NewProjectile(source, position, Vector2.Zero, ModContent.ProjectileType<LuxorsGiftSummon>(), damage, 0f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
Main.projectile[projectile].originalDamage = item.damage;
|
||||
}
|
||||
}
|
||||
@@ -367,7 +367,7 @@ namespace CalamityMod.Items
|
||||
yDiff *= speed;
|
||||
int projectile = Projectile.NewProjectile(source, position, new Vector2(xDiff, yDiff), ProjectileID.Leaf, leafDamage, knockBack, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -449,7 +449,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position, velocity * 1.25f, ModContent.ProjectileType<MiniatureFolly>(), newDamage, 2f, player.whoAmI);
|
||||
if (projectile.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[projectile].Calamity().forceClassless = true;
|
||||
Main.projectile[projectile].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -466,7 +466,7 @@ namespace CalamityMod.Items
|
||||
Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i));
|
||||
int rocket = Projectile.NewProjectile(source, position, perturbedSpeed, ModContent.ProjectileType<MiniRocket>(), (int)(damage * 0.25), 2f, player.whoAmI);
|
||||
if (rocket.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[rocket].Calamity().forceClassless = true;
|
||||
Main.projectile[rocket].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -485,7 +485,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
Main.projectile[feather].usesLocalNPCImmunity = true;
|
||||
Main.projectile[feather].localNPCHitCooldown = 10;
|
||||
Main.projectile[feather].Calamity().forceClassless = true;
|
||||
Main.projectile[feather].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -530,13 +530,11 @@ namespace CalamityMod.Items
|
||||
tag.Add("enchantmentID", AppliedEnchantment.HasValue ? AppliedEnchantment.Value.ID : 0);
|
||||
tag.Add("DischargeEnchantExhaustion", DischargeEnchantExhaustion);
|
||||
tag.Add("canFirePointBlankShots", canFirePointBlankShots);
|
||||
tag.Add("trueMelee", trueMelee);
|
||||
}
|
||||
|
||||
public override void LoadData(Item item, TagCompound tag)
|
||||
{
|
||||
canFirePointBlankShots = tag.GetBool("canFirePointBlankShots");
|
||||
trueMelee = tag.GetBool("trueMelee");
|
||||
timesUsed = tag.GetInt("timesUsed");
|
||||
customRarity = (CalamityRarity)tag.GetInt("rarity");
|
||||
|
||||
@@ -561,7 +559,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
BitsByte flags = new BitsByte();
|
||||
flags[0] = canFirePointBlankShots;
|
||||
flags[1] = trueMelee;
|
||||
// rip, no other flags. what a byte.
|
||||
|
||||
writer.Write(flags);
|
||||
writer.Write((int)customRarity);
|
||||
@@ -576,7 +574,6 @@ namespace CalamityMod.Items
|
||||
{
|
||||
BitsByte flags = reader.ReadByte();
|
||||
canFirePointBlankShots = flags[0];
|
||||
trueMelee = flags[1];
|
||||
|
||||
customRarity = (CalamityRarity)reader.ReadInt32();
|
||||
timesUsed = reader.ReadInt32();
|
||||
@@ -1395,7 +1392,7 @@ namespace CalamityMod.Items
|
||||
int p = Projectile.NewProjectile(source, player.Center, Vector2.UnitY * 2f, ProjectileID.OrnamentFriendly, ornamentDamage, 5f, player.whoAmI);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[p].Calamity().forceClassless = true;
|
||||
Main.projectile[p].DamageType = DamageClass.Generic;
|
||||
Main.projectile[p].Calamity().lineColor = 1;
|
||||
modPlayer.icicleCooldown = 10;
|
||||
}
|
||||
|
||||
@@ -34,10 +34,6 @@ namespace CalamityMod.Items
|
||||
if (nameLine != null)
|
||||
ApplyRarityColor(item, nameLine);
|
||||
|
||||
// If the item is true melee, add a true melee damage number adjacent to the standard damage number.
|
||||
if (item.IsTrueMelee() && item.damage > 0 && Main.LocalPlayer.Calamity().trueMeleeDamage > 0D)
|
||||
TrueMeleeDamageTooltip(item, tooltips);
|
||||
|
||||
// Modify all vanilla tooltips before appending mod mechanics (if any).
|
||||
ModifyVanillaTooltips(item, tooltips);
|
||||
|
||||
@@ -594,7 +590,7 @@ namespace CalamityMod.Items
|
||||
// Soaring Insignia nerf and clear explanation of what it actually does.
|
||||
if (item.type == ItemID.EmpressFlightBooster)
|
||||
{
|
||||
EditTooltipByNum(0, (line) => line.Text = "Increases wing flight time by 50%");
|
||||
EditTooltipByNum(0, (line) => line.Text = "Increases wing flight time by 25%");
|
||||
EditTooltipByNum(1, (line) => line.Text = "Increases movement and jump speed by 10% and acceleration by 1.1x");
|
||||
}
|
||||
|
||||
@@ -653,7 +649,7 @@ namespace CalamityMod.Items
|
||||
|
||||
// Falcon Blade +20% move speed while holding
|
||||
if (item.type == ItemID.FalconBlade)
|
||||
EditTooltipByNum(0, (line) => line.Text += "\nHolding this item increases move speed by 20%");
|
||||
EditTooltipByName("Knockback", (line) => line.Text += "\nHolding this item grants +20% increased movement speed");
|
||||
#endregion
|
||||
|
||||
// Pre-Hardmode ore armor tooltip edits
|
||||
@@ -1102,34 +1098,6 @@ namespace CalamityMod.Items
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region True Melee Damage Tooltip
|
||||
private void TrueMeleeDamageTooltip(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
TooltipLine line = tooltips.FirstOrDefault((l) => l.Mod == "Terraria" && l.Name == "Damage");
|
||||
|
||||
// If there somehow isn't a damage tooltip line, do not try to perform any edits.
|
||||
if (line is null)
|
||||
return;
|
||||
|
||||
// Start with the existing line of melee damage.
|
||||
StringBuilder sb = new StringBuilder(64);
|
||||
sb.Append(line.Text).Append(" : ");
|
||||
|
||||
// TODO -- True Melee should be its own class that extends Melee, so we can give people True Melee specific stats!
|
||||
Player p = Main.LocalPlayer;
|
||||
float itemCurrentDamage = p.GetTotalDamage<MeleeDamageClass>().ApplyTo(item.damage);
|
||||
double trueMeleeBoost = 1D + p.Calamity().trueMeleeDamage;
|
||||
double imprecisionRoundingCorrection = 5E-06D;
|
||||
int damageToDisplay = (int)(itemCurrentDamage * trueMeleeBoost + imprecisionRoundingCorrection);
|
||||
sb.Append(damageToDisplay);
|
||||
|
||||
// These two pieces are split apart for ease of translation
|
||||
sb.Append(' ');
|
||||
sb.Append("true melee damage");
|
||||
line.Text = sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Stealth Generation Prefix Accessory Tooltip
|
||||
private void StealthGenAccessoryTooltip(Item item, IList<TooltipLine> tooltips)
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
// Various shorthands for items which receive very simple changes, such as setting one flag.
|
||||
IItemTweak[] trueMelee = Do(TrueMelee);
|
||||
IItemTweak[] trueMeleeNoSpeed = Do(TrueMeleeNoSpeed);
|
||||
IItemTweak[] pointBlank = Do(PointBlank);
|
||||
IItemTweak[] autoReuse = Do(AutoReuse);
|
||||
IItemTweak[] maxStack999 = Do(MaxStack(999));
|
||||
@@ -29,8 +30,8 @@ namespace CalamityMod.Items
|
||||
{
|
||||
{ ItemID.Abeemination, nonConsumableBossSummon },
|
||||
{ ItemID.AbigailsFlower, autoReuse },
|
||||
{ ItemID.AdamantiteChainsaw, Do(TrueMelee, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
|
||||
{ ItemID.AdamantiteDrill, Do(TrueMelee, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
|
||||
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(65), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
|
||||
{ ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(18), DamageExact(61)) },
|
||||
@@ -43,7 +44,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.AnkhShield, Do(DefenseDelta(+8)) },
|
||||
{ ItemID.AntlionClaw, Do(ScaleRatio(1.5f), DamageRatio(1.5f), UseExact(14)) },
|
||||
{ ItemID.AquaScepter, Do(DamageExact(21), ShootSpeedExact(25f)) },
|
||||
{ ItemID.Arkhalis, trueMelee },
|
||||
{ ItemID.Arkhalis, trueMeleeNoSpeed },
|
||||
{ ItemID.BabyBirdStaff, Do(AutoReuse, UseExact(35)) },
|
||||
{ ItemID.Bananarang, Do(DamageExact(98), UseExact(14)) },
|
||||
{ ItemID.BatBat, autoReuse },
|
||||
@@ -79,7 +80,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.BouncyBomb, maxStack999 },
|
||||
{ ItemID.BouncyDynamite, maxStack999 },
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(97)) },
|
||||
{ ItemID.ButchersChainsaw, Do(TrueMelee, AxePower(150), UseTimeExact(3), TileBoostExact(+0)) },
|
||||
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, AxePower(150), UseTimeExact(3), TileBoostExact(+0)) },
|
||||
{ ItemID.CactusPickaxe, Do(PickPower(34), UseTimeExact(9)) },
|
||||
{ ItemID.CactusSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.CnadyCanePickaxe, Do(PickPower(55), UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe, intentionally not in alphabetical order to correct for typo
|
||||
@@ -94,10 +95,10 @@ namespace CalamityMod.Items
|
||||
// { ItemID.ChargedBlasterCannon, Do(DamageRatio(1.33f)) },
|
||||
{ ItemID.Chik, autoReuse },
|
||||
{ ItemID.ChlorophyteArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.ChlorophyteChainsaw, Do(TrueMelee, AxePower(120), UseTimeExact(3), TileBoostExact(+0)) },
|
||||
{ ItemID.ChlorophyteDrill, Do(TrueMelee, PickPower(200), UseTimeExact(4), TileBoostExact(+2)) },
|
||||
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), TileBoostExact(+0)) },
|
||||
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, PickPower(200), UseTimeExact(4), TileBoostExact(+2)) },
|
||||
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), UseTimeExact(7), TileBoostExact(+2)) },
|
||||
{ ItemID.ChlorophyteJackhammer, Do(TrueMelee, HammerPower(90), UseTimeExact(5), TileBoostExact(+0)) },
|
||||
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, HammerPower(90), UseTimeExact(5), TileBoostExact(+0)) },
|
||||
{ ItemID.ChlorophytePartisan, Do(AutoReuse, UseRatio(0.8f), DamageExact(100)) },
|
||||
{ ItemID.ChlorophytePickaxe, Do(PickPower(200), UseTimeExact(7), TileBoostExact(+2)) },
|
||||
{ ItemID.ChlorophyteSaber, Do(DamageExact(80), UseExact(10)) },
|
||||
@@ -107,8 +108,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.ClingerStaff, Do(DamageExact(118)) },
|
||||
{ ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) },
|
||||
{ ItemID.CobaltBreastplate, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.CobaltChainsaw, Do(TrueMelee, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.CobaltDrill, Do(TrueMelee, PickPower(130), UseTimeExact(5)) },
|
||||
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
|
||||
{ ItemID.CobaltHat, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.CobaltHelmet, Do(DefenseDelta(+4)) },
|
||||
{ ItemID.CobaltLeggings, Do(DefenseDelta(+2)) },
|
||||
@@ -170,14 +171,14 @@ namespace CalamityMod.Items
|
||||
{ ItemID.DemonBow, Do(PointBlank, DamageExact(12), AutoReuse) },
|
||||
{ ItemID.DemonScythe, Do(AutoReuse, DamageExact(33), ManaExact(10)) },
|
||||
{ ItemID.DiamondStaff, Do(DamageExact(26)) },
|
||||
{ ItemID.Drax, Do(TrueMelee, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.DyeTradersScimitar, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageRatio(1.33f)) },
|
||||
{ ItemID.Dynamite, maxStack999 },
|
||||
{ ItemID.EbonwoodBow, Do(PointBlank, DamageRatio(1.1f)) },
|
||||
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
|
||||
{ ItemID.EbonwoodSword, Do(AutoReuse, UseTurn) },
|
||||
{ ItemID.ElectrosphereLauncher, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.EldMelter, Do(DamageRatio(1.5f)) }, // Elf Melter, intentionally not in alphabetical order to correct for typo
|
||||
{ ItemID.EldMelter, Do(DamageExact(113), ShootSpeedDelta(+3f)) }, // Elf Melter, intentionally not in alphabetical order to correct for typo
|
||||
{ ItemID.EmeraldStaff, Do(DamageExact(28)) },
|
||||
{ ItemID.EmpressBlade, Do(UseExact(20)) },
|
||||
{ ItemID.EnchantedBoomerang, Do(DamageRatio(2f), UseExact(28)) },
|
||||
@@ -193,7 +194,7 @@ namespace CalamityMod.Items
|
||||
// { ItemID.FireworksLauncher, Do(DamageRatio(2f)) }, // Celebration
|
||||
{ ItemID.Flamarang, Do(DamageExact(45)) },
|
||||
{ ItemID.Flamelash, Do(DamageRatio(1.25f)) },
|
||||
{ ItemID.Flamethrower, Do(DamageExact(47), ShootSpeedExact(14)) },
|
||||
{ ItemID.Flamethrower, Do(DamageExact(47), ShootSpeedDelta(+3f)) },
|
||||
{ ItemID.FlamingArrow, Do(DamageRatio(1.1f)) },
|
||||
{ ItemID.FlareGun, pointBlank },
|
||||
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
@@ -303,7 +304,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125), UseTimeExact(14), TileBoostExact(+0)) },
|
||||
{ ItemID.MoltenPickaxe, Do(PickPower(100), UseTimeExact(10)) },
|
||||
{ ItemID.MoltenSkullRose, Do(DefenseExact(8)) },
|
||||
{ ItemID.MonkStaffT1, Do(TrueMelee, DamageExact(83)) }, // Sleepy Octopod
|
||||
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
|
||||
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageRatio(2f)) }, // Ghastly Glaive
|
||||
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
|
||||
{ ItemID.MoonlordArrow, Do(DamageRatio(1.1f)) },
|
||||
@@ -311,16 +312,16 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Muramasa, Do(ScaleRatio(1.5f), DamageRatio(1.5f), UseExact(14), CritDelta(+30)) },
|
||||
{ ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) },
|
||||
{ ItemID.Musket, Do(PointBlank, DamageExact(25)) },
|
||||
{ ItemID.MythrilChainsaw, Do(TrueMelee, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.MythrilDrill, Do(TrueMelee, PickPower(160), UseTimeExact(4)) },
|
||||
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4)) },
|
||||
{ ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.MythrilPickaxe, Do(PickPower(160), UseTimeExact(8)) },
|
||||
{ ItemID.MythrilRepeater, Do(PointBlank, DamageExact(58), UseExact(19)) },
|
||||
{ ItemID.MythrilSword, Do(UseTurn, ScaleRatio(1.5f), DamageExact(100), UseExact(25)) },
|
||||
{ ItemID.MythrilWaraxe, Do(AxePower(140), UseTimeExact(11), TileBoostExact(+0)) },
|
||||
{ ItemID.NaughtyPresent, nonConsumableBossSummon },
|
||||
{ ItemID.NebulaChainsaw, trueMelee },
|
||||
{ ItemID.NebulaDrill, Do(TrueMelee, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.NebulaChainsaw, trueMeleeNoSpeed },
|
||||
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.NebulaPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
|
||||
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(43)) },
|
||||
{ ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) },
|
||||
@@ -335,8 +336,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(51)) },
|
||||
{ ItemID.OrangePhasesaber, Do(ScaleRatio(1.5f), DamageExact(72), UseExact(20)) },
|
||||
{ ItemID.OrichalcumBreastplate, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.OrichalcumChainsaw, Do(TrueMelee, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.OrichalcumDrill, Do(TrueMelee, PickPower(160), UseTimeExact(4)) },
|
||||
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4)) },
|
||||
{ ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(98), ShootSpeedRatio(1.25f)) },
|
||||
{ ItemID.OrichalcumHeadgear, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.OrichalcumHelmet, Do(DefenseDelta(+3)) },
|
||||
@@ -350,8 +351,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PaladinsHammer, Do(AutoReuse, DamageExact(100)) },
|
||||
{ ItemID.PaladinsShield, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.PalladiumBreastplate, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.PalladiumChainsaw, Do(TrueMelee, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.PalladiumDrill, Do(TrueMelee, PickPower(130), UseTimeExact(5)) },
|
||||
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5)) },
|
||||
{ ItemID.PalladiumHeadgear, Do(DefenseDelta(+2)) },
|
||||
{ ItemID.PalladiumHelmet, Do(DefenseDelta(+3)) },
|
||||
{ ItemID.PalladiumMask, Do(DefenseDelta(+1)) },
|
||||
@@ -419,7 +420,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Sandgun, pointBlank },
|
||||
{ ItemID.SapphireStaff, Do(AutoReuse, DamageExact(25)) },
|
||||
{ ItemID.SanguineStaff, Do(AutoReuse, UseExact(25)) },
|
||||
{ ItemID.SawtoothShark, Do(TrueMelee, AxePower(45), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45), UseTimeExact(4), TileBoostExact(-1)) },
|
||||
{ ItemID.ScytheWhip, autoReuse },
|
||||
{ ItemID.SDMG, pointBlank },
|
||||
{ ItemID.Seedler, Do(DamageRatio(1.5f)) },
|
||||
@@ -450,8 +451,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.SnowballCannon, pointBlank },
|
||||
{ ItemID.SnowGlobe, nonConsumableBossSummon },
|
||||
{ ItemID.SolarEruption, Do(DamageRatio(1.5f)) },
|
||||
{ ItemID.SolarFlareChainsaw, trueMelee },
|
||||
{ ItemID.SolarFlareDrill, Do(TrueMelee, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.SolarFlareChainsaw, trueMeleeNoSpeed },
|
||||
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.SolarFlarePickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
|
||||
{ ItemID.SolarTablet, nonConsumableBossSummon },
|
||||
// Life Drain could probably get a bigger buff
|
||||
@@ -468,12 +469,13 @@ namespace CalamityMod.Items
|
||||
{ ItemID.StakeLauncher, Do(PointBlank, DamageRatio(2f), UseRatio(1.5f)) },
|
||||
{ ItemID.StarCannon, Do(DamageExact(25)) },
|
||||
{ ItemID.StardustCellStaff, Do(UseExact(20)) },
|
||||
{ ItemID.StardustChainsaw, trueMelee },
|
||||
{ ItemID.StardustChainsaw, trueMeleeNoSpeed },
|
||||
{ ItemID.StardustDragonStaff, Do(AutoReuse, DamageExact(20), UseExact(19)) },
|
||||
{ ItemID.StardustDrill, Do(TrueMelee, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.StardustPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
|
||||
{ ItemID.Starfury, autoReuse },
|
||||
{ ItemID.StarWrath, Do(DamageRatio(0.9f)) },
|
||||
{ ItemID.PortableStool, Do(Value(Item.sellPrice(copper: 20))) }, // Step Stool
|
||||
{ ItemID.StickyBomb, maxStack999 },
|
||||
{ ItemID.StickyDynamite, maxStack999 },
|
||||
{ ItemID.SwordWhip, autoReuse },
|
||||
@@ -486,7 +488,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.TempestStaff, Do(UseExact(20)) },
|
||||
{ ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) },
|
||||
{ ItemID.TentacleSpike, autoReuse },
|
||||
{ ItemID.Terragrim, trueMelee },
|
||||
{ ItemID.Terragrim, trueMeleeNoSpeed },
|
||||
{ ItemID.Terrarian, Do(AutoReuse, DamageExact(352)) },
|
||||
{ ItemID.TheAxe, Do(HammerPower(100), AxePower(175), UseTimeExact(7), TileBoostExact(+1)) },
|
||||
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
@@ -503,8 +505,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
|
||||
{ ItemID.TinPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
|
||||
{ ItemID.TinShortsword, autoReuse },
|
||||
{ ItemID.TitaniumChainsaw, Do(TrueMelee, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
|
||||
{ ItemID.TitaniumDrill, Do(TrueMelee, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0)) },
|
||||
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1)) },
|
||||
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
|
||||
{ ItemID.TitaniumRepeater, Do(PointBlank, UseExact(29), DamageExact(122)) },
|
||||
{ ItemID.TitaniumSword, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(77)) },
|
||||
@@ -535,8 +537,8 @@ namespace CalamityMod.Items
|
||||
{ ItemID.VenusMagnum, Do(AutoReuse, PointBlank) },
|
||||
{ ItemID.Vilethorn, Do(DamageExact(14)) },
|
||||
{ ItemID.VortexBeater, pointBlank },
|
||||
{ ItemID.VortexChainsaw, trueMelee },
|
||||
{ ItemID.VortexDrill, Do(TrueMelee, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.VortexChainsaw, trueMeleeNoSpeed },
|
||||
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4)) },
|
||||
{ ItemID.VortexPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
|
||||
{ ItemID.WandofSparking, Do(AutoReuse) },
|
||||
{ ItemID.WarAxeoftheNight, Do(AxePower(100), UseTimeExact(13), TileBoostExact(+0)) },
|
||||
@@ -1072,10 +1074,17 @@ namespace CalamityMod.Items
|
||||
#region True Melee
|
||||
internal class TrueMeleeRule : IItemTweak
|
||||
{
|
||||
public bool AppliesTo(Item it) => IsMelee(it);
|
||||
public void ApplyTweak(Item it) => it.Calamity().trueMelee = true;
|
||||
public bool AppliesTo(Item it) => true;
|
||||
public void ApplyTweak(Item it) => it.DamageType = TrueMeleeDamageClass.Instance;
|
||||
}
|
||||
internal static IItemTweak TrueMelee => new TrueMeleeRule();
|
||||
|
||||
internal class TrueMeleeNoSpeedRule : IItemTweak
|
||||
{
|
||||
public bool AppliesTo(Item it) => true;
|
||||
public void ApplyTweak(Item it) => it.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
|
||||
}
|
||||
internal static IItemTweak TrueMeleeNoSpeed => new TrueMeleeNoSpeedRule();
|
||||
#endregion
|
||||
|
||||
#region Use Time and Use Animation
|
||||
|
||||
@@ -80,14 +80,6 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
string key = "Mods.CalamityMod.DeathText2";
|
||||
Color messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
|
||||
if (CalamityWorld.malice)
|
||||
{
|
||||
CalamityWorld.malice = false;
|
||||
key = "Mods.CalamityMod.MaliceText2";
|
||||
messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
}
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.DifficultyItems
|
||||
{
|
||||
[LegacyName("Malice")]
|
||||
public class MaliceModeItem : ModItem
|
||||
{
|
||||
public int frameCounter = 0;
|
||||
public int frame = 0;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Tormented Mind of Malice");
|
||||
Tooltip.SetDefault("Enables/disables Malice Mode, can only be used in Death Mode.\n" +
|
||||
|
||||
// Overall description and warning lines
|
||||
"[c/c01818:This mode is subjective, play how you want, don't expect to live.]\n" +
|
||||
|
||||
// Rev Mode line
|
||||
"All effects from Death Mode are enabled, including the following:\n" +
|
||||
|
||||
// Misc lines
|
||||
"Nerfs the effectiveness of life steal a bit more.\n" +
|
||||
|
||||
// Boss lines
|
||||
"Enrages all bosses and gives them far more aggressive AI.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.expert = true;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.width = 82;
|
||||
Item.height = 66;
|
||||
Item.useAnimation = 45;
|
||||
Item.useTime = 45;
|
||||
Item.useStyle = ItemUseStyleID.HoldUp;
|
||||
Item.UseSound = SoundID.Item119;
|
||||
Item.consumable = false;
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle rectangle)
|
||||
{
|
||||
player.itemLocation += new Vector2(-32f * player.direction, player.gravDir).RotatedBy(player.itemRotation);
|
||||
}
|
||||
|
||||
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/DifficultyItems/MaliceModeItem_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)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/DifficultyItems/MaliceModeItem_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);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Can only be used in Death Mode.
|
||||
public override bool CanUseItem(Player player) => CalamityWorld.death || CalamityWorld.malice;
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
{
|
||||
// This world syncing code should only be run by one entity- the server, to prevent a race condition
|
||||
// with the packets.
|
||||
if (Main.netMode == NetmodeID.MultiplayerClient)
|
||||
return true;
|
||||
|
||||
if (CalamityPlayer.areThereAnyDamnBosses || BossRushEvent.BossRushActive)
|
||||
{
|
||||
string key = "Mods.CalamityMod.ChangingTheRules";
|
||||
Color messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
return true;
|
||||
}
|
||||
if (!CalamityWorld.malice)
|
||||
{
|
||||
CalamityWorld.malice = true;
|
||||
string key = "Mods.CalamityMod.MaliceText";
|
||||
Color messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
CalamityWorld.malice = false;
|
||||
string key = "Mods.CalamityMod.MaliceText2";
|
||||
Color messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddTile(TileID.DemonAltar)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 573 B |
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB |
@@ -107,13 +107,6 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
if (CalamityWorld.malice)
|
||||
{
|
||||
CalamityWorld.malice = false;
|
||||
key = "Mods.CalamityMod.MaliceText2";
|
||||
messageColor = Color.Crimson;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
CalamityNetcode.SyncWorld();
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -4,6 +4,8 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace CalamityMod.Items.DraedonMisc
|
||||
{
|
||||
@@ -33,6 +35,14 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null && RecipeUnlockHandler.HasUnlockedT4ArsenalRecipes)
|
||||
line.Text = "Has already been decrypted";
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -4,6 +4,9 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
||||
namespace CalamityMod.Items.DraedonMisc
|
||||
{
|
||||
@@ -33,6 +36,14 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null && RecipeUnlockHandler.HasUnlockedT5ArsenalRecipes)
|
||||
line.Text = "Has already been decrypted";
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -4,6 +4,8 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace CalamityMod.Items.DraedonMisc
|
||||
{
|
||||
@@ -33,6 +35,14 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null && RecipeUnlockHandler.HasUnlockedT3ArsenalRecipes)
|
||||
line.Text = "Has already been decrypted";
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -4,6 +4,8 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace CalamityMod.Items.DraedonMisc
|
||||
{
|
||||
@@ -33,6 +35,13 @@ namespace CalamityMod.Items.DraedonMisc
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null && RecipeUnlockHandler.HasUnlockedT2ArsenalRecipes)
|
||||
line.Text = "Has already been decrypted";
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<HellcasterFragment>().
|
||||
AddIngredient<YharonSoulFragment>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 10;
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Astral Crate");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 10;
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Brimstone Crate");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.CanFishInLava[Item.type] = true;
|
||||
|
||||
DisplayName.SetDefault("Rift Reeler");
|
||||
Tooltip.SetDefault("Fires three to five lines at once. Can fish in lava.\n" +
|
||||
"The battlefield is a scene of constant chaos.\n" + //Napoleon Bonaparte quote reference
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.CanFishInLava[Item.type] = true;
|
||||
|
||||
DisplayName.SetDefault("Slurper Pole");
|
||||
Tooltip.SetDefault("Can fish in lava.\n" + //Charles Spurgeon quote
|
||||
"It is the burning lava of the soul that has a furnace within--a very volcano of grief and sorrow.");
|
||||
|
||||
@@ -15,6 +15,8 @@ namespace CalamityMod.Items.Fishing.FishingRods
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.CanFishInLava[Item.type] = true;
|
||||
|
||||
DisplayName.SetDefault("The Devourer of Cods");
|
||||
Tooltip.SetDefault("Fires ten lines at once. Line never snaps and can fish from lava.\n" +
|
||||
"The devourer was once just an Eater of Shoals.");
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 10;
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Abyssal Crate");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 10;
|
||||
SacrificeTotal = 5;
|
||||
DisplayName.SetDefault("Sunken Crate");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A horror born of pollution and insatiable hunger; based on size alone this was merely a juvenile.\n" +
|
||||
"These scourge creatures are the largest aquatic predators and very rarely do they frequent such shallow waters.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("This twisted dreamscape, surrounded by unnatural pillars under a dark and hazy sky.\n" +
|
||||
"Natural law has been upturned. What will you make of it?");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A titanic cyborg infected by a star-borne disease expelled from the belly of an ancient god.\n" +
|
||||
"The destruction of this creature will not prevent the spread of the disease.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("God of the stars and largest vessel for the Astral Infection.\n" +
|
||||
"Though struck down from its place among the stars its remnants have gathered strength, aiming to take its rightful place in the cosmos once more.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("We long ago feared the light of the red moon.\n" +
|
||||
"Many went mad, others died, but a scant few became blessed with a wealth of cosmic understanding.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("An eye and now a brain.\n" +
|
||||
"Most likely another abomination spawned from this inchoate mass of flesh.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Ah... this place.\n" +
|
||||
"The scent of broken promises, pain, and eventual death is heavy in the air...");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The most powerful of the elementals, bent on exacting revenge upon the bloody inferno that demolished her home.\n" +
|
||||
"Finally put to rest, she will suffer no longer from the grief caused by the deaths of her people.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"Now that you have defeated her your destiny is clear.\n" +
|
||||
"Come now, face me.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("You are indeed stronger than I thought.\n" +
|
||||
"Though the bloody inferno still lingers, observing your progress.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The rotten and forever-deteriorating landscape of infected life, brought upon by a deadly microbe long ago.\n" +
|
||||
"It is rumored that the microbe was created through experimentation by a long-dead race, predating the Terrarians.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A crab and its mushrooms, a love story.\n" +
|
||||
"It's interesting how creatures can adapt given certain circumstances.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("This bloody hell, spawned from a formless mass of flesh that fell from the stars eons ago.\n" +
|
||||
"It is now home to many hideous creatures, spawned from the pumping blood and lurching organs deep within.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The archmage's prison.\n" +
|
||||
"I am unsure if it has grown weaker over the decades of imprisonment.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"What used to be a majestic beast swimming through the water has now become a dried-up and\n" +
|
||||
"gluttonous husk, constantly on a voracious search for its next meal.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A machine brought to life by the mighty souls of warriors, and built to excavate massive tunnels in planets to gather resources.\n" +
|
||||
"Could have proven useful if Draedon didn't have an obsession with turning everything into a tool of destruction.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("This serpent’s power to assimilate the abilities and energy of those it consumed is unique in almost all the known cosmos, save for its lesser brethren.\n" +
|
||||
"I would have soon had to eliminate it as a threat had it been given more time and creatures to feast upon.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A failure of twisted scientific ambition; it appears our faulted arrogance over life has shown once more in the results.\n" +
|
||||
"Originally intended to be a clone of the Jungle Dragon, these were left to roam about the jungle, attacking anything in their path.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The mutant terror of the sea was once the trusted companion of an old king; he tamed it using its favorite treat.\n" +
|
||||
"Long ago, the creature flew in desperation from the raging bloody inferno consuming its home, ultimately finding its way to the ocean.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Perhaps it was just a giant worm infected by the microbe, given centuries to feed and grow its festering body.\n" +
|
||||
"Seems likely, given the origins of this place.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The fruits of masterful craftsmanship and optimization, created only with the objective to destroy.\n" +
|
||||
"Yet in the end, they achieved little more than the original designs they were derived from.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("That eye... how peculiar.\n" +
|
||||
"I sensed it watching you more intensely as you grew stronger.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A primitive construct.\n" +
|
||||
"I admire the lihzahrd race for their ingenuity, though finding faith in such a flawed idol would invariably lead to their downfall.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A hive of clustered microbial-infected flesh.\n" +
|
||||
"I do not believe killing it will lessen the corruption here.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Only a fool could be caught by this pitiful excuse for a hunter.\n" +
|
||||
"Unfortunately, our world has no shortage of those.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("An odd pair of creatures; one seeking companionship and the other seeking sustenance.\n" +
|
||||
"Perhaps two genetic misfits outcast from their homes that found comfort in assisting one another.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"Someone I once held in such contempt for his actions is now... deceased, his sealing ritual undone... prepare for the end.\n" +
|
||||
"Your impending doom approaches...");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("I see you have awakened Draedon's old toys.\n" +
|
||||
"Once useful tools turned into savage beasts when their AIs went rogue, a mistake that Draedon failed to rectify in time.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"Had it been fully restored it would have been a force to behold, but what you fought was an empty shell.\n" +
|
||||
"However, that doesn't diminish the immense potential locked within it, released upon its death.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Take care to not disturb the deep waters of this world.\n" +
|
||||
"You may awaken something more terrifying than death itself.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("Strange, to find out that the mutant terror of the seas was not alone in its unique biology.\n" +
|
||||
"Perhaps I was mistaken to classify the creature from its relation to pigrons alone.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
DisplayName.SetDefault("The Perforators and their Hive");
|
||||
Tooltip.SetDefault("An abomination of comingled flesh, bone, and organ, infested primarily by blood-slurping worms.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A horrific amalgam of steel, flesh, and infection, capable of destroying an entire civilization in just one onslaught.\n" +
|
||||
"Its plague nuke barrage can leave an entire area uninhabitable for months. A shame that it came to this but the plague must be contained.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"It was used as a vessel to house the spirits of those unfortunate enough to find their way down here.\n" +
|
||||
"I wish you luck in dealing with the fallout.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A creature born of hatred and anger, formed by countless human souls with all of their energy entirely devoted to consuming others.\n" +
|
||||
"It seems a waste to have had such a potent source of power ravage mindlessly through these empty halls.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"Much like a phoenix from the ashes their deaths are simply a part of their life cycle.\n" +
|
||||
"Many times my forces have had to destroy these beings in search of the Profaned Goddess.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A core surrounded by stone and flame, a simple origin and a simple goal.\n" +
|
||||
"What would have become of us had she not been defeated is a frightening concept to consider.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
DisplayName.SetDefault("Queen Bee");
|
||||
Tooltip.SetDefault("As crude as the giant insects are they can prove useful in certain situations... given the ability to control them.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The flesh golem constructed using twisted necromancy during the time of my conquest to counter my unstoppable forces.\n" +
|
||||
"Its creators were slaughtered by it moments after its conception. It is for the best that it has been destroyed.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"Each represent one of the Devourer’s largest spheres of influence.\n" +
|
||||
"Dispatching them has most likely invoked its anger and marked you as a target for destruction.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The curse is said to only affect the elderly.\n" +
|
||||
"After they are afflicted they become an immortal vessel for an ancient demon of the underworld.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("What a silly and pointless contraption for something created with the essence of pure terror.\n" +
|
||||
"Draedon obviously took several liberties with its design... I am not impressed.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("It is a travesty, one of the most threatening biological terrors ever created.\n" +
|
||||
"If this creature were allowed to combine every slime on the planet it would become nearly unstoppable.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("I remember the serene waves and the clear breeze.\n" +
|
||||
"The bitterness of my youth has long since subsided, but it is far too late. I must never repeat a mistake like this again.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("The bio-mechanical watchers of the night, originally created as security using the souls extracted from human eyes.\n" +
|
||||
"These creatures did not belong in this world, it's best to be rid of them.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("These obsidian and hellstone towers were once home to thousands of... 'people'.\n" +
|
||||
"Unfortunately for them, they were twisted by their inner demons until they were beyond saving.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
"The unholy amalgamation of flesh and hatred has been defeated.\n" +
|
||||
"Prepare to face the terrors that lurk in the light and dark parts of this world.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("I would not be able to bear a world without my faithful companion by my side.\n" +
|
||||
"Fortunately, fate will have it so that it is a world I shall never have to see, for better or for worse.");
|
||||
SacrificeTotal = 1;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Materials
|
||||
Tooltip.SetDefault("A catalyst of the highest caliber formed by fusing powerful souls");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
Loaded 100 of 731 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user