This commit is contained in:
mountaindrew10 committed 2024-02-12 10:31:03 -06:00
commit fa0ebdfa11
180 files changed
+2564 -870

No files matched your search

+7 -7
View File
@@ -118,8 +118,8 @@ namespace CalamityMod.Balancing
#endregion
#region Wall of Flesh
// 45% resist to Corro/Crimslime Staff.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.WallofFleshEye, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<CrimslimeMinion>(), ProjectileType<CorroslimeMinion>()))));
// 40% resist to Corro/Crimslime Staff.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.WallofFleshEye, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CrimslimeMinion>(), ProjectileType<CorroslimeMinion>()))));
#endregion
#region Aquatic Scourge
@@ -201,6 +201,9 @@ namespace CalamityMod.Balancing
#endregion
#region Empress of Light
// 25% resist to Abyss Blade's blade.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.HallowBoss, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<AbyssBladeProjectile>()))));
// 20% resist to Plague Tainted SMG's drones.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.HallowBoss, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<PlagueTaintedDrone>()))));
#endregion
@@ -235,16 +238,13 @@ namespace CalamityMod.Balancing
// 50% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AstrumDeusIDs, Do(ResistTrueMelee(0.5f))));
// 25% resist to Resurrection Butterfly.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AstrumDeusIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
// 20% resist to Resurrection Butterfly.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AstrumDeusIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
#endregion
#region Moon Lord
// 20% resist to Mercurial Tides (True Biome Blade).
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<MercurialTides>(), ProjectileType<MercurialTidesMonolith>(), ProjectileType<MercurialTidesBlast>()))));
// 15% resist to Pestilent Defiler.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<SicknessRound>(), ProjectileType<Sickness>()))));
#endregion
#region Profaned Guardians
+3 -2
View File
@@ -1,4 +1,4 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -20,7 +20,8 @@ namespace CalamityMod.Buffs.StatBuffs
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.abyssalDivingSuitPrevious)
{
player.gills = true;
if (player.IsUnderwater())
player.gills = true;
modPlayer.abyssalDivingSuitPower = true;
modPlayer.depthCharm = true;
modPlayer.jellyfishNecklace = true;
-21
View File
@@ -1,21 +0,0 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class PolarisBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().polarisBoost = true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

+1 -12
View File
@@ -203,7 +203,6 @@ namespace CalamityMod.CalPlayer
public int brimLoreInfernoTimer = 0;
public int tarraLifeAuraTimer = 0;
public int bloodflareHeartTimer = 300;
public int polarisBoostCounter = 0;
public int dragonRageHits = 0;
public int dragonRageCooldown = 0;
public float modStealth = 1f;
@@ -967,9 +966,6 @@ namespace CalamityMod.CalPlayer
public bool yellowCandle = false;
public bool trippy = false;
public bool amidiasBlessing = false;
public bool polarisBoost = false;
public bool polarisBoostTwo = false;
public bool polarisBoostThree = false;
public bool bloodfinBoost = false;
public int bloodfinTimer = 30;
public bool hallowedRegen = false;
@@ -1971,9 +1967,6 @@ namespace CalamityMod.CalPlayer
AbsorberRegen = false;
cFreeze = false;
tRegen = false;
polarisBoost = false;
polarisBoostTwo = false;
polarisBoostThree = false;
bloodfinBoost = false;
divineBless = false;
@@ -2291,7 +2284,6 @@ namespace CalamityMod.CalPlayer
hideOfDeusMeleeBoostTimer = 0;
externalAbyssLight = 0;
externalColdImmunity = externalHeatImmunity = false;
polarisBoostCounter = 0;
dragonRageHits = 0;
dragonRageCooldown = 0;
spectralVeilImmunity = 0;
@@ -2460,9 +2452,6 @@ namespace CalamityMod.CalPlayer
yellowCandle = false;
trippy = false;
amidiasBlessing = false;
polarisBoost = false;
polarisBoostTwo = false;
polarisBoostThree = false;
bloodfinBoost = false;
bloodfinTimer = 0;
healCounter = 300;
@@ -4016,7 +4005,7 @@ namespace CalamityMod.CalPlayer
}
// Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all
if (item.type == ModContent.ItemType<FinalDawn>())
if (item.type == ModContent.ItemType<TheFinalDawn>())
Main.projectile[p].ai[1] = 1f; //MUST BE 1 OTHERWISE CLONES GENERATE STEALTH AAAAAAAAAAA
if (item.type == ModContent.ItemType<TheAtomSplitter>())
Main.projectile[p].ai[0] = -1f;
+28 -19
View File
@@ -190,10 +190,14 @@ namespace CalamityMod.CalPlayer
if (Main.rand.NextBool(chanceForBiomeCrate))
{
if (ZoneCalamity)
itemDrop = ModContent.ItemType<BrimstoneCrate>();
itemDrop = Main.hardMode ? ModContent.ItemType<BrimstoneCrate>() : ModContent.ItemType<SlagCrate>();
else
itemDrop = Main.hardMode ? ItemID.LavaCrateHard : ItemID.LavaCrate;
}
if ((Main.rand.NextBool(chanceForRareItems) && enchantedPearl && fishingStation && Player.cratePotion) && ZoneCalamity)
{
itemDrop = ModContent.ItemType<DragoonDrizzlefish>();
}
}
}
@@ -234,7 +238,7 @@ namespace CalamityMod.CalPlayer
}
if (ZoneSunkenSea)
{
switch (Main.rand.Next(2))
switch (Main.rand.Next(3))
{
case 0:
rareItemList.Add(ModContent.ItemType<SerpentsBite>());
@@ -242,6 +246,9 @@ namespace CalamityMod.CalPlayer
case 1:
rareItemList.Add(ModContent.ItemType<RustedJingleBell>());
break;
case 2:
rareItemList.Add(ModContent.ItemType<SparklingEmpress>());
break;
}
}
if (Player.ZoneSnow && Player.ZoneRockLayerHeight && (Player.ZoneCorrupt || Player.ZoneCrimson || Player.ZoneHallow))
@@ -267,9 +274,9 @@ namespace CalamityMod.CalPlayer
{
List<int> biomeCrateList = new List<int>();
biomeCrateList.AddWithCondition<int>(ModContent.ItemType<AstralCrate>(), ZoneAstral);
biomeCrateList.AddWithCondition<int>(ModContent.ItemType<SunkenCrate>(), ZoneSunkenSea);
biomeCrateList.AddWithCondition<int>(ModContent.ItemType<SulphurousCrate>(), canSulphurFish);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ModContent.ItemType<AstralCrate>() : ModContent.ItemType<MonolithCrate>(), ZoneAstral);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ModContent.ItemType<PrismCrate>() : ModContent.ItemType<EutrophicCrate>(), ZoneSunkenSea);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ModContent.ItemType<HydrothermalCrate>() : ModContent.ItemType<SulphurousCrate>(), canSulphurFish);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ItemID.CorruptFishingCrateHard : ItemID.CorruptFishingCrate, Player.ZoneCorrupt);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ItemID.CrimsonFishingCrateHard : ItemID.CrimsonFishingCrate, Player.ZoneCrimson);
biomeCrateList.AddWithCondition<int>(Main.hardMode ? ItemID.HallowedFishingCrateHard : ItemID.HallowedFishingCrate, Player.ZoneHallow);
@@ -309,15 +316,15 @@ namespace CalamityMod.CalPlayer
{
if (ZoneAstral)
{
itemDrop = ModContent.ItemType<AstralCrate>();
itemDrop = Main.hardMode ? ModContent.ItemType<AstralCrate>() : ModContent.ItemType<MonolithCrate>();
}
if (ZoneSunkenSea)
{
itemDrop = ModContent.ItemType<SunkenCrate>();
itemDrop = Main.hardMode ? ModContent.ItemType<PrismCrate>() : ModContent.ItemType<EutrophicCrate>();
}
if (canSulphurFish)
{
itemDrop = ModContent.ItemType<SulphurousCrate>();
itemDrop = Main.hardMode ? ModContent.ItemType<HydrothermalCrate>() : ModContent.ItemType<SulphurousCrate>();
}
}
return;
@@ -484,14 +491,17 @@ namespace CalamityMod.CalPlayer
{
List<int> legendaryCatches = new List<int>()
{
ModContent.ItemType<RustedJingleBell>(),
ModContent.ItemType<GreenwaveLoach>()
ModContent.ItemType<RustedJingleBell>()
};
legendaryCatches.AddWithCondition<int>(ModContent.ItemType<SparklingEmpress>(), DownedBossSystem.downedDesertScourge);
legendaryCatches.AddWithCondition<int>(ModContent.ItemType<SerpentsBite>(), Main.hardMode);
itemDrop = legendaryCatches[Main.rand.Next(legendaryCatches.Count)];
}
else if (attempt.uncommon || attempt.rare || attempt.veryrare)
else if (attempt.veryrare)
{
itemDrop = ModContent.ItemType<GreenwaveLoach>();
}
else if (attempt.uncommon || attempt.rare)
{
itemDrop = ModContent.ItemType<SunkenSailfish>();
}
@@ -546,27 +556,26 @@ namespace CalamityMod.CalPlayer
{
if (attempt.crate)
{
itemDrop = ModContent.ItemType<BrimstoneCrate>();
itemDrop = Main.hardMode? ModContent.ItemType<BrimstoneCrate>() : ModContent.ItemType<SlagCrate>();
}
else if (attempt.legendary)
{
List<int> legendaryCatches = new List<int>()
{
ModContent.ItemType<CharredLasher>(),
ModContent.ItemType<DragoonDrizzlefish>()
};
itemDrop = legendaryCatches[Main.rand.Next(legendaryCatches.Count)];
itemDrop = ModContent.ItemType<DragoonDrizzlefish>();
}
// Increased chance of Dragoon Drizzlefish in Prehardmode
else if (attempt.veryrare && !Main.hardMode)
{
itemDrop = ModContent.ItemType<DragoonDrizzlefish>();
}
else if (attempt.veryrare)
{
itemDrop = ModContent.ItemType<CharredLasher>();
}
else if ((attempt.rare || attempt.veryrare) && DownedBossSystem.downedProvidence && Main.rand.Next(3) >= 2)
{
itemDrop = ModContent.ItemType<Bloodfin>();
}
else if (attempt.uncommon || attempt.rare || attempt.veryrare)
else if (attempt.uncommon || attempt.rare)
{
List<int> uncommonCatches = new List<int>()
{
-23
View File
@@ -2264,29 +2264,6 @@ namespace CalamityMod.CalPlayer
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<TheAmalgam>()));
Projectile.NewProjectile(source, Player.Center.X + Main.rand.Next(-40, 40), Player.Center.Y - Main.rand.Next(20, 60), Player.velocity.X * 0.3f, Player.velocity.Y * 0.3f, ProjectileID.BrainOfConfusion, 0, 0f, Player.whoAmI);
}
if (polarisBoost)
{
polarisBoostCounter -= 10;
if (polarisBoostCounter < 0)
polarisBoostCounter = 0;
if (polarisBoostCounter >= 20)
{
polarisBoostTwo = false;
polarisBoostThree = true;
}
else if (polarisBoostCounter >= 10)
{
polarisBoostTwo = true;
polarisBoostThree = false;
}
else
{
polarisBoostThree = false;
polarisBoostTwo = false;
}
}
}
if (Player.ownedProjectileCounts[ModContent.ProjectileType<DrataliornusBow>()] != 0)
-6
View File
@@ -666,12 +666,6 @@ namespace CalamityMod.CalPlayer
}
}
if (polarisBoost)
{
Player.lifeRegen += 1;
Player.lifeRegenTime += 1;
}
if (evolutionLifeRegenCounter > 0)
{
Player.lifeRegenTime += 2;
+1 -23
View File
@@ -1844,25 +1844,6 @@ namespace CalamityMod.CalPlayer
Player.GetCritChance<RangedDamageClass>() -= (int)((1f - Player.stealth) * 5f); // Change 20 to 15
}
// Polaris fish stuff
if (!polarisBoost || Player.ActiveItem().type != ModContent.ItemType<PolarisParrotfish>())
{
polarisBoost = false;
if (Player.FindBuffIndex(ModContent.BuffType<PolarisBuff>()) > -1)
Player.ClearBuff(ModContent.BuffType<PolarisBuff>());
polarisBoostCounter = 0;
polarisBoostTwo = false;
polarisBoostThree = false;
}
if (polarisBoostCounter >= 20)
{
polarisBoostTwo = false;
polarisBoostThree = true;
}
else if (polarisBoostCounter >= 10)
polarisBoostTwo = true;
// Haste buff
if (hasteLevel > 0)
{
@@ -2499,7 +2480,7 @@ namespace CalamityMod.CalPlayer
if (decayEffigy)
{
Player.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = true;
if (!ZoneAbyss)
if (!ZoneAbyss && Player.IsUnderwater())
{
Player.gills = true;
}
@@ -2778,9 +2759,6 @@ namespace CalamityMod.CalPlayer
}
}
if (CalamityLists.scopedWeaponList.Contains(Player.ActiveItem().type))
Player.scope = true;
if (CalamityLists.highTestFishList.Contains(Player.ActiveItem().type))
Player.accFishingLine = true;
-8
View File
@@ -128,10 +128,6 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffID.OnFire3, 180);
break;
case ItemID.Muramasa:
target.AddBuff(BuffType<Nightwither>(), 30);
break;
case ItemID.IceSickle:
case ItemID.Frostbrand:
target.AddBuff(BuffID.Frostburn2, 300);
@@ -555,10 +551,6 @@ namespace CalamityMod.CalPlayer
}
}
}
if (proj.type == ProjectileType<PolarStar>())
{
polarisBoostCounter += 1;
}
}
}
#endregion
+2 -12
View File
@@ -1588,17 +1588,7 @@ namespace CalamityMod
NPCType<SuperDummyNPC>()
};
// TODO -- override HoldItem => Player.scope = true; on these items
scopedWeaponList = new List<int>()
{
ItemType<AntiMaterielRifle>(),
ItemType<Auralis>(),
ItemType<HalleysInferno>(),
ItemType<Shroomer>(),
ItemType<Svantechnical>(),
ItemType<TyrannysEnd>()
};
// TODO -- override HoldItem => Player.accFishingLine = true; on these items, just like the scope fix...
highTestFishList = new List<int>()
{
ItemID.GoldenFishingRod,
@@ -2098,7 +2088,7 @@ namespace CalamityMod
{
ProjectileID.Arkhalis,
ProjectileID.ChargedBlasterLaser,
ProjectileID.ClingerStaff,
ProjectileID.ClingerStaff,
ProjectileID.FinalFractal,
ProjectileID.FlyingKnife,
ProjectileID.LastPrismLaser,
+4 -1
View File
@@ -131,6 +131,7 @@ namespace CalamityMod
// Please keep this in alphabetical order so it's easy to read
internal Mod ancientsAwakened = null;
internal Mod bossChecklist = null;
internal Mod coloredDamageTypes = null;
internal Mod crouchMod = null;
internal Mod dialogueTweak = null;
internal Mod fargos = null;
@@ -161,6 +162,8 @@ namespace CalamityMod
ModLoader.TryGetMod("AAMod", out ancientsAwakened);
bossChecklist = null;
ModLoader.TryGetMod("BossChecklist", out bossChecklist);
coloredDamageTypes = null;
ModLoader.TryGetMod("ColoredDamageTypes", out coloredDamageTypes);
crouchMod = null;
ModLoader.TryGetMod("CrouchMod", out crouchMod);
dialogueTweak = null;
@@ -383,7 +386,6 @@ namespace CalamityMod
return Color.Lerp(player.hairColor, new Color(186, 85, 211), stealthInterpolant);
}));
PopupGUIManager.LoadGUIs();
InvasionProgressUIManager.LoadGUIs();
}
#endregion
@@ -395,6 +397,7 @@ namespace CalamityMod
ancientsAwakened = null;
bossChecklist = null;
coloredDamageTypes = null;
crouchMod = null;
dialogueTweak = null;
fargos = null;
+16 -16
View File
@@ -23,9 +23,6 @@ namespace CalamityMod.Cooldowns
registry = new Cooldown[defaultSize];
nameToNetID = new Dictionary<string, ushort>(defaultSize);
// TODO -- CooldownHandlers should be ILoadable in 1.4
RegisterModCooldowns(CalamityMod.Instance);
#region Unused manual registration left here as backup
// Vanilla cooldowns represented by the interface
//var potionSickness = Register<PotionSickness>(PotionSickness.ID);
@@ -63,26 +60,29 @@ namespace CalamityMod.Cooldowns
#endregion
}
public static void RegisterModCooldowns(Mod mod)
public static void RegisterModCooldowns()
{
Type baseHandlerType = typeof(CooldownHandler);
foreach (Type type in AssemblyManager.GetLoadableTypes(mod.Code))
foreach (Mod mod in ModLoader.Mods)
{
if (type.IsSubclassOf(baseHandlerType) && !type.IsAbstract && type != baseHandlerType)
foreach (Type type in AssemblyManager.GetLoadableTypes(mod.Code))
{
//Get the static property ID of the handler
string handlerID = (string)type.GetProperty("ID").GetValue(null);
if (type.IsSubclassOf(baseHandlerType) && !type.IsAbstract && type != baseHandlerType)
{
//Get the static property ID of the handler
string handlerID = (string)type.GetProperty("ID").GetValue(null);
//If for whatever reason the ID is not set, create an ID from the mod and handler name
if (handlerID == null)
handlerID = mod.Name + "_" + type.Name;
//If for whatever reason the ID is not set, create an ID from the mod and handler name
if (handlerID == null)
handlerID = mod.Name + "_" + type.Name;
//Use reflection to call the method. You can't use the type as the generic type argument of register here
MethodInfo methodInfo = typeof(CooldownRegistry).GetMethod("Register", BindingFlags.Public | BindingFlags.Static);
Type[] genericArguments = new Type[] { type };
//Use reflection to call the method. You can't use the type as the generic type argument of register here
MethodInfo methodInfo = typeof(CooldownRegistry).GetMethod("Register", BindingFlags.Public | BindingFlags.Static);
Type[] genericArguments = new Type[] { type };
MethodInfo genericRegister = methodInfo.MakeGenericMethod(genericArguments);
genericRegister.Invoke(null, new object[] { handlerID });
MethodInfo genericRegister = methodInfo.MakeGenericMethod(genericArguments);
genericRegister.Invoke(null, new object[] { handlerID });
}
}
}
}
+9 -2
View File
@@ -8,6 +8,8 @@ using Terraria.ModLoader;
using Terraria.Audio;
using CalamityMod.Items.Armor.GemTech;
using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Items.Accessories;
using CalamityMod.CalPlayer;
namespace CalamityMod.DataStructures
{
@@ -207,12 +209,17 @@ namespace CalamityMod.DataStructures
public void PlayerOnHitEffects(int hitDamage)
{
// Don't do anything if the player is not wearing the Gem Tech set.
if (!Owner.Calamity().GemTechSet)
var cgp = Owner.Calamity();
if (!cgp.GemTechSet)
return;
bool gemWasLost = false;
int gemDamage = 0;
if (hitDamage >= GemTechHeadgear.GemBreakDamageLowerBound)
bool largeEnoughRegularHit = hitDamage >= GemTechHeadgear.GemBreakDamageLowerBound;
// 09FEB2024: Ozzatron: chalice of the blood god no longer protects you when using gem tech armor.
// It is now slightly anti-synergetic, in that taking tiny hits when you're already bleeding will make you keep losing gems.
bool largeEnoughChaliceHit = cgp.chaliceOfTheBloodGod && hitDamage == ChaliceOfTheBloodGod.MinAllowedDamage && cgp.chaliceBleedoutBuffer >= GemTechHeadgear.GemBreakDamageLowerBound;
if (largeEnoughRegularHit || largeEnoughChaliceHit)
{
// Destroy the rogue gem.
if (GemIsActive(GemTechArmorGemType.Rogue) && GemThatShouldBeLost == GemTechArmorGemType.Rogue)
+2 -1
View File
@@ -26,7 +26,8 @@ namespace CalamityMod.Items.Accessories
player.npcTypeNoAggro[NPCID.PinkJellyfish] = true;
player.npcTypeNoAggro[NPCID.Crab] = true;
player.npcTypeNoAggro[NPCID.Squid] = true;
player.gills = true;
if (player.IsUnderwater())
player.gills = true;
}
}
}
+1 -1
View File
@@ -87,7 +87,7 @@ namespace CalamityMod.Items.Accessories
// If this reduces the player's health to zero, make sure they actually die.
if (player.statLife <= 0)
{
player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ChaliceOfTheBloodGod" + Main.rand.Next(1, 4 + 1)).Format(player.name)), modPlayer.chaliceBleedoutBuffer, 0, false);
player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ChaliceOfTheBloodGod" + Main.rand.Next(1, 18 + 1)).Format(player.name)), modPlayer.chaliceBleedoutBuffer, 0, false);
}
}
+2 -1
View File
@@ -42,7 +42,8 @@ namespace CalamityMod.Items.Armor.Sulphurous
{
player.GetDamage<ThrowingDamageClass>() += 0.04f;
player.GetCritChance<ThrowingDamageClass>() += 2;
player.gills = true;
if (player.IsUnderwater())
player.gills = true;
}
public override void AddRecipes()
+47 -5
View File
@@ -511,14 +511,14 @@ namespace CalamityMod.Items
}
}
}
if (modPlayer.harpyWingBoost && modPlayer.harpyRing)
if (modPlayer.harpyWingBoost && (modPlayer.harpyRing || modPlayer.angelTreads))
{
if (Main.rand.NextBool(5) && !item.channel)
{
if (player.whoAmI == Main.myPlayer)
{
float spreadX = velocity.X + Main.rand.NextFloat(-0.75f, 0.75f);
float spreadY = velocity.X + Main.rand.NextFloat(-0.75f, 0.75f);
float spreadY = velocity.Y + Main.rand.NextFloat(-0.75f, 0.75f);
int feather = Projectile.NewProjectile(source, position, new Vector2(spreadX, spreadY) * 1.25f, ModContent.ProjectileType<TradewindsProjectile>(), (int)(damage * 0.3), 2f, player.whoAmI);
if (feather.WithinBounds(Main.maxProjectiles))
{
@@ -935,6 +935,10 @@ namespace CalamityMod.Items
if (!string.IsNullOrEmpty(managedArmorSetName))
return managedArmorSetName;
if (head.type == ItemID.WizardHat && (body.type == ItemID.AmethystRobe || body.type == ItemID.TopazRobe || body.type == ItemID.SapphireRobe || body.type == ItemID.EmeraldRobe || body.type == ItemID.RubyRobe || body.type == ItemID.DiamondRobe || body.type == ItemID.AmberRobe))
return "WizardHat";
if (head.type == ItemID.MagicHat && (body.type == ItemID.AmethystRobe || body.type == ItemID.TopazRobe || body.type == ItemID.SapphireRobe || body.type == ItemID.EmeraldRobe || body.type == ItemID.RubyRobe || body.type == ItemID.DiamondRobe || body.type == ItemID.AmberRobe))
return "MagicHat";
if (head.type == ItemID.CrystalNinjaHelmet && body.type == ItemID.CrystalNinjaChestplate && legs.type == ItemID.CrystalNinjaLeggings)
return "CrystalAssassin";
if (head.type == ItemID.SquireGreatHelm && body.type == ItemID.SquirePlating && legs.type == ItemID.SquireGreaves)
@@ -964,6 +968,16 @@ namespace CalamityMod.Items
VanillaArmorChangeManager.CreateTooltipManuallyAsNecessary(player);
VanillaArmorChangeManager.ApplyPotentialEffectsTo(player);
if (set == "WizardHat")
{
player.GetCritChance<MagicDamageClass>() -= 6;
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.Wizard");
}
if (set == "MagicHat")
{
player.statManaMax2 -= 20;
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.MagicHat");
}
if (set == "CrystalAssassin")
{
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.CrystalAssassin");
@@ -1034,8 +1048,35 @@ namespace CalamityMod.Items
switch (item.type)
{
case ItemID.MagicHat:
player.GetDamage<MagicDamageClass>() -= 0.01f;
player.GetCritChance<MagicDamageClass>() -= 1;
player.GetDamage<MagicDamageClass>() -= 0.06f;
break;
case ItemID.AmethystRobe:
player.manaCost += 0.01f; // 5% to 4%
break;
case ItemID.TopazRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.02f ; // 7% to 5%
break;
case ItemID.SapphireRobe:
player.manaCost += 0.03f; // 9% to 6%
break;
case ItemID.EmeraldRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.04f; // 11% to 7%
break;
case ItemID.RubyRobe:
case ItemID.AmberRobe:
player.manaCost += 0.05f; // 13% to 8%
break;
case ItemID.DiamondRobe:
player.statManaMax2 -= 20;
player.manaCost += 0.06f; // 15% to 9%
break;
case ItemID.Gi:
@@ -1256,7 +1297,8 @@ namespace CalamityMod.Items
}
else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
{
player.gills = true;
if (player.IsUnderwater())
player.gills = true;
player.ignoreWater = true;
player.noFallDmg = true;
if (!player.mount.Active)
+30 -14
View File
@@ -464,7 +464,6 @@ namespace CalamityMod.Items
// Stylish Scissors, all Phaseblades, and all Phasesabers ignore 100% of defense
if (item.type == ItemID.StylistKilLaKillScissorsIWish || (item.type >= ItemID.BluePhasesaber && item.type <= ItemID.YellowPhasesaber) || item.type == ItemID.OrangePhasesaber)
EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 100% of enemy defense");
// Phaseblades are done separately to ensure it appears under the Material line
if (item.type >= ItemID.BluePhaseblade && item.type <= ItemID.YellowPhaseblade || item.type == ItemID.OrangePhaseblade)
EditTooltipByName("Material", (line) => line.Text += "\nIgnores 100% of enemy defense");
@@ -472,15 +471,10 @@ namespace CalamityMod.Items
// Bone Sword, Breaker Blade, and Mandible Blade ignore 50% of defense
if (item.type == ItemID.BoneSword || item.type == ItemID.BreakerBlade)
EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 50% of enemy defense");
// Mandible Blade is done separately to ensure it appears under the Material line
if (item.type == ItemID.AntlionClaw)
EditTooltipByName("Material", (line) => line.Text += "\nIgnores 50% of enemy defense");
// Muramasa inflicts Nightwither
if (item.type == ItemID.Muramasa)
EditTooltipByName("Material", (line) => line.Text += "\nInflicts Nightwither on hit");
// Death Sickle inflict Whispering Death
if (item.type == ItemID.DeathSickle)
EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit");
@@ -670,7 +664,30 @@ namespace CalamityMod.Items
// Magic Hat nerf
if (item.type == ItemID.MagicHat)
EditTooltipByNum(0, (line) => line.Text = "5% increased magic damage and critical strike chance");
EditTooltipByNum(0, (line) => line.Text = "6% increased magic critical strike chance");
// Gem Robe nerfs
if (item.type == ItemID.AmethystRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("5%", "4%"));
if (item.type == ItemID.TopazRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("40", "20"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("7%", "5%"));
}
if (item.type == ItemID.SapphireRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("9%", "6%"));
if (item.type == ItemID.EmeraldRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("60", "40"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("11%", "7%"));
}
if (item.type == ItemID.RubyRobe || item.type == ItemID.AmberRobe)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("13%", "8%"));
if (item.type == ItemID.DiamondRobe)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("80", "60"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("15%", "9%"));
}
// Worm Scarf only gives 10% DR instead of 17%
if (item.type == ItemID.WormScarf)
@@ -696,10 +713,9 @@ namespace CalamityMod.Items
if (item.type == ItemID.MechanicalGlove)
{
string extraLine = "\n12% increased melee speed, does not stack with downgrades";
EditTooltipByNum(1, (line) => line.Text = "12% increased melee damage" + extraLine);
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12% increased melee speed", "12% increased melee speed, does not stack with downgrades"));
EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage");
string extraLine = "\n10% increased true melee damage";
string extraLine2 = "\n12% increased melee speed, does not stack with downgrades" + extraLine;
EditTooltipByNum(1, (line) => line.Text = "12% increased melee damage" + extraLine2);
}
if (item.type == ItemID.FireGauntlet)
@@ -800,9 +816,9 @@ namespace CalamityMod.Items
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6%", "2%"));
}
if (item.type == ItemID.JungleShirt || item.type == ItemID.AncientCobaltBreastplate)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6%", "4%"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6%", "5%"));
if (item.type == ItemID.JunglePants || item.type == ItemID.AncientCobaltLeggings)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6%", "2%"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6%", "3%"));
// Shadow
if (item.type == ItemID.ShadowHelmet || item.type == ItemID.AncientShadowHelmet || item.type == ItemID.ShadowScalemail || item.type == ItemID.AncientShadowScalemail || item.type == ItemID.ShadowGreaves || item.type == ItemID.AncientShadowGreaves)
@@ -812,7 +828,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.CrimsonHelmet || item.type == ItemID.CrimsonScalemail || item.type == ItemID.CrimsonGreaves)
{
EditTooltipByNum(0, (line) => {
string newTooltip = line.Text.Replace("2%", "5%");
string newTooltip = line.Text.Replace("3%", "5%");
newTooltip += "\n+0.5 HP/s life regen";
line.Text = newTooltip;
});
+5 -5
View File
@@ -60,6 +60,7 @@ namespace CalamityMod.Items
{ ItemID.CandyCornRifle, Do(PointBlank, DamageExact(66)) },
{ ItemID.Cascade, Do(AutoReuse, DamageExact(30)) },
{ ItemID.ChainGuillotines, Do(DamageExact(100)) },
{ ItemID.ChainGun, Do(PointBlank, DamageExact(35)) },
{ ItemID.ChainKnife, Do(AutoReuse, DamageRatio(1.34f)) }, // Uses ratios due to remix seed
// Charged Blaster Cannon is now an earlier Last Prism-like, so it will probably need careful balance attention.
// { ItemID.ChargedBlasterCannon, Do(DamageRatio(1.33f)) },
@@ -133,7 +134,7 @@ namespace CalamityMod.Items
{ ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) },
{ ItemID.IceRod, Do(UseExact(6), DamageExact(30), ShootSpeedExact(20)) },
{ ItemID.IceSickle, Do(AutoReuse, UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) },
{ ItemID.IchorArrow, Do(DamageExact(14)) },
{ ItemID.IchorArrow, Do(DamageExact(11)) },
{ ItemID.ImpStaff, Do(AutoReuse, UseExact(30), DamageExact(25)) },
{ ItemID.InfernoFork, Do(DamageRatio(1.2f)) },
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) },
@@ -155,12 +156,14 @@ namespace CalamityMod.Items
{ ItemID.MedusaHead, Do(ManaExact(6), DamageRatio(1.2f)) },
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)/*, DamageRatio(1.33f) */) },
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) },
{ ItemID.MiniNukeI, Do(DamageExact(90)) },
{ ItemID.MiniNukeII, Do(DamageExact(90)) },
{ ItemID.Minishark, Do(PointBlank, DamageExact(4)) },
{ ItemID.MoltenFury, Do(PointBlank, UseExact(29), AutoReuse) },
{ 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.Muramasa, Do(CritDelta(+10)) },
{ ItemID.Muramasa, Do(CritDelta(+20)) },
{ ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) },
{ ItemID.Musket, Do(PointBlank, DamageExact(22)) },
{ ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) },
@@ -204,8 +207,6 @@ namespace CalamityMod.Items
{ ItemID.RedPhasesaber, Do(ScaleRatio(1.5f), DamageExact(60)) },
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
{ ItemID.RedsYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's throw and valkyrie's yoyo are the same weapon
{ ItemID.RocketIII, Do(DamageRatio(0.75f)) },
{ ItemID.RocketIV, Do(DamageRatio(0.75f)) },
{ ItemID.Sandgun, Do(PointBlank, DamageExact(22), UseExact(20)) },
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
{ ItemID.SDMG, Do(PointBlank, DamageExact(80)) },
@@ -434,7 +435,6 @@ namespace CalamityMod.Items
#region CATEGORY 5: Point Blank support
{ ItemID.Blowpipe, pointBlank },
{ ItemID.BorealWoodBow, pointBlank },
{ ItemID.ChainGun, pointBlank },
{ ItemID.ChlorophyteShotbow, pointBlank },
{ ItemID.CopperBow, pointBlank },
{ ItemID.DartPistol, pointBlank },
@@ -24,6 +24,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
ItemID.Sets.IsFishingCrateHardmode[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<MonolithCrate>();
}
public override void SetDefaults()
@@ -0,0 +1,65 @@
using CalamityMod.Items.Critters;
using CalamityMod.Tiles.Astral;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.AstralCatches
{
public class MonolithCrate : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.maxStack = 9999;
Item.consumable = true;
Item.rare = ItemRarityID.Green;
Item.value = Item.sellPrice(gold: 1);
Item.createTile = ModContent.TileType<MonolithCrateTile>();
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
// Materials
itemLoot.Add(ItemID.FallenStar, 1, 5, 10);
itemLoot.Add(ItemID.Meteorite, 5, 10, 20);
itemLoot.Add(ItemID.MeteoriteBar, 10, 1, 3);
// Pet
itemLoot.Add(ModContent.ItemType<AstrophageItem>(), 10);
// Bait
itemLoot.Add(ModContent.ItemType<TwinklerItem>(), 5, 1, 3);
itemLoot.Add(ItemID.EnchantedNightcrawler, 5, 1, 3);
itemLoot.Add(ModContent.ItemType<ArcturusAstroidean>(), 5, 1, 3);
itemLoot.Add(ItemID.Firefly, 3, 1, 3);
// Potions
itemLoot.AddCratePotionRules(false);
// Money
itemLoot.Add(ItemID.SilverCoin, 1, 10, 90);
itemLoot.Add(ItemID.GoldCoin, 2, 1, 5);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

@@ -14,6 +14,8 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
ItemID.Sets.IsFishingCrateHardmode[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<SlagCrate>();
}
public override void SetDefaults()
@@ -0,0 +1,64 @@
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Crags;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
{
public class SlagCrate : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.maxStack = 9999;
Item.consumable = true;
Item.rare = ItemRarityID.Green;
Item.value = Item.sellPrice(gold: 1);
Item.createTile = ModContent.TileType<SlagCrateTile>();
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
// Materials
itemLoot.Add(ItemID.Obsidian, 1, 2, 5);
itemLoot.Add(ItemID.Hellstone, 4, 2, 5);
itemLoot.Add(ItemID.HellstoneBar, 10, 1, 3);
itemLoot.Add(ModContent.ItemType<DemonicBoneAsh>(), 1, 1, 4);
// Weapons (none)
// Bait
itemLoot.Add(ItemID.MasterBait, 10, 1, 2);
itemLoot.Add(ItemID.JourneymanBait, 5, 1, 3);
itemLoot.Add(ItemID.ApprenticeBait, 3, 2, 3);
// Potions
itemLoot.Add(ItemID.InfernoPotion, 10, 1, 3);
itemLoot.AddCratePotionRules(false);
// Money
itemLoot.Add(ItemID.SilverCoin, 1, 10, 90);
itemLoot.Add(ItemID.GoldCoin, 2, 1, 5);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

@@ -0,0 +1,122 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Tools.ClimateChange;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Tiles.Abyss;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.GameContent.ItemDropRules;
namespace CalamityMod.Items.Fishing.SulphurCatches
{
public class HydrothermalCrate : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
ItemID.Sets.IsFishingCrateHardmode[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<SulphurousCrate>();
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.maxStack = 9999;
Item.consumable = true;
Item.rare = ItemRarityID.Green;
Item.value = Item.sellPrice(gold: 1);
Item.createTile = ModContent.TileType<HydrothermalCrateTile>();
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
// The contents of this crate depend massively on progression, so it uses a large number of LeadingConditionRules.
var tier1AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitasClone);
var scoriaAvailable = itemLoot.DefineConditionalDropSet(() => NPC.downedGolemBoss);
var tier1AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedEoCAcidRain);
var tier2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
var tier3AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedPolterghast && DownedBossSystem.downedBoomerDuke);
// Materials
itemLoot.Add(ModContent.ItemType<Items.Placeables.SulphurousSand>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<Items.Placeables.SulphurousSandstone>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<Items.Placeables.HardenedSulphurousSandstone>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<Acidwood>(), 1, 5, 10);
tier1AcidRain.Add(ModContent.ItemType<SulphuricScale>(), 10, 1, 3);
tier2AcidRain.Add(ModContent.ItemType<CorrodedFossil>(), 10, 1, 3);
tier2AbyssAvailable.Add(ModContent.ItemType<DepthCells>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<Lumenyl>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<Items.Placeables.PlantyMush>(), 5, 2, 5);
scoriaAvailable.Add(ModContent.ItemType<ScoriaOre>(), 5, 16, 28);
scoriaAvailable.Add(ModContent.ItemType<ScoriaBar>(), new Fraction(15, 100), 4, 7);
tier3AcidRain.Add(ModContent.ItemType<ReaperTooth>(), 10, 1, 5);
// Pre-HM Abyss Weapons
tier1AbyssAvailable.Add(new OneFromOptionsDropRule(10, 1,
ModContent.ItemType<BallOFugu>(),
ModContent.ItemType<Archerfish>(),
ModContent.ItemType<BlackAnurian>(),
ModContent.ItemType<HerringStaff>(),
ModContent.ItemType<Lionfish>()
));
// Post-AS Acid Rain Weapons (and Nuclear Rod)
tier2AcidRain.Add(new OneFromOptionsDropRule(10, 1,
ModContent.ItemType<SulphurousGrabber>(),
ModContent.ItemType<FlakToxicannon>(),
ModContent.ItemType<BelchingSaxophone>(),
ModContent.ItemType<SlitheringEels>(),
ModContent.ItemType<SkyfinBombers>(),
ModContent.ItemType<SpentFuelContainer>(),
ModContent.ItemType<NuclearFuelRod>()
));
// Pre-HM Abyss Equipment (and Torrential Tear)
tier1AbyssAvailable.Add(new OneFromOptionsDropRule(4, 1,
ModContent.ItemType<AnechoicPlating>(),
ModContent.ItemType<DepthCharm>(),
ModContent.ItemType<IronBoots>(),
ModContent.ItemType<StrangeOrb>(),
ModContent.ItemType<TorrentialTear>()
));
// Bait
itemLoot.Add(ItemID.MasterBait, 10, 1, 2);
itemLoot.Add(ItemID.JourneymanBait, 5, 1, 3);
itemLoot.Add(ItemID.ApprenticeBait, 3, 2, 3);
// Potions
itemLoot.Add(ModContent.ItemType<AnechoicCoating>(), 10, 1, 3);
itemLoot.AddCratePotionRules();
// Money
itemLoot.Add(ItemID.SilverCoin, 1, 10, 90);
itemLoot.Add(ItemID.GoldCoin, 2, 1, 5);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

@@ -9,7 +9,6 @@ using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.Items.Placeables.Ores;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -53,13 +52,8 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
// The contents of this crate depend massively on progression, so it uses a large number of LeadingConditionRules.
var tier1AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitasClone);
var scoriaAvailable = itemLoot.DefineConditionalDropSet(() => NPC.downedGolemBoss);
var tier1AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedEoCAcidRain);
var tier2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
var tier3AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedPolterghast && DownedBossSystem.downedBoomerDuke);
// Materials
itemLoot.Add(ModContent.ItemType<SulphurousSand>(), 1, 5, 10);
@@ -68,13 +62,6 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
itemLoot.Add(ModContent.ItemType<Acidwood>(), 1, 5, 10);
tier1AcidRain.Add(ModContent.ItemType<SulphuricScale>(), 10, 1, 3);
tier2AcidRain.Add(ModContent.ItemType<CorrodedFossil>(), 10, 1, 3);
tier2AbyssAvailable.Add(ModContent.ItemType<DepthCells>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<Lumenyl>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<PlantyMush>(), 5, 2, 5);
scoriaAvailable.Add(ModContent.ItemType<ScoriaOre>(), 5, 16, 28);
scoriaAvailable.Add(ModContent.ItemType<ScoriaBar>(), new Fraction(15, 100), 4, 7);
tier3AcidRain.Add(ModContent.ItemType<ReaperTooth>(), 10, 1, 5);
// Pre-HM Abyss Weapons
tier1AbyssAvailable.Add(new OneFromOptionsDropRule(10, 1,
@@ -85,17 +72,6 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
ModContent.ItemType<Lionfish>()
));
// Post-AS Acid Rain Weapons (and Nuclear Rod)
tier2AcidRain.Add(new OneFromOptionsDropRule(10, 1,
ModContent.ItemType<SulphurousGrabber>(),
ModContent.ItemType<FlakToxicannon>(),
ModContent.ItemType<BelchingSaxophone>(),
ModContent.ItemType<SlitheringEels>(),
ModContent.ItemType<SkyfinBombers>(),
ModContent.ItemType<SpentFuelContainer>(),
ModContent.ItemType<NuclearFuelRod>()
));
// Pre-HM Abyss Equipment (and Torrential Tear)
tier1AbyssAvailable.Add(new OneFromOptionsDropRule(4, 1,
ModContent.ItemType<AnechoicPlating>(),
@@ -112,7 +88,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
// Potions
itemLoot.Add(ModContent.ItemType<AnechoicCoating>(), 10, 1, 3);
itemLoot.AddCratePotionRules();
itemLoot.AddCratePotionRules(false);
// Money
itemLoot.Add(ItemID.SilverCoin, 1, 10, 90);
@@ -0,0 +1,71 @@
using CalamityMod.Items.Critters;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Summon;
using Terraria;
using Terraria.GameContent.ItemDropRules;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
[LegacyName("SunkenCrate")]
public class EutrophicCrate : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
}
public override void SetDefaults()
{
Item.width = 32;
Item.height = 32;
Item.maxStack = 9999;
Item.consumable = true;
Item.rare = ItemRarityID.Green;
Item.value = Item.sellPrice(gold: 1);
Item.createTile = ModContent.TileType<Tiles.SunkenSea.EutrophicCrateTile>();
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
var postDesertScourge = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedDesertScourge);
// Materials
itemLoot.Add(ModContent.ItemType<Navystone>(), 1, 10, 30);
itemLoot.Add(ModContent.ItemType<EutrophicSand>(), 1, 10, 30);
postDesertScourge.Add(ModContent.ItemType<PrismShard>(), 1, 5, 10);
postDesertScourge.Add(ModContent.ItemType<SeaPrism>(), 5, 2, 5);
// Bait
itemLoot.Add(ItemID.MasterBait, 10, 1, 2);
itemLoot.Add(ItemID.JourneymanBait, 5, 1, 3);
itemLoot.Add(ModContent.ItemType<SeaMinnowItem>(), 5, 1, 3);
itemLoot.Add(ItemID.ApprenticeBait, 3, 2, 3);
// Potions
itemLoot.AddCratePotionRules(false);
// Money
itemLoot.Add(ItemID.SilverCoin, 1, 10, 90);
itemLoot.Add(ItemID.GoldCoin, 2, 1, 5);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

@@ -1,4 +1,5 @@
using CalamityMod.Items.Critters;
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Weapons.Magic;
@@ -12,13 +13,15 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
{
public class SunkenCrate : ModItem, ILocalizedModType
public class PrismCrate : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 5;
ItemID.Sets.IsFishingCrate[Type] = true;
ItemID.Sets.IsFishingCrateHardmode[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<EutrophicCrate>();
}
public override void SetDefaults()
@@ -29,7 +32,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
Item.consumable = true;
Item.rare = ItemRarityID.Green;
Item.value = Item.sellPrice(gold: 1);
Item.createTile = ModContent.TileType<Tiles.SunkenSea.SunkenCrateTile>();
Item.createTile = ModContent.TileType<Tiles.SunkenSea.PrismCrateTile>();
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
@@ -37,10 +40,10 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
Item.useStyle = ItemUseStyleID.Swing;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Crates;
}
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 954 B

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 572 B

+1 -1
View File
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.TreasureBags
ModContent.ItemType<DragonsBreath>(),
ModContent.ItemType<PhoenixFlameBarrage>(),
ModContent.ItemType<YharonsKindleStaff>(),
ModContent.ItemType<FinalDawn>(),
ModContent.ItemType<TheFinalDawn>(),
ModContent.ItemType<Wrathwing>(),
}));
itemLoot.Add(ModContent.ItemType<YharimsCrystal>(), 10);
@@ -17,6 +17,13 @@ namespace CalamityMod.Items.VanillaArmorChanges
public const float ArmorPieceDamage = 0.05f;
public const int ArmorPieceLifeRegen = 1;
// Set bonus clarification
public override void UpdateSetBonusText(ref string setBonusText)
{
Player player = Main.LocalPlayer;
setBonusText = $"{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
}
private void ApplyAnyPieceEffect(Player player)
{
// Remove the vanilla +3% damage and add the new damage value at the same time
@@ -31,7 +38,5 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override void ApplyBodyPieceEffect(Player player) => ApplyAnyPieceEffect(player);
public override void ApplyLegPieceEffect(Player player) => ApplyAnyPieceEffect(player);
// No changes to the set bonus
}
}
@@ -32,10 +32,10 @@ namespace CalamityMod.Items.VanillaArmorChanges
player.GetCritChance<MagicDamageClass>() -= 4;
}
public override void ApplyBodyPieceEffect(Player player) => player.GetDamage<MagicDamageClass>() -= 0.02f;
public override void ApplyBodyPieceEffect(Player player) => player.GetDamage<MagicDamageClass>() -= 0.01f;
public override void ApplyLegPieceEffect(Player player) => player.GetCritChance<MagicDamageClass>() -= 4;
public override void ApplyLegPieceEffect(Player player) => player.GetCritChance<MagicDamageClass>() -= 3;
public override void ApplyArmorSetBonus(Player player) => player.manaCost *= 1.0714f; // Reduces to -10% mana cost
public override void ApplyArmorSetBonus(Player player) => player.manaCost += 0.06f; // Reduces to -10% mana cost
}
}
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<ShadecrystalTome>().
AddIngredient<ShadecrystalBarrage>().
AddIngredient<AbyssalTome>().
AddIngredient(ItemID.HolyWater, 10).
AddIngredient(ItemID.SoulofLight, 30).
@@ -8,7 +8,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class ShadecrystalTome : ModItem, ILocalizedModType
[LegacyName("ShadecrystalTome")]
public class ShadecrystalBarrage : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 721 B

