Merge branch '1.4.4' into OldDukeWeapons

This commit is contained in:
Xyk committed 2024-08-13 16:31:02 -07:00
commit 40f2fd1c3f
401 files changed
+2950 -2536

No files matched your search

@@ -0,0 +1,79 @@
using CalamityMod.Dusts;
using CalamityMod.NPCs;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class TrueVulnerabilityHex : ModBuff
{
// The visual number displayed in ticks as the enemy takes damage.
public const int TickNumber = 666;
// The exact amount True Vulnerability Hex reduces NPC life regen by.
public const int DPS = TickNumber * 6; // -3996 life regen, 1998 DPS
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().trueVHex = true;
public override void Update(NPC npc, ref int buffIndex)
{
CalamityGlobalNPC cgn = npc.Calamity();
if (cgn.trueVulnerabilityHex < npc.buffTime[buffIndex])
{
cgn.trueVulnerabilityHex = npc.buffTime[buffIndex];
// Set the remaining time of the fire drawer to be exactly right.
if (cgn.VulnerabilityHexFireDrawer != null)
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + cgn.trueVulnerabilityHex;
}
// Apply immunity timer.
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && cgn.debuffResistanceTimer <= 0)
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + cgn.trueVulnerabilityHex;
// Destroy the vanilla buff, we don't use it.
npc.DelBuff(buffIndex);
buffIndex--;
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
{
if (Main.rand.NextBool())
{
Vector2 position = new(npc.position.X + Main.rand.NextFloat(npc.width), npc.position.Y + Main.rand.NextFloat(npc.height));
VoidSparkParticle voidSpark = new(position, -Vector2.UnitY.RotatedByRandom(MathHelper.Pi / 10f) * Main.rand.NextFloat(10f, 18f), false, 20, Main.rand.NextFloat(0.02f, 0.05f), Main.rand.NextBool() ? Color.Black : Color.Lerp(Color.Red, Color.Magenta, 0.35f));
GeneralParticleHandler.SpawnParticle(voidSpark);
}
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
Player Player = drawInfo.drawPlayer;
if (Main.rand.NextBool())
{
VoidSparkParticle spark2 = new VoidSparkParticle(Player.Calamity().RandomDebuffVisualSpot, -Vector2.UnitY * Main.rand.NextFloat(6f, 10f), false, Main.rand.Next(18, 27), Main.rand.NextFloat(0.015f, 0.045f), Main.rand.NextBool() ? Color.Black : Color.Lerp(Color.Red, Color.Magenta, 0.65f));
GeneralParticleHandler.SpawnParticle(spark2);
}
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, Main.rand.NextBool() ? 261 : (int)CalamityDusts.Brimstone);
dust.scale = Main.rand.NextFloat(0.6f, 0.7f);
dust.velocity = -Vector2.UnitY.RotatedByRandom(MathHelper.PiOver4) * Main.rand.NextFloat(0.5f, 2.5f);
if (dust.type == 261)
dust.color = Color.Lerp(Color.Orange, Color.White, Main.rand.NextFloat());
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

+7 -8
View File
@@ -1,24 +1,23 @@
using CalamityMod.NPCs;
using CalamityMod.Dusts;
using CalamityMod.NPCs;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using ReLogic.Utilities;
using CalamityMod.Dusts;
namespace CalamityMod.Buffs.DamageOverTime
{
public class VulnerabilityHex : ModBuff
{
// This is the visual number displayed in ticks as the enemy takes damage from this debuff.
// The visual number displayed in ticks as the enemy takes damage.
public const int TickNumber = 666;
// This is the exact DPS dealt by Vulnerability Hex to NPCs.
public const int DPS = TickNumber * 4; // 2664 DPS
// The exact amount Vulnerability Hex reduces NPC life regen by.
public const int DPS = TickNumber * 4; // -2664 life regen, 1332 DPS
public const int CalamityDuration = 24;
public const int CalamityDuration = 60;
public const int AflameDuration = 120;
public override void SetStaticDefaults()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 572 B

+5 -2
View File
@@ -85,8 +85,8 @@ namespace CalamityMod.CalPlayer
public double contactDamageReduction = 0D;
public double projectileDamageReduction = 0D;
public const float projectileMeleeWeaponMeleeSpeedMultiplier = 0f;
public bool brimlashBusterBoost = false;
public int evilSmasherBoost = 0;
public int burningSeaBurnOut = 0;
public int hellbornBoost = 0;
public int searedPanCounter = 0;
public int searedPanTimer = 0;
@@ -906,6 +906,7 @@ namespace CalamityMod.CalPlayer
public bool icarusFolly = false;
public bool weakPetrification = false;
public bool vHex = false;
public bool trueVHex = false;
public bool DoGExtremeGravity = false;
public bool warped = false;
public bool cDepth = false;
@@ -1991,6 +1992,7 @@ namespace CalamityMod.CalPlayer
elementalMix = false;
icarusFolly = false;
vHex = false;
trueVHex = false;
DoGExtremeGravity = false;
warped = false;
cDepth = false;
@@ -2423,6 +2425,7 @@ namespace CalamityMod.CalPlayer
elementalMix = false;
icarusFolly = false;
vHex = false;
trueVHex = false;
DoGExtremeGravity = false;
warped = false;
cDepth = false;
@@ -2698,10 +2701,10 @@ namespace CalamityMod.CalPlayer
#endregion
KameiBladeUseDelay = 0;
brimlashBusterBoost = false;
AdrenalineTrail = false;
ascendantTrail = false;
evilSmasherBoost = 0;
burningSeaBurnOut = 0;
hellbornBoost = 0;
searedPanCounter = 0;
searedPanTimer = 0;
+3
View File
@@ -291,6 +291,9 @@ namespace CalamityMod.CalPlayer
if (calamityPlayer.tRegen && drawInfo.shadow == 0f)
TarraLifeRegen.DrawEffects(drawInfo);
if (calamityPlayer.trueVHex && drawInfo.shadow == 0f)
TrueVulnerabilityHex.DrawEffects(drawInfo);
if (calamityPlayer.vaporfied && drawInfo.shadow == 0f)
Vaporfied.DrawEffects(drawInfo);
+6
View File
@@ -848,6 +848,9 @@ namespace CalamityMod.CalPlayer
modifiers.SourceDamage *= damageReductionFromWhisperingDeath;
}
if (trueVHex)
modifiers.SourceDamage *= 1.15f;
//
// At this point, the player is guaranteed to be hit if there is no dodge.
// The amount of damage that will be dealt is yet to be determined.
@@ -1026,6 +1029,9 @@ namespace CalamityMod.CalPlayer
projectileDamageReduction += 0.2;
}
if (trueVHex)
modifiers.SourceDamage *= 1.15f;
if (auralisAuroraCounter >= 300)
{
modifiers.SourceDamage.Flat -= 100;
+1
View File
@@ -109,6 +109,7 @@ namespace CalamityMod.CalPlayer
ApplyDoTDebuff(hFlames, 40, purity);
ApplyDoTDebuff(voidfrost, 40, purity);
ApplyDoTDebuff(vHex, 35);
ApplyDoTDebuff(trueVHex, 50);
ApplyDoTDebuff(cDepth, 18, purity);
ApplyDoTDebuff(astralInfection, 24, infectedJewel || purity);
ApplyDoTDebuff(pFlames, alchFlask ? 10 : 30, purity);
+47 -9
View File
@@ -705,11 +705,6 @@ namespace CalamityMod.CalPlayer
if (!blazingCursorDamage)
return;
// miscCounter is used to limit Calamity's hit rate.
int framesPerHit = 5;
if (Player.miscCounter % framesPerHit != 1)
return;
Rectangle sigilHitbox = Utils.CenteredRectangle(Main.MouseWorld, new Vector2(35f, 62f));
int sigilDamage = (int)Player.GetBestClassDamage().ApplyTo(Calamity.BaseDamage);
sigilDamage = Player.ApplyArmorAccDamageBonusesTo(sigilDamage);
@@ -717,9 +712,39 @@ namespace CalamityMod.CalPlayer
bool brightenedSigil = false;
foreach (NPC target in Main.ActiveNPCs)
{
if (!target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage || target.townNPC || NPCID.Sets.ActsLikeTownNPC[target.type] || NPCID.Sets.CountsAsCritter[target.type])
if (!target.Hitbox.Intersects(sigilHitbox) || target.immortal || target.dontTakeDamage || target.friendly || NPCID.Sets.CountsAsCritter[target.type])
continue;
// Increment the cursor focus counter. Note this actually has a net of increasing by 2 per frame, due to the 1 per frame falloff in GlobalNPC.
// If this counter reaches 300 (which takes 2.5 seconds without interruptions), True VHex is activated.
if (target.Calamity().cursorFocus < CalamityGlobalNPC.cursorFocusMax)
{
target.Calamity().cursorFocus += 3;
// Draw an expanding orb effect on the cursor based on the cursor focus value.
float cursorFocusRatio = target.Calamity().cursorFocus / (float)CalamityGlobalNPC.cursorFocusMax;
StrongBloom indicator = new(Main.MouseWorld, Vector2.Zero, Color.Lerp(Color.Magenta, Color.Red, cursorFocusRatio), cursorFocusRatio * 0.7f, 2);
GeneralParticleHandler.SpawnParticle(indicator);
if (target.Calamity().cursorFocus >= CalamityGlobalNPC.cursorFocusMax)
{
target.Calamity().trueVulnerabilityHex = target.Calamity().vulnerabilityHex >= 300 ? target.Calamity().vulnerabilityHex : 300;
target.Calamity().vulnerabilityHex = 0;
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/WeaponEnchant"), target.Center);
for (int i = 0; i < 18; i++)
{
Vector2 orbVel = new Vector2(15, 15).RotatedByRandom(MathHelper.Pi) * Main.rand.NextFloat(0.33f, 1f);
GlowOrbParticle orb = new(target.Center + orbVel, orbVel, false, 60, Main.rand.NextFloat(0.95f, 1.75f), Color.Lerp(Color.Red, Color.Magenta, 0.3f));
GeneralParticleHandler.SpawnParticle(orb);
}
}
}
// miscCounter is used to limit Calamity's hit rate.
if (Player.miscCounter % Calamity.FramesPerHit != 1)
return;
// Brighten the sigil because it is dealing damage. This can only happen once per hit event.
if (!brightenedSigil)
{
@@ -729,13 +754,15 @@ namespace CalamityMod.CalPlayer
// Create a direct strike to hit this specific NPC.
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Calamity>()));
Projectile sigilStrike = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), sigilDamage, 0f, Player.whoAmI, target.whoAmI);
Projectile sigilStrike = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), sigilDamage, 0f, Player.whoAmI, target.whoAmI, 1f);
// Enable crits by setting the sigil's damage class to be whatever the player's strongest damage class is.
sigilStrike.DamageType = Player.GetBestClass();
// Incinerate the target with Vulnerability Hex.
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), VulnerabilityHex.CalamityDuration);
// Incinerate the target with either Vulnerability Hex or True Vulnerability Hex, depending on current cursor focus.
// This adds 8 to the buff duration, which results in a net increase of 3 frames every time damage is dealt, due to damage occurring every 5 frames.
int buffToInflict = target.Calamity().trueVulnerabilityHex > 0 ? ModContent.BuffType<TrueVulnerabilityHex>() : ModContent.BuffType<VulnerabilityHex>();
target.AddBuff(buffToInflict, target.Calamity().trueVulnerabilityHex > 0 ? target.Calamity().trueVulnerabilityHex + 8 : target.Calamity().vulnerabilityHex < VulnerabilityHex.CalamityDuration ? VulnerabilityHex.CalamityDuration : target.Calamity().vulnerabilityHex + 8);
// Make some fancy dust to indicate damage is being done.
for (int j = 0; j < 12; j++)
@@ -1515,6 +1542,17 @@ namespace CalamityMod.CalPlayer
hideOfDeusTimer--;
if (murasamaHitCooldown > 0)
murasamaHitCooldown--;
if (burningSeaBurnOut > 0)
{
burningSeaBurnOut--;
if (Main.rand.NextBool())
{
Vector2 dustSpawnPos = Player.position + new Vector2(Main.rand.NextFloat(Player.width), 0f);
Vector2 dustVelocity = -Vector2.UnitY * Main.rand.NextFloat(3f, 6f);
Dust burnOutDust = Dust.NewDustPerfect(dustSpawnPos, (int)CalamityDusts.Brimstone, dustVelocity);
burnOutDust.noGravity = true;
}
}
if (hellbornBoost > 0)
hellbornBoost--;
if (persecutedEnchantSummonTimer < 1800)
+8
View File
@@ -82,6 +82,9 @@ namespace CalamityMod
public static int ghostKillCount = 0;
public static int sharkKillCount = 0;
// Boss Head Icons
public static int chadPrimeIcon;
public static Asset<Texture2D> carpetOriginal;
// Astral Sky/BG
@@ -374,6 +377,11 @@ namespace CalamityMod
ThanatosBody2.LoadHeadIcons();
ThanatosTail.LoadHeadIcons();
// All the head icon loading shit is done here, so I'm putting this here
string chadPrimeIconPath = "CalamityMod/ExtraTextures/ChadPrime_Head_Boss";
CalamityMod.Instance.AddBossHeadTexture(chadPrimeIconPath, -1);
chadPrimeIcon = ModContent.GetModBossHeadSlot(chadPrimeIconPath);
// TODO -- Is this not possible to place in ModItem.Load or ModItem.SetStaticDefaults ?
// Centralizing hair dye shaders like this seems absurdly stiff
GameShaders.Hair.BindShader(ModContent.ItemType<AdrenalineHairDye>(), new LegacyHairShaderData().UseLegacyMethod((Player player, Color newColor, ref bool lighting) => Color.Lerp(player.hairColor, new Color(0, 255, 171), ((float)player.Calamity().adrenaline / (float)player.Calamity().adrenalineMax))));
-6
View File
@@ -167,11 +167,6 @@ namespace CalamityMod
CalamityUtils.SpawnOldDuke(playerIndex2);
break;
case CalamityModMessageType.ArmoredDiggerCountdownSync:
int countdown5 = reader.ReadInt32();
CalamityWorld.ArmoredDiggerSpawnCooldown = countdown5;
break;
case CalamityModMessageType.ProvidenceDyeConditionSync:
byte npcIndex3 = reader.ReadByte();
(Main.npc[npcIndex3].ModNPC as Providence).hasTakenDaytimeDamage = reader.ReadBoolean();
@@ -412,7 +407,6 @@ namespace CalamityMod
SyncSlabCrabAI,
PlaceAltCritter,
ServersideSpawnOldDuke,
ArmoredDiggerCountdownSync, // TODO -- remove this mechanic entirely
ProvidenceDyeConditionSync, // TODO -- this packetstorms if you hit Provi with spam weapons. It should ONLY send a packet if the status changes.
PSCChallengeSync, // TODO -- once you've failed the PSC challenge this packetstorms
+1 -2
View File
@@ -645,8 +645,7 @@ namespace CalamityMod
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 60, 100, 128, 156, 234 } },
/*{ new Tuple<int, int>(ModContent.NPCType<Foveanator>(), ModContent.ProjectileType<FoveaLaser>()), new int[] { 50, 108, 132, 156, 234 } },
{ new Tuple<int, int>(ModContent.NPCType<Foveanator>(), ModContent.ProjectileType<FoveaEnergyBomb>()), new int[] { 70, 120, 148, 176, 264 } },
{ new Tuple<int, int>(ModContent.NPCType<Foveanator>(), ModContent.ProjectileType<FoveaFlamethrower>()), new int[] { 70, 120, 148, 176, 264 } },
{ new Tuple<int, int>(ModContent.NPCType<Foveanator>(), ModContent.ProjectileType<FoveaRay>()), new int[] { 100, 152, 172, 192, 300 } },*/
{ new Tuple<int, int>(ModContent.NPCType<Foveanator>(), ModContent.ProjectileType<FoveaFlamethrower>()), new int[] { 70, 120, 148, 176, 264 } },*/
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SulphuricAcidMist>()), new int[] { 60, 100, 120, 140, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SandPoisonCloud>()), new int[] { 70, 120, 136, 152, 228 } },
+4 -4
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.Effects
// Scarlet Devil main spear glowing trail. BEWARE: Is reused by many other items!
internal static Effect ScarletDevilShader;
// Yharon border suns (or flame pillars?) unsure. it's one or the other. maybe both
// Yharon border flame pillar trail.
internal static Effect BordernadoFireShader;
// Photon Ripper hardlight teeth trail shader
@@ -99,13 +99,13 @@ namespace CalamityMod.Effects
// Exoblade's melee slash trails. Also used by Terratomere
internal static Effect ExobladeSlashShader;
// Exoblade's projectile on-hit "aniume slash marks". Also used by Terratomere
// Exoblade's projectile on-hit "anime slash marks". Also used by Terratomere
internal static Effect ExobladePierceShader;
// Used by Subsuming Vortex's various vortices. Draws the main vortices
// Used by Subsuming Vortex's various vortices. Draws the main vortices. BEWARE: Reused by Burning Sea's fireball.
internal static Effect ExoVortexShader;
// Used by Subsuming Vortex's side vortices. Draws the swirling energy tendrils.
// Used by Subsuming Vortex's small vortices. Draws the trailing energy tendrils.
internal static Effect SideStreakTrailShader;
// Used by Heavenly Gale's hardlight arrows.
Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+6 -1
View File
@@ -86,8 +86,10 @@ namespace CalamityMod.ILEditing
On_Player.UpdateItemDye += FindCalamityItemDyeShader;
On_AWorldListItem.GetDifficulty += GetDifficultyOverride;
On_Item.GetShimmered += ShimmerEffectEdits;
Terraria.On_Player.Teleport += TPOverride;
On_Player.Teleport += TPOverride;
On_NPC.SpawnBoss += TripletsSpawnTextOverride;
On_NPC.DoDeathEvents_BeforeLoot += PreventFoveanatorDefeatMessageIfNotKilledLast;
On_NPC.DoDeathEvents_CelebrateBossDeath += TripletsDefeatTextOverride;
// Mana Burn (Chaos Stone) and Chalice of the Blood God
IL_Player.ApplyLifeAndOrMana += ManaSicknessAndChaliceBufferHeal;
@@ -158,6 +160,9 @@ namespace CalamityMod.ILEditing
On_Player.GetPickaxeDamage += RemoveHellforgePickaxeRequirement;
On_Player.GetAnglerReward += ImproveAnglerRewards;
On_Player.ItemCheck_CheckCanUse += RemoveCelestialSigilUseLock;
On_Player.ItemCheck_UseEventItems += ApplyCelestialSigilChanges;
// Fix vanilla bugs exposed by Calamity mechanics
IL_NPC.NPCLoot += FixSplittingWormBannerDrops;
On_NPC.PlayerInteraction += FixSplittingWormInteraction;
+35 -2
View File
@@ -16,6 +16,7 @@ using CalamityMod.NPCs;
using CalamityMod.NPCs.Astral;
using CalamityMod.NPCs.AstrumAureus;
using CalamityMod.NPCs.Crabulon;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.Ravager;
using CalamityMod.Particles;
using CalamityMod.Projectiles;
@@ -32,6 +33,7 @@ using Mono.Cecil.Cil;
using MonoMod.Cil;
using ReLogic.Content;
using Terraria;
using Terraria.Chat;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameContent.Achievements;
@@ -782,7 +784,7 @@ namespace CalamityMod.ILEditing
private static void AdditiveDrawing(ILContext il)
{
ILCursor cursor = new(il);
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall<MoonlordDeathDrama>("DrawWhite")))
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall<ScreenObstruction>("Draw")))
return;
cursor.EmitDelegate<Action>(() =>
@@ -1553,7 +1555,7 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Change the Twins' announcement name in Revengeance Master Mode
#region Revengeance Master Mode Twins Shenanigans
public static void TripletsSpawnTextOverride(Terraria.On_NPC.orig_SpawnBoss orig, int x, int y, int type, int targetPlayerIndex)
{
if (Main.masterMode && CalamityWorld.revenge && type == NPCID.Retinazer)
@@ -1581,6 +1583,37 @@ namespace CalamityMod.ILEditing
orig(x, y, type, targetPlayerIndex);
}
}
public static void PreventFoveanatorDefeatMessageIfNotKilledLast(On_NPC.orig_DoDeathEvents_BeforeLoot orig, NPC self, Player closestPlayer)
{
if (Main.masterMode && CalamityWorld.revenge && self.type == ModContent.NPCType<Foveanator>() && (NPC.AnyNPCs(NPCID.Spazmatism) || NPC.AnyNPCs(NPCID.Retinazer)))
{
self.value = 0f;
self.boss = false;
return;
}
else
{
orig(self, closestPlayer);
}
}
public static void TripletsDefeatTextOverride(On_NPC.orig_DoDeathEvents_CelebrateBossDeath orig, NPC self, string typeName)
{
bool correctNPCType = self.type == NPCID.Retinazer || self.type == NPCID.Spazmatism || self.type == ModContent.NPCType<Foveanator>();
if (Main.masterMode && CalamityWorld.revenge && correctNPCType)
{
if (Main.netMode == NetmodeID.SinglePlayer)
Main.NewText(Language.GetTextValue("Announcement.HasBeenDefeated_Plural", CalamityUtils.GetTextValue("Status.Boss.TripletsDefeatName")), 175, 75, 255);
else if (Main.dedServ)
ChatHelper.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasBeenDefeated_Plural", NetworkText.FromKey("Mods.CalamityMod.Status.Boss.TripletsDefeatName")), new Color(175, 75, 255));
return;
}
else
{
orig(self, typeName);
}
}
#endregion
}
}
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using CalamityMod.Events;
using CalamityMod.Items.Fishing;
using CalamityMod.Items.Materials;
using CalamityMod.Items.TreasureBags.MiscGrabBags;
@@ -11,6 +12,7 @@ using Microsoft.Xna.Framework;
using Mono.Cecil.Cil;
using MonoMod.Cil;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent.Drawing;
using Terraria.ID;
@@ -1002,6 +1004,35 @@ namespace CalamityMod.ILEditing
#endregion Make Magma Stone & Fire Gauntlet Dust Toggleable
#region Celestial Sigil Non-Linearity Change
private static bool RemoveCelestialSigilUseLock(On_Player.orig_ItemCheck_CheckCanUse orig, Player self, Item sItem)
{
if (sItem.type == ItemID.CelestialSigil)
return !NPC.AnyNPCs(NPCID.MoonLordCore) && !BossRushEvent.BossRushActive;
return orig(self, sItem);
}
private static void ApplyCelestialSigilChanges(On_Player.orig_ItemCheck_UseEventItems orig, Player self, Item sItem)
{
if (self.ItemTimeIsZero && self.itemAnimation > 0 && sItem.type == ItemID.CelestialSigil)
{
if (NPC.AnyNPCs(NPCID.MoonLordCore) || BossRushEvent.BossRushActive)
return;
SoundEngine.PlaySound(SoundID.Roar, self.Center);
self.ApplyItemTime(sItem);
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.SpawnOnPlayer(self.whoAmI, NPCID.MoonLordCore);
else
NetMessage.SendData(MessageID.SpawnBossUseLicenseStartEvent, -1, -1, null, self.whoAmI, NPCID.MoonLordCore);
}
else
orig(self, sItem);
}
#endregion
// 02JUN2024: Ozzatron: The below code is being kept in its initial state for historic value.
#region Store The Stupid Fucking Private Wind Map In Public Property
private static void StoreWindGrid(On_TileDrawing.orig_Update orig, TileDrawing self)
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
// This is ONLY the direct DPS of having the cursor over the enemy, not the damage from the flames debuff.
// The debuff is VulnerabilityHex, check that file for its DPS.
public const int BaseDamage = 320;
public const int HitsPerSecond = 12;
public const int FramesPerHit = 5;
public override void SetStaticDefaults()
{
-1
View File
@@ -12,7 +12,6 @@ namespace CalamityMod.Items.Armor.Aerospec
public new string LocalizationCategory => "Items.Armor.PreHardmode";
public override void SetStaticDefaults()
{
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
}
+6
View File
@@ -13,6 +13,12 @@ namespace CalamityMod.Items.Armor
public const int tornadoBaseDmg = 80;
public const float tornadoBaseKB = 1f;
public override void SetStaticDefaults()
{
if (Main.netMode != NetmodeID.Server)
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
}
public override void SetDefaults()
{
Item.width = 18;
-7
View File
@@ -645,13 +645,6 @@ namespace CalamityMod.Items
if (item.type == ItemID.Mushroom && player.Calamity().fungalSymbiote)
player.AddBuff(ModContent.BuffType<Mushy>(), 3600);
// Moon Lord instantly spawns when Celestial Sigil is used.
if (item.type == ItemID.CelestialSigil)
{
NPC.MoonLordCountdown = 1;
NetMessage.SendData(MessageID.MoonlordHorror, -1, -1, null, NPC.MoonLordCountdown);
}
// Staff/Axe of Regrowth growing Calamity grass
if (item.type == ItemID.StaffofRegrowth || item.type == ItemID.AcornAxe)
{
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.DraedonMisc
Item.consumable = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.rare = ItemRarityID.Yellow;
Item.useTime = Item.useAnimation = 15;
Item.useAnimation = Item.useTime = 15;
}
public override bool? UseItem(Player player) => true;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.DraedonMisc
Item.maxStack = 9999;
Item.consumable = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 15;
Item.useAnimation = Item.useTime = 15;
Item.rare = ModContent.RarityType<Violet>();
}
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.DraedonMisc
Item.consumable = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.rare = ItemRarityID.Orange;
Item.useTime = Item.useAnimation = 15;
Item.useAnimation = Item.useTime = 15;
}
public override bool? UseItem(Player player) => true;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.DraedonMisc
Item.consumable = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.rare = ItemRarityID.Pink;
Item.useTime = Item.useAnimation = 15;
Item.useAnimation = Item.useTime = 15;
}
public override bool? UseItem(Player player) => true;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.DraedonMisc
Item.consumable = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.rare = ModContent.RarityType<Turquoise>();
Item.useTime = Item.useAnimation = 15;
Item.useAnimation = Item.useTime = 15;
}
public override bool? UseItem(Player player) => true;
@@ -21,21 +21,20 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
Item.width = 44;
Item.height = 44;
Item.damage = BaseDamage;
Item.noMelee = true;
Item.DamageType = DamageClass.Magic;
Item.channel = true; //Channel so that you can hold the weapon [Important]
Item.rare = ItemRarityID.Green;
Item.mana = 5;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<SparklingLaser>();
Item.shootSpeed = 14f;
Item.UseSound = SoundID.Item13;
Item.useStyle = ItemUseStyleID.Shoot;
Item.shootSpeed = 14f;
Item.shoot = ModContent.ProjectileType<SparklingLaser>();
Item.channel = true; //Channel so that you can hold the weapon [Important]
Item.noMelee = true;
Item.rare = ItemRarityID.Green;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
}
//Looks scuffed with the laser when there is offset
//public override Vector2? HoldoutOrigin() => new Vector2(10, 10);
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<CyanLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<GreenLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<OnyxLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<RedLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<WhiteLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.LabFinders
Item.height = 26;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = 36;
Item.useAnimation = Item.useTime = 36;
Item.shoot = ModContent.ProjectileType<YellowLabSeeker>();
Item.Calamity().MaxCharge = 100;
Item.Calamity().ChargePerUse = 10;
+4
View File
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -11,6 +12,7 @@ namespace CalamityMod.Items.Materials
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.SortingPriorityMaterials[Type] = 68; // Sturdy Fossil
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<RottenMatter>(), 1);
}
public override void SetDefaults()
@@ -20,6 +22,8 @@ namespace CalamityMod.Items.Materials
Item.maxStack = 9999;
Item.value = Item.buyPrice(0, 0, 50, 0);
Item.rare = ItemRarityID.Orange;
Item.MakeUsableWithChlorophyteExtractinator();
}
}
}
+4
View File
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -12,6 +13,7 @@ namespace CalamityMod.Items.Materials
{
Item.ResearchUnlockCount = 25;
ItemID.Sets.SortingPriorityMaterials[Type] = 65; // Crimtane Ore
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<BloodSample>(), 1);
}
public override void SetDefaults()
@@ -21,6 +23,8 @@ namespace CalamityMod.Items.Materials
Item.maxStack = 9999;
Item.value = Item.buyPrice(0, 0, 50, 0);
Item.rare = ItemRarityID.Orange;
Item.MakeUsableWithChlorophyteExtractinator();
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items
Item.rare = ItemRarityID.Pink;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.useTime = Item.useAnimation = 2;
Item.useAnimation = Item.useTime = 2;
Item.noMelee = true;
Item.channel = true;
Item.autoReuse = true;
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Mounts
{
Item.width = 32;
Item.height = 34;
Item.useTime = Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item94;
Item.noMelee = true;
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Pets
Item.width = 32;
Item.height = 34;
Item.damage = 0;
Item.useTime = Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.shoot = ModContent.ProjectileType<PineapplePetProj>();
Item.buffType = ModContent.BuffType<PineappleBuff>();
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Pets
Item.height = 30;
Item.value = Item.buyPrice(0, 4, 0, 0);
Item.damage = 0;
Item.useTime = Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.useStyle = ItemUseStyleID.Swing;
Item.noMelee = true;
Item.UseSound = SoundID.NPCHit2;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Pets
Item.width = 30;
Item.height = 34;
Item.damage = 0;
Item.useTime = Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.shoot = ModContent.ProjectileType<RotomPet>();
Item.buffType = ModContent.BuffType<ElectricTroublemaker>();
+4 -14
View File
@@ -1,4 +1,5 @@
using Terraria.ID;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
@@ -9,20 +10,9 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.ClayBlock, 1);
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.Astral.AstralClay>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Astral.AstralClay>());
}
}
+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,21 +11,10 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.DirtBlock, 1);
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.Astral.AstralDirt>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Astral.AstralDirt>());
public override void AddRecipes()
{
+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,22 +11,11 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.IceBlock, 1);
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<AstralSnow>();
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.AstralSnow.AstralIce>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralSnow.AstralIce>());
public override void AddRecipes()
{
+2
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Typeless;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,6 +11,7 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.SandBlock, 1);
// +5 flat damage, equal to other sand variants
ItemID.Sets.SandgunAmmoProjectileData[Type] = new(ModContent.ProjectileType<AstralSandBallGun>(), 5);
+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,22 +11,11 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.Sandstone, 1);
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<AstralSand>();
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.AstralDesert.AstralSandstone>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralDesert.AstralSandstone>());
public override void AddRecipes()
{
+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,21 +11,10 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.SnowBlock, 1);
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.AstralSnow.AstralSnow>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralSnow.AstralSnow>());
public override void AddRecipes()
{
+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,21 +11,10 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.StoneBlock, 1);
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.Astral.AstralStone>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Astral.AstralStone>());
public override void AddRecipes()
{
+4 -15
View File
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -7,21 +8,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public class CorruptionEffigy : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 28;
Item.height = 32;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.value = Item.buyPrice(0, 9, 0, 0);
Item.rare = ItemRarityID.Orange;
Item.createTile = ModContent.TileType<Tiles.Furniture.CorruptionEffigy>();
}
public override void SetStaticDefaults() => ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<CrimsonEffigy>(), 1);
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CorruptionEffigy>());
public override void AddRecipes()
{
+4 -15
View File
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
@@ -7,21 +8,9 @@ namespace CalamityMod.Items.Placeables.Furniture
public class CrimsonEffigy : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 22;
Item.height = 32;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.value = Item.buyPrice(0, 9, 0, 0);
Item.rare = ItemRarityID.Orange;
Item.createTile = ModContent.TileType<Tiles.Furniture.CrimsonEffigy>();
}
public override void SetStaticDefaults() => ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ModContent.ItemType<CorruptionEffigy>(), 1);
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CrimsonEffigy>());
public override void AddRecipes()
{
@@ -155,7 +155,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"MarieArk",
"Minecat",
"Mrrp",
"Mr.Small",
"Nao",
"Neverglide",
"Nincity",
+25
View File
@@ -0,0 +1,25 @@
using CalamityMod.Tiles.Furniture;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Furniture
{
public class SunkenIdol : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 34;
Item.height = 38;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createTile = ModContent.TileType<SunkenIdolTile>();
Item.Calamity().donorItem = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

+3 -13
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
@@ -9,22 +10,11 @@ namespace CalamityMod.Items.Placeables
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.HardenedSand, 1);
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<AstralSand>();
}
public override void SetDefaults()
{
Item.width = 16;
Item.height = 16;
Item.createTile = ModContent.TileType<Tiles.AstralDesert.HardenedAstralSand>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.maxStack = 9999;
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralDesert.HardenedAstralSand>());
public override void AddRecipes()
{
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items
{
Item.width = 32;
Item.height = 46;
Item.useTime = Item.useAnimation = 25;
Item.useAnimation = Item.useTime = 25;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.DD2_DarkMageCastHeal;
Item.noMelee = true;
+16 -19
View File
@@ -16,31 +16,28 @@ namespace CalamityMod.Items.Tools
Item.width = 36;
Item.height = 18;
Item.damage = 6;
Item.ArmorPenetration = 10;
Item.knockBack = 0f;
Item.useTime = 4;
Item.useAnimation = 25;
Item.hammer = 59;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.channel = true;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item23;
Item.autoReuse = true;
Item.ArmorPenetration = 10;
Item.hammer = 59;
Item.tileBoost = 7;
Item.useAnimation = 25;
Item.useTime = 4;
Item.knockBack = 0.5f;
Item.shoot = ModContent.ProjectileType<MarniteDeconstructorProj>();
Item.shootSpeed = 40f;
Item.tileBoost = 7;
}
public override void HoldItem(Player player)
{
player.Calamity().mouseWorldListener = true;
Item.UseSound = SoundID.Item23;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.channel = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
}
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void AddRecipes()
{
+16 -19
View File
@@ -16,31 +16,28 @@ namespace CalamityMod.Items.Tools
Item.width = 36;
Item.height = 18;
Item.damage = 7;
Item.ArmorPenetration = 5;
Item.knockBack = 0f;
Item.useTime = 3;
Item.useAnimation = 25;
Item.pick = 59;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.channel = true;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item23;
Item.autoReuse = true;
Item.ArmorPenetration = 5;
Item.pick = 59;
Item.tileBoost = 7;
Item.useAnimation = 25;
Item.useTime = 3;
Item.knockBack = 0.5f;
Item.shoot = ModContent.ProjectileType<MarniteObliteratorProj>();
Item.shootSpeed = 40f;
Item.tileBoost = 7;
}
public override void HoldItem(Player player)
{
player.Calamity().mouseWorldListener = true;
Item.UseSound = SoundID.Item23;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.channel = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
}
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void AddRecipes()
{
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools
{
Item.width = 30;
Item.height = 38;
Item.useTime = Item.useAnimation = 8;
Item.useAnimation = Item.useTime = 8;
Item.maxStack = 9999;
Item.consumable = true;
Item.shootSpeed = 20f;
+11 -14
View File
@@ -15,29 +15,26 @@ namespace CalamityMod.Items.Tools
Item.width = 46;
Item.height = 38;
Item.damage = 5;
Item.knockBack = 0f;
Item.useTime = 5;
Item.useAnimation = 16;
Item.DamageType = DamageClass.Melee;
Item.pick = 35;
Item.tileBoost += 1;
Item.DamageType = DamageClass.Melee;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item23;
Item.autoReuse = true;
Item.useAnimation = 16;
Item.useTime = 5;
Item.knockBack = 0.5f;
Item.shoot = ModContent.ProjectileType<WulfrumDrillProj>();
Item.UseSound = SoundID.Item23;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.channel = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
}
public override void HoldItem(Player player)
{
player.Calamity().mouseWorldListener = true;
}
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void AddRecipes()
{
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools
{
Item.width = 52;
Item.height = 42;
Item.useTime = Item.useAnimation = 25;
Item.useAnimation = Item.useTime = 25;
Item.autoReuse = false;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.HiddenAnimation;
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Tools
{
Item.width = 52;
Item.height = 42;
Item.useTime = Item.useAnimation = 25;
Item.useAnimation = Item.useTime = 25;
Item.autoReuse = false;
Item.holdStyle = 16; //Custom hold style
Item.useStyle = ItemUseStyleID.Shoot;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.mana = 6;
Item.damage = 150;
Item.knockBack = 11f;
Item.useTime = Item.useAnimation = 20;
Item.useAnimation = Item.useTime = 20;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.DamageType = DamageClass.Ranged;
Item.damage = 150;
Item.knockBack = 30f;
Item.useTime = Item.useAnimation = 32;
Item.useAnimation = Item.useTime = 32;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.DamageType = DamageClass.Ranged;
Item.damage = 100;
Item.knockBack = 11f;
Item.useTime = Item.useAnimation = 33;
Item.useAnimation = Item.useTime = 33;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.damage = 24;
Item.knockBack = 2f;
Item.mana = 10;
Item.useTime = Item.useAnimation = 24;
Item.useAnimation = Item.useTime = 24;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.HoldUp;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.shootSpeed = 10f;
Item.damage = 310;
Item.mana = 12;
Item.useTime = Item.useAnimation = 9;
Item.useAnimation = Item.useTime = 9;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noMelee = true;
Item.knockBack = 8f;
+7 -8
View File
@@ -20,23 +20,22 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.width = 62;
Item.height = 22;
Item.DamageType = DamageClass.Magic;
Item.damage = 22;
Item.knockBack = 0f;
Item.useTime = Item.useAnimation = 23;
Item.autoReuse = true;
Item.DamageType = DamageClass.Magic;
Item.mana = 6;
Item.useAnimation = Item.useTime = 23;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<PulsePistolShot>();
Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates.
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = PulseRifle.FireSound;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<PulsePistolShot>();
Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates.
modItem.UsesCharge = true;
modItem.MaxCharge = 50f;
modItem.ChargePerUse = 0.05f;
+6 -8
View File
@@ -30,21 +30,19 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.height = 32;
Item.DamageType = DamageClass.Ranged;
Item.damage = BaseDamage;
Item.knockBack = 0f;
Item.useTime = 55;
Item.useAnimation = 55;
Item.autoReuse = true;
Item.useAnimation = Item.useTime = 55;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<PulseRifleShot>();
Item.shootSpeed = 5f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = FireSound;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
Item.rare = ModContent.RarityType<DarkBlue>();
Item.shoot = ModContent.ProjectileType<PulseRifleShot>();
Item.shootSpeed = 5f;
modItem.UsesCharge = true;
modItem.MaxCharge = 250f;
modItem.ChargePerUse = 0.24f;
@@ -20,24 +20,23 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.width = 28;
Item.height = 26;
Item.damage = 150;
Item.DamageType = DamageClass.Summon;
Item.sentry = true;
Item.damage = 150;
Item.knockBack = 0f;
Item.mana = 10;
Item.useTime = Item.useAnimation = 24;
Item.autoReuse = true;
Item.useAnimation = Item.useTime = 24;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<PulseTurret>();
Item.shootSpeed = 1f;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.UseSound = SoundID.Item15;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.shoot = ModContent.ProjectileType<PulseTurret>();
Item.shootSpeed = 1f;
modItem.UsesCharge = true;
modItem.MaxCharge = 135f;
modItem.ChargePerUse = 1f;
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.height = 24;
Item.damage = 200;
Item.mana = 12;
Item.useTime = Item.useAnimation = 14;
Item.useAnimation = Item.useTime = 14;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noMelee = true;
Item.knockBack = 3f;
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.shootSpeed = 10f;
Item.damage = 24;
Item.mana = 10;
Item.useTime = Item.useAnimation = 30;
Item.useAnimation = Item.useTime = 30;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noMelee = true;
Item.knockBack = 2.25f;
+7 -8
View File
@@ -20,22 +20,21 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.width = 50;
Item.height = 26;
Item.DamageType = DamageClass.Ranged;
Item.damage = 16;
Item.knockBack = 0f;
Item.useTime = Item.useAnimation = 28;
Item.autoReuse = true;
Item.DamageType = DamageClass.Ranged;
Item.useAnimation = Item.useTime = 28;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<TaserHook>();
Item.shootSpeed = 25f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = CommonCalamitySounds.PlasmaBoltSound;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<TaserHook>();
Item.shootSpeed = 25f;
modItem.UsesCharge = true;
modItem.MaxCharge = 50f;
modItem.ChargePerUse = 0.05f;
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.height = 44;
Item.damage = 1675;
Item.knockBack = 4.5f;
Item.useTime = Item.useAnimation = AnomalysNanogunHoldout.PlasmaFireTimer;
Item.useAnimation = Item.useTime = AnomalysNanogunHoldout.PlasmaFireTimer;
Item.shootSpeed = 5f;
Item.DamageType = DamageClass.Ranged;
Item.useStyle = ItemUseStyleID.Shoot;
+11 -13
View File
@@ -20,25 +20,23 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
CalamityGlobalItem modItem = Item.Calamity();
Item.damage = 75;
Item.DamageType = RogueDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.width = 26;
Item.height = 44;
Item.useTime = 56;
Item.useAnimation = 56;
Item.autoReuse = true;
Item.damage = 75;
Item.DamageType = RogueDamageClass.Instance;
Item.useAnimation = Item.useTime = 56;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<WavePounderProjectile>();
Item.shootSpeed = 16f;
Item.UseSound = SoundID.Item1;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 0f;
Item.autoReuse = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
Item.rare = ModContent.RarityType<Turquoise>();
Item.UseSound = SoundID.Item1;
Item.shootSpeed = 16f;
Item.shoot = ModContent.ProjectileType<WavePounderProjectile>();
modItem.UsesCharge = true;
modItem.MaxCharge = 190f;
+9 -15
View File
@@ -16,30 +16,24 @@ namespace CalamityMod.Items.Weapons.Magic
Item.width = 86;
Item.height = 32;
Item.damage = 27;
Item.noMelee = true;
Item.DamageType = DamageClass.Magic;
Item.channel = true;
Item.useTime = 19;
Item.useAnimation = 19;
Item.mana = 10;
Item.useAnimation = Item.useTime = 19;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<LightningArc>();
Item.shootSpeed = 14f;
Item.UseSound = SoundID.Item13;
Item.useStyle = ItemUseStyleID.Shoot;
Item.mana = 10;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.Calamity().donorItem = true;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<LightningArc>();
Item.shootSpeed = 14f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position + velocity * 4.5f, velocity, ModContent.ProjectileType<LightningArc>(), damage, knockback, player.whoAmI);
return false;
}
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback) => position += velocity.SafeNormalize(Vector2.UnitX) * 56f;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 28;
Item.DamageType = DamageClass.Magic;
Item.mana = 9;
Item.useTime = Item.useAnimation = 45;
Item.useAnimation = Item.useTime = 45;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 285;
Item.DamageType = DamageClass.Magic;
Item.mana = 7;
Item.useTime = Item.useAnimation = UseTime;
Item.useAnimation = Item.useTime = UseTime;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.noUseGraphic = true;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.height = 44;
Item.damage = 504;
Item.knockBack = 5.5f;
Item.useTime = Item.useAnimation = 24;
Item.useAnimation = Item.useTime = 24;
Item.shootSpeed = 12f;
Item.shoot = ModContent.ProjectileType<AetherBeam>();
Item.mana = 30;
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 230;
Item.DamageType = DamageClass.Magic;
Item.mana = 42;
Item.useTime = Item.useAnimation = 167;
Item.useAnimation = Item.useTime = 167;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTurn = false;
Item.noMelee = true;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 80;
Item.DamageType = DamageClass.Magic;
Item.mana = 20;
Item.useTime = Item.useAnimation = 24;
Item.useAnimation = Item.useTime = 24;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2f;
+15 -6
View File
@@ -9,26 +9,35 @@ namespace CalamityMod.Items.Weapons.Magic
public class BurningSea : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public const float ChargeTime = 240f;
public const float BurnOutTime = 560f;
public const int BurnOutReuseDelay = 150;
public const float FizzleOutTime = 40f;
public override void SetDefaults()
{
Item.width = 28;
Item.height = 30;
Item.damage = 68;
Item.damage = 69;
Item.DamageType = DamageClass.Magic;
Item.mana = 15;
Item.mana = 8;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noMelee = true;
Item.knockBack = 6.5f;
Item.channel = true;
Item.knockBack = 3f;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.UseSound = SoundID.Item20;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<BrimstoneFireball>();
Item.shootSpeed = 15f;
Item.shoot = ModContent.ProjectileType<IncineratingFireball>();
Item.shootSpeed = 5f;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.Calamity().burningSeaBurnOut <= 0;
public override void AddRecipes()
{
CreateRecipe().
+10 -9
View File
@@ -18,17 +18,18 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 105;
Item.DamageType = DamageClass.Magic;
Item.mana = 30;
Item.useTime = 35;
Item.useAnimation = 35;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
Item.UseSound = SoundID.Item67;
Item.autoReuse = true;
Item.useAnimation = Item.useTime = 35;
Item.knockBack = 0.25f;
Item.shoot = ProjectileID.RainbowFront;
Item.shootSpeed = 18f;
Item.UseSound = SoundID.Item67;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
+8 -7
View File
@@ -24,19 +24,20 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 60;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useTime = 10;
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.useAnimation = Item.useTime = 10;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<DarkSparkPrism>();
Item.shootSpeed = 30f;
Item.UseSound = SoundID.Item13;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.channel = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
Item.rare = ModContent.RarityType<PureGreen>();
Item.Calamity().donorItem = true;
Item.shoot = ModContent.ProjectileType<DarkSparkPrism>();
Item.shootSpeed = 30f;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
+8 -8
View File
@@ -28,20 +28,20 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = BaseDamage;
Item.DamageType = DamageClass.Magic;
Item.mana = 30;
Item.useTime = Item.useAnimation = 120;
Item.useAnimation = Item.useTime = 120;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<EternityBook>();
Item.shootSpeed = 0f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.channel = true;
Item.noMelee = true;
Item.knockBack = 0f;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
Item.autoReuse = true;
Item.noUseGraphic = true;
Item.shoot = ModContent.ProjectileType<EternityBook>();
Item.channel = true;
Item.shootSpeed = 0f;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void ModifyTooltips(List<TooltipLine> list)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.DamageType = DamageClass.Magic;
Item.mana = 12;
Item.useTime = Item.useAnimation = 32;
Item.useAnimation = Item.useTime = 32;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 65;
Item.DamageType = DamageClass.Magic;
Item.mana = 20;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useAnimation = Item.useTime = 5;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.height = 58;
Item.damage = 120;
Item.knockBack = 10f;
Item.useTime = Item.useAnimation = 30;
Item.useAnimation = Item.useTime = 30;
Item.mana = 20;
Item.DamageType = DamageClass.Magic;
Item.channel = true;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 5000;
Item.knockBack = 9.5f;
Item.mana = 80;
Item.useTime = Item.useAnimation = AftershotCooldownFrames;
Item.useAnimation = Item.useTime = AftershotCooldownFrames;
Item.autoReuse = true;
Item.noMelee = true;
Item.channel = true;
+10 -10
View File
@@ -23,20 +23,20 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 960;
Item.DamageType = DamageClass.Magic;
Item.mana = 15;
Item.useTime = Item.useAnimation = 120;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.useAnimation = Item.useTime = 120;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<HeresyProj>();
Item.shootSpeed = 0f;
Item.UseSound = SoundID.DD2_EtherianPortalDryadTouch;
Item.knockBack = 0f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.autoReuse = true;
Item.channel = true;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.autoReuse = true;
Item.noUseGraphic = true;
Item.shoot = ModContent.ProjectileType<HeresyProj>();
Item.channel = true;
Item.shootSpeed = 0f;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 2250;
Item.knockBack = 6f;
Item.useTime = Item.useAnimation = 300;
Item.useAnimation = Item.useTime = 300;
Item.reuseDelay = 60;
Item.useLimitPerAnimation = 1;
Item.shoot = ModContent.ProjectileType<IceBarrageMain>();
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 111;
Item.DamageType = DamageClass.Magic;
Item.mana = 6;
Item.useTime = Item.useAnimation = 4;
Item.useAnimation = Item.useTime = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 40;
Item.DamageType = DamageClass.Magic;
Item.mana = 16;
Item.useTime = Item.useAnimation = 27;
Item.useAnimation = Item.useTime = 27;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 60;
Item.DamageType = DamageClass.Magic;
Item.mana = 8;
Item.useTime = Item.useAnimation = UseTime;
Item.useAnimation = Item.useTime = UseTime;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.noUseGraphic = true;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 82;
Item.DamageType = DamageClass.Magic;
Item.mana = 8;
Item.useTime = Item.useAnimation = 4;
Item.useAnimation = Item.useTime = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 12;
Item.knockBack = 3f;
Item.mana = 10;
Item.useTime = Item.useAnimation = 35;
Item.useAnimation = Item.useTime = 35;
Item.autoReuse = true;
Item.DamageType = DamageClass.Magic;
Item.shootSpeed = 10f;
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.damage = 150;
Item.mana = 40;
Item.DamageType = DamageClass.Magic;
Item.useTime = Item.useAnimation = 8;
Item.useAnimation = Item.useTime = 8;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 4f;
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.DamageType = DamageClass.Magic;
Item.mana = 25;
Item.crit += 4;
Item.useTime = Item.useAnimation = 24;
Item.useAnimation = Item.useTime = 24;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3.5f;
Loaded 100 of 401 files, more files were not shown because too many files have changed in this diff. Show more