+2 -2
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 66;
Item.height = 68;
Item.damage = 90;
Item.damage = 120;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useTime = 23;
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Magic
}
for (int index = 0; index < 3; ++index)
{
Projectile.NewProjectile(source, position, velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 1.5f, ModContent.ProjectileType<NettleRight>(), (int)(damage * 1.10), knockback, player.whoAmI);
Projectile.NewProjectile(source, position, velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 1.5f, ModContent.ProjectileType<NettleRight>(), (int)(damage * 1.35), knockback, player.whoAmI);
}
Projectile.NewProjectile(source, position, velocity * 0.66f, type, damage, knockback, player.whoAmI, 1f);
return false;
+9 -3
View File
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 28;
Item.height = 32;
Item.damage = 15;
Item.damage = 19;
Item.DamageType = DamageClass.Magic;
Item.mana = 20;
Item.mana = 14;
Item.useTime = Item.useAnimation = 36;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
@@ -47,6 +47,12 @@ namespace CalamityMod.Items.Weapons.Magic
public override float UseSpeedMultiplier(Player player) => player.altFunctionUse == 2 ? 0.5f : 1f;
public override void ModifyManaCost(Player player, ref float reduce, ref float mult)
{
if (player.altFunctionUse == 2)
mult *= 2f;
}
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
if (player.altFunctionUse == 2)
@@ -59,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int totalProjectiles = 24;
int totalProjectiles = 12;
for (int i = 0; i < totalProjectiles; i++)
{
Vector2 waveVelocity = ((MathHelper.TwoPi * i / (float)totalProjectiles) + velocity.ToRotation()).ToRotationVector2() * velocity.Length();
+14 -33
View File
@@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -13,47 +14,27 @@ namespace CalamityMod.Items.Weapons.Melee
public class AbyssBlade : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public static readonly SoundStyle SpinSound = new("CalamityMod/Sounds/Item/SpinningWoosh") { Volume = 0.65f };
public override void SetDefaults()
{
Item.width = 74;
Item.height = 74;
Item.damage = 130;
Item.damage = 140;
Item.knockBack = 7.5f;
Item.useTime = 65;
Item.useAnimation = 65;
Item.shoot = ModContent.ProjectileType<AbyssBladeProjectile>();
Item.shootSpeed = 3f;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 18;
Item.useTime = 18;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 8f;
Item.UseSound = SoundID.Item1;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = null;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.shoot = ModContent.ProjectileType<DepthOrb>();
Item.shootSpeed = 9f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position, velocity, type, (int)(damage * 0.75), knockback, player.whoAmI);
return false;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
{
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 33);
}
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<CrushDepth>(), 300);
}
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
target.AddBuff(ModContent.BuffType<CrushDepth>(), 300);
}
public override void AddRecipes()
+6 -3
View File
@@ -259,18 +259,21 @@ namespace CalamityMod.Items.Weapons.Melee
public override bool CanUseItem(Player player)
{
return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
bool isRightClicking = player.altFunctionUse != ItemAlternativeFunctionID.None;
return !isRightClicking && !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
(n.type == ProjectileType<BitingEmbrace>() ||
n.type == ProjectileType<GrovetendersTouch>() ||
n.type == ProjectileType<AridGrandeur>()));
}
// 03FEB2024: Ozzatron: added so the Iban Blades don't break Overhaul compatibility. Weapons are functionally unchanged.
public override bool AltFunctionUse(Player player) => true;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (mainAttunement == null)
if (mainAttunement == null || player.altFunctionUse != ItemAlternativeFunctionID.None)
return false;
int powerLungeCounter = 0; //Unused here
ComboResetTimer = 1f;
return mainAttunement.Shoot(player, source, ref position, ref velocity.X, ref velocity.Y, ref type, ref damage, ref knockback, ref Combo, ref CanLunge, ref powerLungeCounter);
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.noMelee = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.damage = 153;
Item.damage = 159;
Item.knockBack = 4f;
Item.useAnimation = 25;
Item.useTime = 5;
+12 -48
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
@@ -10,64 +11,27 @@ namespace CalamityMod.Items.Weapons.Melee
public class DepthCrusher : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
private const int HammerPower = 70;
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 56;
Item.height = 50;
Item.damage = 36;
Item.knockBack = 5.25f;
Item.useTime = 17;
Item.useAnimation = 22;
Item.hammer = HammerPower;
Item.damage = 35;
Item.knockBack = 7.25f;
Item.useTime = 65;
Item.useAnimation = 65;
Item.shoot = ModContent.ProjectileType<DepthCrusherProjectile>();
Item.shootSpeed = 3f;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item1;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = null;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.rare = ItemRarityID.Green;
}
public override bool AltFunctionUse(Player player) => true;
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.hammer = 0;
}
else
{
Item.hammer = HammerPower;
}
return base.CanUseItem(player);
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
{
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 33);
}
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<RiptideDebuff>(), 180);
}
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
target.AddBuff(ModContent.BuffType<RiptideDebuff>(), 180);
}
}
}
+7 -2
View File
@@ -182,10 +182,14 @@ namespace CalamityMod.Items.Weapons.Melee
#endregion
// 03FEB2024: Ozzatron: added so the Iban Blades don't break Overhaul compatibility. Weapons are functionally unchanged.
public override bool AltFunctionUse(Player player) => true;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (mainAttunement == null)
if (mainAttunement == null || player.altFunctionUse != ItemAlternativeFunctionID.None)
return false;
return true;
}
@@ -245,7 +249,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override bool CanUseItem(Player player)
{
return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
bool isRightClicking = player.altFunctionUse != ItemAlternativeFunctionID.None;
return !isRightClicking && !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
(n.type == ProjectileType<PhoenixsPride>() ||
n.type == ProjectileType<AndromedasStride>() ||
n.type == ProjectileType<PolarisGaze>() ||
@@ -8,7 +8,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class LifefruitScythe : ModItem, ILocalizedModType
[LegacyName("LifefruitScythe")]
public class LifehuntScythe : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

-1
View File
@@ -45,7 +45,6 @@ namespace CalamityMod.Items.Weapons.Melee
Item.shoot = ModContent.ProjectileType<MurasamaSlash>();
Item.shootSpeed = 24f;
Item.rare = ModContent.RarityType<Violet>();
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 14));
}
// Terraria seems to really dislike high crit values in SetDefaults
+13 -28
View File
@@ -5,6 +5,7 @@ using CalamityMod.Projectiles.Melee;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
@@ -13,44 +14,28 @@ namespace CalamityMod.Items.Weapons.Melee
public class NeptunesBounty : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public static readonly SoundStyle SpinSound = new("CalamityMod/Sounds/Item/SpinningWoosh") { Volume = 0.65f };
public override void SetDefaults()
{
Item.width = 122;
Item.height = 122;
Item.damage = 270;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 22;
Item.useTime = 22;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.damage = 444;
Item.knockBack = 9f;
Item.UseSound = SoundID.Item1;
Item.useTime = 65;
Item.useAnimation = 65;
Item.shoot = ModContent.ProjectileType<NeptunesBountyProjectile>();
Item.shootSpeed = 3f;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.DamageType = DamageClass.Melee;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = null;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<NeptuneOrb>();
Item.shootSpeed = 12f;
Item.value = CalamityGlobalItem.Rarity13BuyPrice;
Item.rare = ModContent.RarityType<PureGreen>();
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
{
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 33);
}
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<CrushDepth>(), 300);
}
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
target.AddBuff(ModContent.BuffType<CrushDepth>(), 300);
}
public override void AddRecipes()
{
CreateRecipe().
+12 -3
View File
@@ -326,15 +326,24 @@ namespace CalamityMod.Items.Weapons.Melee
public override bool CanUseItem(Player player)
{
return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
bool isRightClicking = player.altFunctionUse != ItemAlternativeFunctionID.None;
return !isRightClicking && !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
(n.type == ProjectileType<SwordsmithsPride>() ||
n.type == ProjectileType<MercurialTides>() ||
n.type == ProjectileType<SanguineFury>() ||
n.type == ProjectileType<LamentationsOfTheChained>()));
}
//No need for any wacky zany hijinx in the shoot method for once??? damn
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) => mainAttunement == null ? false : true;
// 03FEB2024: Ozzatron: added so the Iban Blades don't break Overhaul compatibility. Weapons are functionally unchanged.
public override bool AltFunctionUse(Player player) => true;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (mainAttunement == null || player.altFunctionUse != ItemAlternativeFunctionID.None)
return false;
return true;
}
internal static ChargingEnergyParticleSet BiomeEnergyParticles = new ChargingEnergyParticleSet(-1, 2, Color.White, Color.White, 0.04f, 20f);
internal static void UpdateAllParticleSets()
@@ -10,7 +10,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Oracle : ModItem, ILocalizedModType
[LegacyName("Oracle")]
public class TheOracle : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public const int YoyoBaseDamage = 170;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+8 -2
View File
@@ -18,6 +18,8 @@ using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Weapons.Melee
{
// TODO -- CANNOT RENAME this and True Biome Blade to "TrueBiomeBlade" and "BiomeBlade" internally without corrupting existing items
// (Comment copied from an equivalent one on OmegaBiomeBlade from June 2022)
public class TrueBiomeBlade : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
@@ -289,7 +291,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override bool CanUseItem(Player player)
{
return !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
bool isRightClicking = player.altFunctionUse != ItemAlternativeFunctionID.None;
return !isRightClicking && !Main.projectile.Any(n => n.active && n.owner == player.whoAmI &&
(n.type == ProjectileType<TrueBitingEmbrace>() ||
n.type == ProjectileType<TrueGrovetendersTouch>() ||
n.type == ProjectileType<TrueAridGrandeur>() ||
@@ -298,9 +301,12 @@ namespace CalamityMod.Items.Weapons.Melee
n.type == ProjectileType<GestureForTheDrowned>()));
}
// 03FEB2024: Ozzatron: added so the Iban Blades don't break Overhaul compatibility. Weapons are functionally unchanged.
public override bool AltFunctionUse(Player player) => true;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (mainAttunement == null)
if (mainAttunement == null || player.altFunctionUse != ItemAlternativeFunctionID.None)
return false;
ComboResetTimer = 1f;
@@ -37,6 +37,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override Vector2? HoldoutOffset() => new Vector2(-30, 0);
public override void HoldItem(Player player) => player.scope = true;
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20;
@@ -5,7 +5,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
public class AstralRepeater : ModItem, ILocalizedModType
[LegacyName("AstralRepeater")]
public class AstralBow : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+2
View File
@@ -59,6 +59,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override void HoldItem(Player player) => player.scope = true;
public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.Next(100) >= 50;
public override void AddRecipes()
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
public class BladedgeGreatbow : ModItem, ILocalizedModType
[LegacyName("BladedgeGreatbow")]
public class BladedgeRailbow : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 76;
Item.height = 30;
Item.damage = 84;
Item.damage = 93;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 15;
Item.useAnimation = 15;
+10 -4
View File
@@ -1,8 +1,9 @@
using Terraria.DataStructures;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -13,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.width = 40;
Item.height = 76;
Item.width = 50;
Item.height = 112;
Item.damage = 48;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 20;
@@ -32,6 +33,11 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.Calamity().canFirePointBlankShots = true;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Ranged/CosmicBolterGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo spawnSource, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 source = player.RotatedRelativePoint(player.MountedCenter, true);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

+2
View File
@@ -47,6 +47,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override Vector2? HoldoutOffset() => new Vector2(-15, 0);
public override void HoldItem(Player player) => player.scope = true;
public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.Next(100) >= 50;
public override void AddRecipes()
+6 -6
View File
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.damage = 120;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 2;
Item.useAnimation = 18;
Item.reuseDelay = 6;
Item.useAnimation = 12;
Item.reuseDelay = 12;
Item.useLimitPerAnimation = 9;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
@@ -73,11 +73,11 @@ namespace CalamityMod.Items.Weapons.Ranged
{
rotation -= 2;
}
if (rotation >= 15)
if (rotation >= 11)
{
limit = false;
}
else if (rotation <= -15)
else if (rotation <= -11)
{
limit = true;
}
@@ -100,11 +100,11 @@ namespace CalamityMod.Items.Weapons.Ranged
{
rotation -= 2;
}
if (rotation >= 15)
if (rotation >= 11)
{
limit = false;
}
else if (rotation <= -15)
else if (rotation <= -11)
{
limit = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 84;
Item.height = 30;
Item.damage = 357;
Item.damage = 279;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 15;
Item.useAnimation = 15;
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<NullificationRifle>().
AddIngredient<NullificationPistol>().
AddIngredient<DarkPlasma>(2).
AddIngredient<CoreofCalamity>().
AddTile(TileID.LunarCraftingStation).
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Ranged
{
public class NullificationRifle : ModItem, ILocalizedModType
[LegacyName("NullificationRifle")]
public class NullificationPistol : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 658 B

After

Width:  |  Height:  |  Size: 658 B

+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 98;
Item.height = 50;
Item.damage = 76;
Item.damage = 78;
Item.DamageType = DamageClass.Ranged;
Item.useTime = Item.useAnimation = 12;
Item.useStyle = ItemUseStyleID.Shoot;
+122 -23
View File
@@ -6,55 +6,154 @@ using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Sounds;
using System;
using Terraria.Audio;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.Projectiles.Boss;
using static Humanizer.In;
using System.Collections.Generic;
namespace CalamityMod.Items.Weapons.Ranged
{
public class PolarisParrotfish : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public int SetUseTime = 6;
public int SetUseAnimation = 6;
public int ShotNumber = 0;
public bool Happy = false;
public static readonly SoundStyle Shot = new("CalamityMod/Sounds/Item/PolarisShot") { Volume = 0.6f };
public static readonly SoundStyle Squeak = new("CalamityMod/Sounds/Custom/CuteSqueak") { Volume = 0.75f };
public override void SetStaticDefaults()
{
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
}
public override void SetDefaults()
{
Item.width = 38;
Item.height = 34;
Item.damage = 72;
Item.damage = 35;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 21;
Item.useAnimation = 21;
Item.useTime = SetUseTime;
Item.useAnimation = SetUseAnimation;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2.25f;
Item.knockBack = 0.5f;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.UseSound = CommonCalamitySounds.LaserCannonSound; //pew pew
Item.UseSound = null;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<PolarStar>();
Item.shootSpeed = 15f;
Item.shootSpeed = 10f;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] < 2; // Max of 2 shots on screen at once, get closer to fire faster
public override bool AltFunctionUse(Player player) => Main.zenithWorld ? true : false;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.polarisBoostThree) //Homes in and explodes
if (Main.zenithWorld && player.altFunctionUse == 2)
{
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<PolarStar>(), damage, knockback, player.whoAmI, 0f, 2f);
return false;
}
else if (modPlayer.polarisBoostTwo) //Splits on enemy or tile hits
{
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<PolarStar>(), (int)(damage * 1.25), knockback, player.whoAmI, 0f, 1f);
return false;
}
return true;
}
//GFB stuff
if (Happy && Main.rand.NextBool(50)) // If you pet her too much, you will regret it
{
Happy = false;
player.itemTime = 200;
player.itemAnimation = 200;
player.Calamity().GeneralScreenShakePower = 26f;
player.AddBuff(BuffID.Obstructed, 600);
Main.NewText("Too much love...", 255, 0, 0);
SoundEngine.PlaySound(Squeak with { Pitch = -1f }, player.Center);
SoundStyle roar = new("CalamityMod/Sounds/Custom/CeaselessVoidDeathBuild");
SoundEngine.PlaySound(roar with { Pitch = 0.5f }, player.Center);
int theFuckening = ModContent.ProjectileType<AstralFlame>();
int projDamage = 500;
int totalProjectiles = 50;
float radians = MathHelper.TwoPi / totalProjectiles;
Vector2 spinningPoint = Vector2.Normalize(new Vector2(-1f, -1f));
for (int k = 0; k < totalProjectiles; k++)
{
Vector2 projVelocity = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(player.GetSource_FromThis(), player.Center + projVelocity * 2000, -projVelocity * 4, theFuckening, projDamage, 0f, Main.myPlayer);
}
}
else // Pet Polaris
{
SoundEngine.PlaySound(Squeak, player.Center);
CombatText.NewText(player.Hitbox, Color.Violet, "^-^");
Happy = true;
switch (Main.rand.Next(1, 5 + 1))
{
case 5:
Main.NewText("You give Polaris belly rubs", 72, 209, 204);
break;
case 4:
Main.NewText("You give Polaris a small treat", 72, 209, 204);
break;
case 3:
Main.NewText("You tell Polaris she's a good girl", 72, 209, 204);
break;
case 2:
Main.NewText("You let Polaris cuddle your arm", 72, 209, 204);
break;
default:
Main.NewText("You pet Polaris", 72, 209, 204);
break;
}
public override Vector2? HoldoutOrigin() //so it looks normal when holding
{
return new Vector2(10, 10);
for (int i = 0; i <= 6; i++)
{
Vector2 hVelocity = new Vector2(0, -4).RotateRandom(0.45);
hVelocity.X *= 0.66f;
hVelocity *= Main.rand.NextFloat(1f, 2f);
int heart = Gore.NewGore(player.GetSource_FromThis(), player.Center + velocity * 4, hVelocity, 331, Main.rand.NextFloat(0.2f, 1.3f));
Main.gore[heart].sticky = false;
Main.gore[heart].velocity *= 0.4f;
Main.gore[heart].velocity.Y -= 0.85f;
}
}
}
else
{
if (Happy) // If she's happy, fire much faster
{
Item.useTime = (int)(SetUseTime * 0.5f);
Item.useAnimation = (int)(SetUseAnimation * 0.5f);
}
else // Otherwise reset usetime
{
Item.useTime = SetUseTime;
Item.useAnimation = SetUseAnimation;
}
if (Main.zenithWorld) // 1% chance to get tired when firing a projectile
{
if (Happy && Main.rand.NextBool(100))
{
CombatText.NewText(player.Hitbox, Color.Violet, ">~<");
Happy = false;
SoundEngine.PlaySound(Squeak with { Pitch = -0.6f }, player.Center);
}
else
SoundEngine.PlaySound(Shot, player.Center);
}
else
SoundEngine.PlaySound(Shot, player.Center);
Projectile.NewProjectile(source, position + velocity * 5f, velocity.RotatedByRandom(0.05f), ModContent.ProjectileType<PolarStar>(), damage, knockback, player.whoAmI, 0f, ShotNumber);
if (ShotNumber >= 2) // Cycle the shot color
ShotNumber = 0;
else
ShotNumber++;
}
return false;
}
}
}
+4 -5
View File
@@ -20,11 +20,11 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 56;
Item.height = 24;
Item.damage = 24;
Item.damage = 30;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 4;
Item.useAnimation = 32;
Item.reuseDelay = 12;
Item.useAnimation = 24;
Item.reuseDelay = 20;
Item.useLimitPerAnimation = 8;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
@@ -63,8 +63,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
float SpeedX = velocity.X + Main.rand.Next(-30, 31) * 0.05f;
float SpeedY = velocity.Y + Main.rand.Next(-30, 31) * 0.05f;
int shredderBoltDamage = (int)(0.85f * damage);
int shot = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), shredderBoltDamage, knockback, player.whoAmI, 0f, 0f);
int shot = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), damage, knockback, player.whoAmI, 0f, 0f);
Main.projectile[shot].timeLeft = 180;
}
return false;
+2
View File
@@ -36,6 +36,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override Vector2? HoldoutOffset() => new Vector2(-25, 0);
public override void HoldItem(Player player) => player.scope = true;
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, ModContent.ProjectileType<Shroom>(), (int)(damage * 0.5), knockback, player.whoAmI);
+3 -4
View File
@@ -38,10 +38,9 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.useAmmo = AmmoID.Bullet;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-5, 0);
}
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
public override void HoldItem(Player player) => player.scope = true;
public override bool CanConsumeAmmo(Item ammo, Player player)
{
+2
View File
@@ -41,6 +41,8 @@ namespace CalamityMod.Items.Weapons.Ranged
public override Vector2? HoldoutOffset() => new Vector2(-28, 0);
public override void HoldItem(Player player) => player.scope = true;
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+1 -1
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Ranged
AddIngredient(ItemID.PulseBow).
AddIngredient(ItemID.LaserRifle).
AddIngredient<TheStorm>().
AddIngredient<AstralRepeater>().
AddIngredient<AstralBow>().
AddIngredient<ExodiumCluster>(15).
AddIngredient<CosmiliteBar>(8).
AddIngredient<DarksunFragment>(8).
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+3 -5
View File
@@ -1,7 +1,7 @@
using Terraria.DataStructures;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 28;
Item.height = 58;
Item.damage = 55;
Item.damage = 52;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useTime = Item.useAnimation = 14;
@@ -63,8 +63,6 @@ namespace CalamityMod.Items.Weapons.Rogue
return 2f;
}
public override float StealthDamageMultiplier => 1.3f;
public override void ModifyStatsExtra(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
if (player.altFunctionUse == 2 && !player.Calamity().StealthStrikeAvailable())
@@ -8,7 +8,8 @@ using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Weapons.Rogue
{
public class FinalDawn : RogueWeapon
[LegacyName("FinalDawn")]
public class TheFinalDawn : RogueWeapon
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash");
public override void SetDefaults()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+3 -2
View File
@@ -1,7 +1,8 @@
using Terraria.DataStructures;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon
Item.knockBack = 2f;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.NPCDeath34;
Item.UseSound = Stormlion.DeathSound;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<StormjawBaby>();
Item.shootSpeed = 10f;
@@ -792,11 +792,6 @@ PhantomicShield: {
'''
}
PolarisBuff: {
DisplayName: Polaris Boost
Description: The Northern Star empowers your life regeneration
}
ProfanedCrystalBuff: {
DisplayName: Devotion
Description: You are an emissary of the profaned goddess now!
@@ -1091,7 +1091,7 @@ MoonstoneCrown: {
'''
15% increased rogue projectile velocity
Stealth strikes summon lunar flares on enemy hits
Rogue projectiles very occasionally summon moon sigils behind them
Rogue projectiles summon homing moon sigils as they travel
'''
}
@@ -1454,7 +1454,8 @@ SandCloak: {
Tooltip:
'''
5% increased movement speed
Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil which provides +6 defense and +1 HP/s life regen
Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil which damages and knocks back enemies
While inside the veil, you are given +6 defense and +1 HP/s life regen
This effect has a 30 second cooldown before it can be used again
'''
}
@@ -26,8 +26,9 @@ BloodfireBullet: {
DisplayName: Bloodfire Bullet
Tooltip:
'''
Accelerates your life regeneration on hit
Deals bonus damage based on your current life regeneration
Accelerates your natural life regen on hit
Deals bonus damage based on your current life regen and natural life regen
This damage caps at 25
'''
}
@@ -278,10 +278,10 @@ GemTechHeadgear: {
GeneralGemInfo:
'''
A gem is lost when you take more than {0} damage in a single hit.
The type of gem lost is the same as the class of the previous when you used
The type of gem lost is the same as the class of the most recently used weapon
If said gem has already been lost, the base gem is lost instead
When a gem is lost, it breaks off and homes towards the nearest enemy or boss, if one is present, dealing a base of {1} damage
Gems have a {2} second delay before they appear again"
Gems have a {2} second delay before they appear again
'''
RedGemInfo: "[i:Ruby] The red gem grants {0} maximum stealth, increased rogue stats, and makes stealth only consumable by rogue weapons"
YellowGemInfo: "[i:Topaz] The yellow gem provides increased melee stats and makes melee attacks release shards on hit with a cooldown. This cooldown is shorter for true melee attacks"
@@ -24,6 +24,11 @@ AstrophageItem: {
Tooltip: Summons an astrophage to follow you around
}
MonolithCrate: {
DisplayName: Monolith Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
ProcyonidPrawn: {
DisplayName: Procyonid Prawn
Tooltip: ""
@@ -110,12 +115,22 @@ Shadowfish: {
Tooltip: Darkness spreads
}
SlagCrate: {
DisplayName: Slag Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
Slurpfish: {
DisplayName: Slurpfish
QuestDescription: Y'know, it'd be an absolute calamity if I sent you to the ancient ruins in the depths of hell to catch a fish. And I plan to do just that. Now scram! The fish isn't going to catch itself.
}
// Sunken Sea Catches
EutrophicCrate: {
DisplayName: Eutrophic Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
EutrophicSandfish: {
DisplayName: Eutrophic Sandfish
QuestDescription: You ever get to see what would happen if a lizard that lived in the desert scurried too deep underground? I did, and they sure are cool! But it's way too slippery for me to get my hands on it now. You go and get it so I can keep it as a pet!
@@ -126,6 +141,11 @@ GreenwaveLoach: {
Tooltip: An endangered fish that is highly prized in the market
}
PrismCrate: {
DisplayName: Prism Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
PrismaticGuppy: {
DisplayName: Prismatic Guppy
Tooltip: Throwing these in an aquarium would be insanity
@@ -165,11 +185,6 @@ SparklingEmpress: {
'''
}
SunkenCrate: {
DisplayName: Sunken Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
SunkenSailfish: {
DisplayName: Sunken Sailfish
Tooltip: Zooming at 60 miles per hour
@@ -220,6 +235,11 @@ Gorecodile: {
Tooltip: Press <right> to extract blood orbs
}
HydrothermalCrate: {
DisplayName: Hydrothermal Crate
Tooltip: "{$CommonItemTooltip.RightClickToOpen}"
}
Spadefish: {
DisplayName: Spadefish
Tooltip:
@@ -675,7 +675,7 @@ Serpentine: {
'''
}
ShadecrystalTome: {
ShadecrystalBarrage: {
DisplayName: Shadecrystal Barrage
Tooltip: Summons rapid fire shadecrystals, can shoot two crystals at once
}
@@ -12,8 +12,8 @@ AbyssBlade: {
DisplayName: Abyss Blade
Tooltip:
'''
Fires short-range tridents
Hitting enemies will inflict the crush depth debuff
Tosses a spinning abyssal sword that slices through enemies and releases water energy upon hitting a tile
The sword will fly towards enemies after a ricochet, dealing 2x damage
'''
}
@@ -321,8 +321,8 @@ DepthCrusher: {
DisplayName: Depth Crusher
Tooltip:
'''
Hitting enemies will inflict the Riptide debuff
Press <right> to use without hammering down walls
Tosses a heavy abyssal crusher that releases water energy upon hitting a tile
The crusher will ricochet off of tiles and enemies
'''
}
@@ -697,7 +697,7 @@ Lacerator: {
TooltipGFB: May be a viable weapon against DoG...
}
LifefruitScythe: {
LifehuntScythe: {
DisplayName: Lifehunt Scythe
Tooltip: Heals you on hit and shoots an energy scythe
}
@@ -794,8 +794,8 @@ NeptunesBounty: {
DisplayName: Neptune's Bounty
Tooltip:
'''
Fires a trident that rains additional tridents as it travels
Hitting enemies will inflict the crush depth debuff
Tosses a spinning abyssal sword which constantly sprays water energy
Once the blade begins falling, it will redirect itself towards enemies with increased velocity and 2x damage
'''
}
@@ -843,17 +843,6 @@ Omniblade: {
Tooltip: An ancient blade forged by the legendary Omnir
}
Oracle: {
DisplayName: The Oracle
Tooltip:
'''
Emits an aura of red lightning which charges up when hitting enemies
Fires auric orbs when supercharged
An exceptionally agile yoyo
'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'
'''
}
Orderbringer: {
DisplayName: Orderbringer
Tooltip:
@@ -1265,6 +1254,17 @@ TheObliterator: {
'''
}
TheOracle: {
DisplayName: The Oracle
Tooltip:
'''
Emits an aura of red lightning which charges up when hitting enemies
Fires auric orbs when supercharged
An exceptionally agile yoyo
'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'
'''
}
TitanArm: {
DisplayName: Titan Arm
Tooltip:
@@ -87,7 +87,7 @@ AstralBlaster: {
Tooltip: Converts musket balls into homing astral rounds
}
AstralRepeater: {
AstralBow: {
DisplayName: Astral Bow
Tooltip: Fires a burst of three arrows
}
@@ -135,7 +135,7 @@ BarracudaGun: {
Tooltip: Fires two barracudas that latch onto enemies and shred them
}
BladedgeGreatbow: {
BladedgeRailbow: {
DisplayName: Bladedge Railbow
Tooltip: Fires a spread of 4 arrows and 2 leaves at once
}
@@ -795,7 +795,7 @@ Norfleet: {
Tooltip: Fire everything!
}
NullificationRifle: {
NullificationPistol: {
DisplayName: Nullification Pistol
Tooltip:
'''
@@ -911,12 +911,20 @@ PlanetaryAnnihilation: {
PolarisParrotfish: {
DisplayName: Polaris Parrotfish
Tooltip:
Tooltip: "[GFB]"
TooltipNormal:
'''
Projectile hits grant buffs to the weapon
Buffs are removed on hit
Rapidly fires an array of colorful star shots that bounce off tiles
However, only two shots can exist at once
'It carries the mark of the Northern Star'
'''
TooltipGFB:
'''
Rapidly fires an array of colorful star shots that bounce off tiles
However, only two shots can exist at once
Right click to give the little girl some attention
'She is a happy girl'
'''
}
PridefulHuntersPlanarRipper: {
@@ -415,18 +415,6 @@ FeatherKnife: {
'''
}
FinalDawn: {
DisplayName: The Final Dawn
Tooltip:
'''
Attack enemies with a giant scythe swing to replenish stealth
Press up and attack to throw the scythe
Stealth strikes perform a horizontal swing that leaves a lingering fire aura
Stealth strikes performed while pressing up fling yourself at the enemy and slice through them, causing homing fireballs to emerge
'We shall ride into the sunrise once more'
'''
}
FishboneBoomerang: {
DisplayName: Fishbone Boomerang
Tooltip:
@@ -1220,6 +1208,18 @@ TheAtomSplitter: {
'''
}
TheFinalDawn: {
DisplayName: The Final Dawn
Tooltip:
'''
Attack enemies with a giant scythe swing to replenish stealth
Press up and attack to throw the scythe
Stealth strikes perform a horizontal swing that leaves a lingering fire aura
Stealth strikes performed while pressing up fling yourself at the enemy and slice through them, causing homing fireballs to emerge
'We shall ride into the sunrise once more'
'''
}
TheOldReaper: {
DisplayName: The Old Reaper
Tooltip:
@@ -310,3 +310,9 @@ WulfrumScrewdriverProj.DisplayName: Wulfrum Screwdriver
YateveoBloomProj.DisplayName: Yateveo Bloom
YinYoDark.DisplayName: Dark Shard
YinYoLight.DisplayName: Light Shard
DepthCrusherProjectile.DisplayName: Depth Crusher
DepthCrusherSplitProjectile.DisplayName: Depth Crusher Jet
AbyssBladeProjectile.DisplayName: Abyss Blade
AbyssBladeSplitProjectile.DisplayName: Abyss Blade Jet
NeptunesBountyProjectile.DisplayName: Neptune's Bounty
NeptunesBountySplitProjectile.DisplayName: Neptune's Bounty Jet
@@ -152,7 +152,7 @@ PlanarRipperExplosion.DisplayName: Planar Explosion
PlanetaryAnnihilationProj.DisplayName: Planetary Ball
PlasmaBlast.DisplayName: Plasma Blast
PlasmaExplosion.DisplayName: Plasma Explosion
PolarStar.DisplayName: Polar Star
PolarStar.DisplayName: Star Shot
PrecisionBolt.DisplayName: Precision Bolt
PressurizedBubbleStream.DisplayName: Pressurized Bubble Stream
PrismaticEnergyBlast.DisplayName: Energy Blast
@@ -243,6 +243,7 @@ SiriusMinion.DisplayName: Sirius
SkeletalDragonChild.DisplayName: Skeletal Child
SkeletalDragonMother.DisplayName: Skeletal Mother
SlimePuppet.DisplayName: Slime Puppet
StormjawSpark.DisplayName: Spark
CannonLaserbeam.DisplayName: Exothermal Deathray
ExoskeletonGaussNukeCannon.DisplayName: Gauss Nuke
ExoskeletonLaserCannon.DisplayName: Laser Cannon
@@ -29,6 +29,12 @@ SetBonus: {
}
Copper: Increases all damage by 2
Crimson:
'''
Greatly increased natural life regen
Life regen is further increased the longer you avoid taking damage
Standing still also greatly amplifies life regen
'''
Eskimo:
'''
Multiplies all cold-based debuff damage by 1.25
@@ -111,6 +117,8 @@ SetBonus: {
Increases all knockback by 33%, this counts for the above boost
Current bonus: {0}% critical strike chance from {1} knockback
'''
MagicHat: Increases maximum mana by 40
Wizard: 4% increased magic critical strike chance
CrystalAssassin:
'''
Allows the ability to dash
+2 -8
View File
@@ -1982,17 +1982,11 @@ namespace CalamityMod
return null;
case "LoadParticleInstances":
if (args.Length != 2 || !(args[1] is Mod))
return new ArgumentNullException("ERROR: Must specify a Mod instance to load particles from.");
GeneralParticleHandler.LoadModParticleInstances(args[1] as Mod);
CalamityMod.Instance.Logger.Warn("This mod call is deprecated. Calamity automatically registers particles.");
return null;
case "RegisterModCooldowns":
if (args.Length != 2 || !(args[1] is Mod))
return new ArgumentNullException("ERROR: Must specify a Mod instance to register cooldowns from.");
CooldownRegistry.RegisterModCooldowns(args[1] as Mod);
CalamityMod.Instance.Logger.Warn("This mod call is deprecated. Calamity automatically registers cooldowns.");
return null;
case "GetSummonerNerfDisabledByItem":
Loaded 100 of 180 files, more files were not shown because too many files have changed in this diff. Show more