.
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class RotomBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Electric Troublemaker");
|
||||
Description.SetDefault("Lightning never strikes the same place twice");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().rotomPet = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<RotomPet>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
float baseDamage = 10f +
|
||||
(Main.hardMode ? 10f : 0f) +
|
||||
(NPC.downedMoonlord ? 30f : 0f);
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType<RotomPet>(), (int)(baseDamage * (player.allDamage + player.minionDamage - 1f)), 0f, player.whoAmI, 50f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 305 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class ApexSharkBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ancient Mineral Shark");
|
||||
Description.SetDefault("Ancient yet so dangerous");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<ApexShark>()] > 0)
|
||||
{
|
||||
modPlayer.apexShark = true;
|
||||
}
|
||||
if (!modPlayer.apexShark)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 814 B |
|
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 547 B |
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 543 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class EndoCooperBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Endo Cooper");
|
||||
Description.SetDefault("The ascened Cooper will protect you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<EndoCooperBody>()] > 0)
|
||||
{
|
||||
modPlayer.endoCooper = true;
|
||||
}
|
||||
if (!modPlayer.endoCooper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 568 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class SiriusBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sirius");
|
||||
Description.SetDefault("A bit too bright, but it helps me");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SiriusMinion>()] > 0)
|
||||
{
|
||||
modPlayer.sirius = true;
|
||||
}
|
||||
if (!modPlayer.sirius)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 559 B |
@@ -1,25 +1,15 @@
|
||||
using CalamityMod.Buffs;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.Cooldowns;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Pets;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.DifficultyItems;
|
||||
using CalamityMod.Items.Fishing;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using CalamityMod.Items.Fishing.SulphurCatches;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using CalamityMod.Items.Fishing.FishingRods;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
@@ -27,21 +17,17 @@ using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Signus;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.World;
|
||||
@@ -50,7 +36,6 @@ using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameInput;
|
||||
@@ -83,6 +68,7 @@ namespace CalamityMod.CalPlayer
|
||||
public int deathCount = 0;
|
||||
public int actualMaxLife = 0;
|
||||
public bool killSpikyBalls = false;
|
||||
public Projectile lastProjectileHit;
|
||||
|
||||
// Stat Meter
|
||||
public int[] damageStats = new int[5];
|
||||
@@ -184,6 +170,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool perfmini = false;
|
||||
public bool akato = false;
|
||||
public bool leviPet = false;
|
||||
public bool rotomPet = false;
|
||||
public bool sirenPet = false;
|
||||
public bool fox = false;
|
||||
public bool chibii = false;
|
||||
@@ -507,6 +494,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool valkyrie = false;
|
||||
public bool slimeGod = false;
|
||||
public bool molluskSet = false;
|
||||
public bool fearmongerSet = false;
|
||||
public int fearmongerRegenFrames = 0;
|
||||
public bool daedalusCrystal = false;
|
||||
public bool reaverOrb = false;
|
||||
public bool chaosSpirit = false;
|
||||
@@ -641,7 +630,9 @@ namespace CalamityMod.CalPlayer
|
||||
public bool dCreeper = false;
|
||||
public bool bClot = false;
|
||||
public bool eAxe = false;
|
||||
public bool endoCooper = false;
|
||||
public bool SPG = false;
|
||||
public bool sirius = false;
|
||||
public bool aChicken = false;
|
||||
public bool cLamp = false;
|
||||
public bool pGuy = false;
|
||||
@@ -666,6 +657,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool fClump = false;
|
||||
public bool rDevil = false;
|
||||
public bool aValkyrie = false;
|
||||
public bool apexShark = false;
|
||||
public bool sGod = false;
|
||||
public bool vUrchin = false;
|
||||
public bool cSpirit = false;
|
||||
@@ -968,6 +960,7 @@ namespace CalamityMod.CalPlayer
|
||||
perfmini = false;
|
||||
akato = false;
|
||||
leviPet = false;
|
||||
rotomPet = false;
|
||||
sirenPet = false;
|
||||
fox = false;
|
||||
chibii = false;
|
||||
@@ -1033,6 +1026,7 @@ namespace CalamityMod.CalPlayer
|
||||
omegaBlueHentai = false;
|
||||
|
||||
molluskSet = false;
|
||||
fearmongerSet = false;
|
||||
|
||||
ataxiaBolt = false;
|
||||
ataxiaGeyser = false;
|
||||
@@ -1373,7 +1367,10 @@ namespace CalamityMod.CalPlayer
|
||||
dCreeper = false;
|
||||
bClot = false;
|
||||
eAxe = false;
|
||||
endoCooper = false;
|
||||
apexShark = false;
|
||||
SPG = false;
|
||||
sirius = false;
|
||||
aChicken = false;
|
||||
cLamp = false;
|
||||
pGuy = false;
|
||||
@@ -1429,6 +1426,8 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
rageMode = false;
|
||||
adrenalineMode = false;
|
||||
|
||||
lastProjectileHit = null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1639,6 +1638,7 @@ namespace CalamityMod.CalPlayer
|
||||
omegaBlueSet = false;
|
||||
omegaBlueCooldown = 0;
|
||||
molluskSet = false;
|
||||
fearmongerSet = false;
|
||||
daedalusReflect = false;
|
||||
daedalusSplit = false;
|
||||
daedalusAbsorb = false;
|
||||
@@ -1687,6 +1687,8 @@ namespace CalamityMod.CalPlayer
|
||||
bloodflareMage = false;
|
||||
bloodflareSummon = false;
|
||||
bloodflareSummonTimer = 0;
|
||||
fearmongerSet = false;
|
||||
fearmongerRegenFrames = 0;
|
||||
xerocSet = false;
|
||||
IBoots = false;
|
||||
elysianFire = false;
|
||||
@@ -1694,6 +1696,8 @@ namespace CalamityMod.CalPlayer
|
||||
elysianGuard = false;
|
||||
#endregion
|
||||
|
||||
lastProjectileHit = null;
|
||||
|
||||
|
||||
if (CalamityWorld.bossRushActive)
|
||||
{
|
||||
@@ -1759,10 +1763,7 @@ namespace CalamityMod.CalPlayer
|
||||
bool useHoly = NPC.AnyNPCs(ModContent.NPCType<Providence>());
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Providence", useHoly);
|
||||
|
||||
bool useDark = NPC.AnyNPCs(ModContent.NPCType<Signus>());
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:Signus", useDark);
|
||||
|
||||
bool useSBrimstone = NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>());
|
||||
bool useSBrimstone = NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>());
|
||||
player.ManageSpecialBiomeVisuals("CalamityMod:SupremeCalamitas", useSBrimstone);
|
||||
|
||||
bool inAstral = ZoneAstral;
|
||||
@@ -1913,18 +1914,18 @@ namespace CalamityMod.CalPlayer
|
||||
#region InventoryStartup
|
||||
public override void SetupStartInventory(IList<Item> items, bool mediumcoreDeath)
|
||||
{
|
||||
Item createItem(int type)
|
||||
{
|
||||
Item i = new Item();
|
||||
i.SetDefaults(type);
|
||||
return i;
|
||||
}
|
||||
|
||||
if (!mediumcoreDeath)
|
||||
Item createItem(int type)
|
||||
{
|
||||
Item i = new Item();
|
||||
i.SetDefaults(type);
|
||||
return i;
|
||||
}
|
||||
|
||||
if (!mediumcoreDeath)
|
||||
{
|
||||
items.Add(createItem(ModContent.ItemType<StarterBag>()));
|
||||
items.Add(createItem(ModContent.ItemType<Revenge>()));
|
||||
items.Add(createItem(ModContent.ItemType<IronHeart>()));
|
||||
items.Add(createItem(ModContent.ItemType<StarterBag>()));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -3026,16 +3027,15 @@ namespace CalamityMod.CalPlayer
|
||||
for (int j = 0; j < 25; j++)
|
||||
{
|
||||
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 173, 0f, 0f, 100, default, 2f);
|
||||
Dust expr_A4_cp_0 = Main.dust[num];
|
||||
expr_A4_cp_0.position.X += (float)Main.rand.Next(-20, 21);
|
||||
Dust expr_CB_cp_0 = Main.dust[num];
|
||||
expr_CB_cp_0.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
Main.dust[num].velocity *= 0.9f;
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
Dust dust = Main.dust[num];
|
||||
dust.position.X += (float)Main.rand.Next(-20, 21);
|
||||
dust.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
dust.velocity *= 0.9f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
player.statLife += 100;
|
||||
@@ -3052,16 +3052,15 @@ namespace CalamityMod.CalPlayer
|
||||
for (int j = 0; j < 50; j++)
|
||||
{
|
||||
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 173, 0f, 0f, 100, default, 2f);
|
||||
Dust expr_A4_cp_0 = Main.dust[num];
|
||||
expr_A4_cp_0.position.X += (float)Main.rand.Next(-20, 21);
|
||||
Dust expr_CB_cp_0 = Main.dust[num];
|
||||
expr_CB_cp_0.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
Main.dust[num].velocity *= 0.9f;
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
Dust dust = Main.dust[num];
|
||||
dust.position.X += (float)Main.rand.Next(-20, 21);
|
||||
dust.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
dust.velocity *= 0.9f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
int heal = draconicSurge ? player.statLifeMax2 : 150;
|
||||
@@ -4259,7 +4258,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (item.melee)
|
||||
{
|
||||
damageMult += (DHorHoD ? 2.3 : 2.0);
|
||||
damageMult += CalamityWorld.death ? (DHorHoD ? 7.6 : 6.8) : (DHorHoD ? 2.3 : 2.0); // Death Mode values: 8.9 and 8.0, rev: 2.3 and 2.0
|
||||
}
|
||||
}
|
||||
else if (rageMode)
|
||||
@@ -4267,10 +4266,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (item.melee)
|
||||
{
|
||||
double rageDamageBoost = 0.0 +
|
||||
(rageBoostOne ? 0.15 : 0.0) +
|
||||
(rageBoostTwo ? 0.15 : 0.0) +
|
||||
(rageBoostThree ? 0.15 : 0.0);
|
||||
double rageDamage = (DHorHoD ? 0.65 : 0.5) + rageDamageBoost;
|
||||
(rageBoostOne ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0) + // Death Mode values: 0.6, rev: 0.15
|
||||
(rageBoostTwo ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0) + // Death Mode values: 0.6, rev: 0.15
|
||||
(rageBoostThree ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0); // Death Mode values: 0.6, rev: 0.15
|
||||
double rageDamage = (CalamityWorld.death ? (DHorHoD ? 2.0 : 1.7) : (DHorHoD ? 0.65 : 0.5)) + rageDamageBoost; // Death Mode values: 2.3 and 2.0, rev: 0.65 and 0.5
|
||||
damageMult += rageDamage;
|
||||
}
|
||||
}
|
||||
@@ -4278,7 +4277,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (item.melee)
|
||||
{
|
||||
double damageMultAdr = 1.5 * (double)adrenalineDmgMult;
|
||||
double damageMultAdr = (CalamityWorld.death ? 5.0 : 1.5) * (double)adrenalineDmgMult; // Death Mode values: 6, rev: 1.5
|
||||
damageMult += damageMultAdr;
|
||||
}
|
||||
}
|
||||
@@ -4549,7 +4548,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (hasClassType)
|
||||
{
|
||||
damageMult += (DHorHoD ? 2.3 : 2.0);
|
||||
damageMult += CalamityWorld.death ? (DHorHoD ? 7.6 : 6.8) : (DHorHoD ? 2.3 : 2.0); // Death Mode values: 8.9 and 8.0, rev: 2.3 and 2.0
|
||||
}
|
||||
}
|
||||
else if (rageMode)
|
||||
@@ -4557,10 +4556,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (hasClassType)
|
||||
{
|
||||
double rageDamageBoost = 0.0 +
|
||||
(rageBoostOne ? 0.15 : 0.0) +
|
||||
(rageBoostTwo ? 0.15 : 0.0) +
|
||||
(rageBoostThree ? 0.15 : 0.0);
|
||||
double rageDamage = (DHorHoD ? 0.65 : 0.5) + rageDamageBoost;
|
||||
(rageBoostOne ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0) + // Death Mode values: 0.6, rev: 0.15
|
||||
(rageBoostTwo ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0) + // Death Mode values: 0.6, rev: 0.15
|
||||
(rageBoostThree ? (CalamityWorld.death ? 0.5 : 0.15) : 0.0); // Death Mode values: 0.6, rev: 0.15
|
||||
double rageDamage = (CalamityWorld.death ? (DHorHoD ? 2.0 : 1.7) : (DHorHoD ? 0.65 : 0.5)) + rageDamageBoost; // Death Mode values: 2.3 and 2.0, rev: 0.65 and 0.5
|
||||
damageMult += rageDamage;
|
||||
}
|
||||
}
|
||||
@@ -4568,7 +4567,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (hasClassType)
|
||||
{
|
||||
double damageMultAdr = 1.5 * (double)adrenalineDmgMult;
|
||||
double damageMultAdr = (CalamityWorld.death ? 5.0 : 1.5) * (double)adrenalineDmgMult; // Death Mode values: 6, rev: 1.5
|
||||
damageMult += damageMultAdr;
|
||||
}
|
||||
}
|
||||
@@ -4666,7 +4665,8 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region MultiplicativeReductions
|
||||
if (isSummon)
|
||||
// Fearmonger armor makes you immune to the summoner cross-class nerf
|
||||
if (isSummon && !fearmongerSet)
|
||||
{
|
||||
if (heldItem.type > 0)
|
||||
{
|
||||
@@ -5522,6 +5522,12 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
damage = (int)((double)damage - ((double)player.statDefense * 0.05));
|
||||
}
|
||||
// Fearmonger set provides 15% multiplicative DR that ignores caps during the Holiday Moons.
|
||||
// To prevent abuse, this effect does not work if there are any bosses alive.
|
||||
if(fearmongerSet && !areThereAnyDamnBosses && (Main.pumpkinMoon || Main.snowMoon))
|
||||
{
|
||||
damage = (int)(damage * 0.85f);
|
||||
}
|
||||
if (abyssalDivingSuitPlates)
|
||||
{
|
||||
damage = (int)((double)damage * 0.85);
|
||||
@@ -5633,29 +5639,22 @@ namespace CalamityMod.CalPlayer
|
||||
scaleFactor10 = 1f;
|
||||
}
|
||||
int num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default, Main.rand.Next(61, 64), 1f);
|
||||
Main.gore[num626].velocity *= scaleFactor10;
|
||||
Gore expr_13AB6_cp_0 = Main.gore[num626];
|
||||
expr_13AB6_cp_0.velocity.X += 1f;
|
||||
Gore expr_13AD6_cp_0 = Main.gore[num626];
|
||||
expr_13AD6_cp_0.velocity.Y += 1f;
|
||||
Gore gore = Main.gore[num626];
|
||||
gore.velocity *= scaleFactor10;
|
||||
gore.velocity.X += 1f;
|
||||
gore.velocity.Y += 1f;
|
||||
num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default, Main.rand.Next(61, 64), 1f);
|
||||
Main.gore[num626].velocity *= scaleFactor10;
|
||||
Gore expr_13B79_cp_0 = Main.gore[num626];
|
||||
expr_13B79_cp_0.velocity.X -= 1f;
|
||||
Gore expr_13B99_cp_0 = Main.gore[num626];
|
||||
expr_13B99_cp_0.velocity.Y += 1f;
|
||||
gore.velocity *= scaleFactor10;
|
||||
gore.velocity.X -= 1f;
|
||||
gore.velocity.Y += 1f;
|
||||
num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default, Main.rand.Next(61, 64), 1f);
|
||||
Main.gore[num626].velocity *= scaleFactor10;
|
||||
Gore expr_13C3C_cp_0 = Main.gore[num626];
|
||||
expr_13C3C_cp_0.velocity.X += 1f;
|
||||
Gore expr_13C5C_cp_0 = Main.gore[num626];
|
||||
expr_13C5C_cp_0.velocity.Y -= 1f;
|
||||
gore.velocity *= scaleFactor10;
|
||||
gore.velocity.X += 1f;
|
||||
gore.velocity.Y -= 1f;
|
||||
num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default, Main.rand.Next(61, 64), 1f);
|
||||
Main.gore[num626].velocity *= scaleFactor10;
|
||||
Gore expr_13CFF_cp_0 = Main.gore[num626];
|
||||
expr_13CFF_cp_0.velocity.X -= 1f;
|
||||
Gore expr_13D1F_cp_0 = Main.gore[num626];
|
||||
expr_13D1F_cp_0.velocity.Y -= 1f;
|
||||
gore.velocity *= scaleFactor10;
|
||||
gore.velocity.X -= 1f;
|
||||
gore.velocity.Y -= 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5790,40 +5789,41 @@ namespace CalamityMod.CalPlayer
|
||||
player.AddBuff(ModContent.BuffType<BurntOut>(), 300, true);
|
||||
}
|
||||
bool hardMode = Main.hardMode;
|
||||
int iFramesToAdd = 0;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (cTracers && damage > 200)
|
||||
{
|
||||
player.immuneTime += 60;
|
||||
iFramesToAdd += 60;
|
||||
}
|
||||
if (godSlayerThrowing && damage > 80)
|
||||
{
|
||||
player.immuneTime += 30;
|
||||
iFramesToAdd += 30;
|
||||
}
|
||||
if (statigelSet && damage > 100)
|
||||
{
|
||||
player.immuneTime += 30;
|
||||
iFramesToAdd += 30;
|
||||
}
|
||||
if (dAmulet)
|
||||
{
|
||||
if (damage == 1.0)
|
||||
{
|
||||
player.immuneTime += 10;
|
||||
iFramesToAdd += 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.immuneTime += 20;
|
||||
iFramesToAdd += 20;
|
||||
}
|
||||
}
|
||||
if (fabsolVodka)
|
||||
{
|
||||
if (damage == 1.0)
|
||||
{
|
||||
player.immuneTime += 5;
|
||||
iFramesToAdd += 5;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.immuneTime += 10;
|
||||
iFramesToAdd += 10;
|
||||
}
|
||||
}
|
||||
if (CalamityWorld.bossRushActive && Config.BossRushImmunityFrameCurse)
|
||||
@@ -6114,6 +6114,24 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
if (lastProjectileHit != null)
|
||||
{
|
||||
switch (lastProjectileHit.modProjectile.cooldownSlot)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
player.hurtCooldowns[lastProjectileHit.modProjectile.cooldownSlot] += iFramesToAdd;
|
||||
break;
|
||||
case -1:
|
||||
default:
|
||||
player.immuneTime += iFramesToAdd;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.immuneTime += iFramesToAdd;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -6399,7 +6417,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
{
|
||||
float num = 50f * player.meleeDamage;
|
||||
float num = 50f * (player.allDamage + player.meleeDamage - 1f);
|
||||
float num2 = 3f;
|
||||
bool crit = false;
|
||||
if (player.kbGlove)
|
||||
@@ -6447,7 +6465,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
{
|
||||
float num = 1500f * player.meleeDamage;
|
||||
float num = 1500f * (player.allDamage + player.meleeDamage - 1f);
|
||||
float num2 = 15f;
|
||||
bool crit = false;
|
||||
if (player.kbGlove)
|
||||
@@ -6498,7 +6516,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
{
|
||||
float num = 500f * player.meleeDamage;
|
||||
float num = 500f * (player.allDamage + player.meleeDamage - 1f);
|
||||
float num2 = 12f;
|
||||
bool crit = false;
|
||||
if (player.kbGlove)
|
||||
@@ -6548,7 +6566,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
{
|
||||
float num = 100f * player.meleeDamage;
|
||||
float num = 100f * (player.allDamage + player.meleeDamage - 1f);
|
||||
float num2 = 9f;
|
||||
bool crit = false;
|
||||
if (player.kbGlove)
|
||||
@@ -6803,13 +6821,12 @@ namespace CalamityMod.CalPlayer
|
||||
for (int num17 = 0; num17 < 20; num17++)
|
||||
{
|
||||
int num18 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 235, 0f, 0f, 100, default, 2f);
|
||||
Dust expr_CDB_cp_0 = Main.dust[num18];
|
||||
expr_CDB_cp_0.position.X += (float)Main.rand.Next(-5, 6);
|
||||
Dust expr_D02_cp_0 = Main.dust[num18];
|
||||
expr_D02_cp_0.position.Y += (float)Main.rand.Next(-5, 6);
|
||||
Main.dust[num18].velocity *= 0.2f;
|
||||
Main.dust[num18].scale *= 1f + (float)Main.rand.Next(20) * 0.01f;
|
||||
Main.dust[num18].shader = GameShaders.Armor.GetSecondaryShader(player.cShoe, player);
|
||||
Dust dust = Main.dust[num18];
|
||||
dust.position.X += (float)Main.rand.Next(-5, 6);
|
||||
dust.position.Y += (float)Main.rand.Next(-5, 6);
|
||||
dust.velocity *= 0.2f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(20) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShoe, player);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -7284,7 +7301,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
rect.Width = 2;
|
||||
rect.Inflate(6, 12);
|
||||
float damage = 800f * player.minionDamage;
|
||||
float damage = 800f * (player.allDamage + player.minionDamage - 1f);
|
||||
float knockback = 10f;
|
||||
int nPCImmuneTime = 30;
|
||||
int playerImmuneTime = 6;
|
||||
@@ -7300,7 +7317,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
rect2.Width = 2;
|
||||
rect2.Inflate(6, 12);
|
||||
float damage2 = 50f * player.minionDamage;
|
||||
float damage2 = 50f * (player.allDamage + player.minionDamage - 1f);
|
||||
float knockback2 = 8f;
|
||||
int nPCImmuneTime2 = 30;
|
||||
int playerImmuneTime2 = 6;
|
||||
@@ -7316,7 +7333,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
rect2.Width = 2;
|
||||
rect2.Inflate(6, 12);
|
||||
float damage2 = 25f * player.minionDamage;
|
||||
float damage2 = 25f * (player.allDamage + player.minionDamage - 1f);
|
||||
float knockback2 = 5f;
|
||||
int nPCImmuneTime2 = 30;
|
||||
int playerImmuneTime2 = 6;
|
||||
@@ -7397,7 +7414,6 @@ namespace CalamityMod.CalPlayer
|
||||
Item item = drawPlayer.inventory[drawPlayer.selectedItem];
|
||||
|
||||
if (!drawPlayer.frozen &&
|
||||
((drawPlayer.itemAnimation > 0 && item.useStyle != 0) || (item.holdStyle > 0 && !drawPlayer.pulley)) &&
|
||||
item.type > 0 &&
|
||||
!drawPlayer.dead &&
|
||||
!item.noUseGraphic &&
|
||||
@@ -7420,130 +7436,156 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
effect = SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically;
|
||||
}
|
||||
if ((drawPlayer.itemAnimation > 0 && item.useStyle != 0) || (item.holdStyle > 0 && !drawPlayer.pulley))
|
||||
{
|
||||
// Staff
|
||||
if (item.type == ModContent.ItemType<DeathhailStaff>() || item.type == ModContent.ItemType<Vesuvius>() || item.type == ModContent.ItemType<SoulPiercer>() ||
|
||||
item.type == ModContent.ItemType<FatesReveal>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow");
|
||||
if (item.type == ModContent.ItemType<Vesuvius>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/VesuviusGlow");
|
||||
else if (item.type == ModContent.ItemType<SoulPiercer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow");
|
||||
else if (item.type == ModContent.ItemType<FatesReveal>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow");
|
||||
|
||||
// Staff
|
||||
if (item.type == ModContent.ItemType<DeathhailStaff>() || item.type == ModContent.ItemType<Vesuvius>() || item.type == ModContent.ItemType<SoulPiercer>() ||
|
||||
item.type == ModContent.ItemType<FatesReveal>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/DeathhailStaffGlow");
|
||||
if (item.type == ModContent.ItemType<Vesuvius>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/VesuviusGlow");
|
||||
else if (item.type == ModContent.ItemType<SoulPiercer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow");
|
||||
else if (item.type == ModContent.ItemType<FatesReveal>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/FatesRevealGlow");
|
||||
float num104 = drawPlayer.itemRotation + 0.785f * (float)drawPlayer.direction;
|
||||
int num105 = 0;
|
||||
Vector2 zero3 = new Vector2(0f, (float)Main.itemTexture[item.type].Height);
|
||||
|
||||
float num104 = drawPlayer.itemRotation + 0.785f * (float)drawPlayer.direction;
|
||||
int num105 = 0;
|
||||
Vector2 zero3 = new Vector2(0f, (float)Main.itemTexture[item.type].Height);
|
||||
if (drawPlayer.gravDir == -1f)
|
||||
{
|
||||
if (drawPlayer.direction == -1)
|
||||
{
|
||||
num104 += 1.57f;
|
||||
zero3 = new Vector2((float)Main.itemTexture[item.type].Width, 0f);
|
||||
num105 -= Main.itemTexture[item.type].Width;
|
||||
}
|
||||
else
|
||||
{
|
||||
num104 -= 1.57f;
|
||||
zero3 = Vector2.Zero;
|
||||
}
|
||||
}
|
||||
else if (drawPlayer.direction == -1)
|
||||
{
|
||||
zero3 = new Vector2((float)Main.itemTexture[item.type].Width, (float)Main.itemTexture[item.type].Height);
|
||||
num105 -= Main.itemTexture[item.type].Width;
|
||||
}
|
||||
|
||||
if (drawPlayer.gravDir == -1f)
|
||||
{
|
||||
if (drawPlayer.direction == -1)
|
||||
{
|
||||
num104 += 1.57f;
|
||||
zero3 = new Vector2((float)Main.itemTexture[item.type].Width, 0f);
|
||||
num105 -= Main.itemTexture[item.type].Width;
|
||||
}
|
||||
else
|
||||
{
|
||||
num104 -= 1.57f;
|
||||
zero3 = Vector2.Zero;
|
||||
}
|
||||
}
|
||||
else if (drawPlayer.direction == -1)
|
||||
{
|
||||
zero3 = new Vector2((float)Main.itemTexture[item.type].Width, (float)Main.itemTexture[item.type].Height);
|
||||
num105 -= Main.itemTexture[item.type].Width;
|
||||
}
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X + zero3.X + (float)num105), (float)(int)(vector.Y - Main.screenPosition.Y + 0f)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
num104,
|
||||
zero3,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X + zero3.X + (float)num105), (float)(int)(vector.Y - Main.screenPosition.Y + 0f)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
num104,
|
||||
zero3,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
// Bow and Book
|
||||
else if (item.type == ModContent.ItemType<Deathwind>() || item.type == ModContent.ItemType<Apotheosis>() || item.type == ModContent.ItemType<CleansingBlaze>() ||
|
||||
item.type == ModContent.ItemType<SubsumingVortex>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/DeathwindGlow");
|
||||
int offsetX = 10;
|
||||
if (item.type == ModContent.ItemType<Apotheosis>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/ApotheosisGlow");
|
||||
offsetX = 6;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<CleansingBlaze>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/CleansingBlazeGlow");
|
||||
offsetX = 37;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<SubsumingVortex>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow");
|
||||
offsetX = 9;
|
||||
}
|
||||
|
||||
// Bow and Book
|
||||
else if (item.type == ModContent.ItemType<Deathwind>() || item.type == ModContent.ItemType<Apotheosis>() || item.type == ModContent.ItemType<CleansingBlaze>() ||
|
||||
item.type == ModContent.ItemType<SubsumingVortex>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/DeathwindGlow");
|
||||
int offsetX = 10;
|
||||
if (item.type == ModContent.ItemType<Apotheosis>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/ApotheosisGlow");
|
||||
offsetX = 6;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<CleansingBlaze>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Ranged/CleansingBlazeGlow");
|
||||
offsetX = 37;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<SubsumingVortex>())
|
||||
{
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow");
|
||||
offsetX = 9;
|
||||
}
|
||||
Vector2 vector13 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
Vector2 vector14 = vector13;
|
||||
int num107 = (int)vector14.X - offsetX;
|
||||
vector13.Y = vector14.Y;
|
||||
|
||||
Vector2 vector13 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
Vector2 vector14 = vector13;
|
||||
int num107 = (int)vector14.X - offsetX;
|
||||
vector13.Y = vector14.Y;
|
||||
Vector2 origin4 = new Vector2(-(float)num107, (float)(Main.itemTexture[item.type].Height / 2));
|
||||
if (drawPlayer.direction == -1)
|
||||
origin4 = new Vector2((float)(Main.itemTexture[item.type].Width + num107), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
|
||||
Vector2 origin4 = new Vector2(-(float)num107, (float)(Main.itemTexture[item.type].Height / 2));
|
||||
if (drawPlayer.direction == -1)
|
||||
origin4 = new Vector2((float)(Main.itemTexture[item.type].Width + num107), (float)(Main.itemTexture[item.type].Height / 2));
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X + vector13.X), (float)(int)(vector.Y - Main.screenPosition.Y + vector13.Y)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
origin4,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X + vector13.X), (float)(int)(vector.Y - Main.screenPosition.Y + vector13.Y)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
origin4,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
// Sword
|
||||
else if (item.type == ModContent.ItemType<Excelsus>() || item.type == ModContent.ItemType<EssenceFlayer>() || item.type == ModContent.ItemType<TheEnforcer>() ||
|
||||
item.type == ModContent.ItemType<ElementalExcalibur>() || item.type == ModContent.ItemType<TerrorBlade>() || item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ExcelsusGlow");
|
||||
if (item.type == ModContent.ItemType<EssenceFlayer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow");
|
||||
else if (item.type == ModContent.ItemType<TheEnforcer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow");
|
||||
else if (item.type == ModContent.ItemType<ElementalExcalibur>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ElementalExcaliburGlow");
|
||||
else if (item.type == ModContent.ItemType<TerrorBlade>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow");
|
||||
else if (item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow");
|
||||
|
||||
// Sword
|
||||
else if (item.type == ModContent.ItemType<Excelsus>() || item.type == ModContent.ItemType<EssenceFlayer>() || item.type == ModContent.ItemType<TheEnforcer>() ||
|
||||
item.type == ModContent.ItemType<ElementalExcalibur>() || item.type == ModContent.ItemType<TerrorBlade>() || item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ExcelsusGlow");
|
||||
if (item.type == ModContent.ItemType<EssenceFlayer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/EssenceFlayerGlow");
|
||||
else if (item.type == ModContent.ItemType<TheEnforcer>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TheEnforcerGlow");
|
||||
else if (item.type == ModContent.ItemType<ElementalExcalibur>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ElementalExcaliburGlow");
|
||||
else if (item.type == ModContent.ItemType<TerrorBlade>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/TerrorBladeGlow");
|
||||
else if (item.type == ModContent.ItemType<EtherealSubjugator>())
|
||||
texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Summon/EtherealSubjugatorGlow");
|
||||
float yOffset = drawPlayer.gravDir == -1f ? 0f : (float)Main.itemTexture[item.type].Height;
|
||||
|
||||
float yOffset = drawPlayer.gravDir == -1f ? 0f : (float)Main.itemTexture[item.type].Height;
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X), (float)(int)(vector.Y - Main.screenPosition.Y)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
new Vector2((float)Main.itemTexture[item.type].Width * 0.5f - (float)Main.itemTexture[item.type].Width * 0.5f * (float)drawPlayer.direction, yOffset) + Vector2.Zero,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float)(int)(vector.X - Main.screenPosition.X), (float)(int)(vector.Y - Main.screenPosition.Y)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)),
|
||||
Color.White,
|
||||
drawPlayer.itemRotation,
|
||||
new Vector2((float)Main.itemTexture[item.type].Width * 0.5f - (float)Main.itemTexture[item.type].Width * 0.5f * (float)drawPlayer.direction, yOffset) + Vector2.Zero,
|
||||
item.scale,
|
||||
effect,
|
||||
0);
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
}
|
||||
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
//NOTE -- This doesn't work and I don't know what I'm doing
|
||||
|
||||
/*Microsoft.Xna.Framework.Color color12 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int) ((double) drawPlayer.position.X + (double) drawPlayer.width * 0.5) / 16, (int) ((double) drawPlayer.position.Y + (double) drawPlayer.height * 0.5) / 16, Microsoft.Xna.Framework.Color.White), drawInfo.shadow);*/
|
||||
|
||||
if (item.type == ModContent.ItemType<FlurrystormCannon>())
|
||||
//32 is the height of the texture, 14 is the width of the texture
|
||||
{
|
||||
Texture2D texture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tanks/FlurrystormCannonTankFull");
|
||||
|
||||
DrawData data = new DrawData(texture,
|
||||
new Vector2((float) (int) ((double) drawPlayer.position.X - (double) Main.screenPosition.X + (double) (drawPlayer.width / 2) - (double) (9 * drawPlayer.direction)) + -4f * (float) drawPlayer.direction,
|
||||
(float) (int) ((double) drawPlayer.position.Y - (double) Main.screenPosition.Y + (double) (drawPlayer.height / 2) + 2.0 * (double) drawPlayer.gravDir + (double) -8f * (double) drawPlayer.gravDir)),
|
||||
new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, 14, 32)),
|
||||
Color.White,
|
||||
drawPlayer.bodyRotation,
|
||||
new Vector2((float) (14 / 2),
|
||||
(float) (32 / 2)),
|
||||
1f,
|
||||
effect,
|
||||
0);
|
||||
|
||||
Main.playerDrawData.Add(data);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -7972,7 +8014,7 @@ namespace CalamityMod.CalPlayer
|
||||
fullBright = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Nurse Modifications
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer
|
||||
@@ -585,10 +583,19 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
|
||||
if(modPlayer.fearmongerSet && modPlayer.fearmongerRegenFrames > 0)
|
||||
{
|
||||
player.lifeRegen += 14;
|
||||
player.lifeRegenTime += 7;
|
||||
if (player.lifeRegenTime < 1800)
|
||||
player.lifeRegenTime = 1800;
|
||||
}
|
||||
|
||||
if (modPlayer.etherealExtorter || player.ZoneGlowshroom)
|
||||
player.lifeRegen += 1;
|
||||
|
||||
if (!player.shinyStone)
|
||||
// Standing still healing bonuses (all exclusive with vanilla Shiny Stone)
|
||||
if (!player.shinyStone)
|
||||
{
|
||||
int lifeRegenTimeMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 450 : 1800;
|
||||
int lifeRegenMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 1 : 4;
|
||||
|
||||
@@ -39,6 +39,10 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// No category
|
||||
|
||||
// Decrease the counter on Fearmonger set turbo regeneration
|
||||
if (modPlayer.fearmongerRegenFrames > 0)
|
||||
modPlayer.fearmongerRegenFrames--;
|
||||
|
||||
// Reduce the expert debuff time multiplier to the normal mode multiplier
|
||||
if (Config.ExpertDebuffDurationReduction)
|
||||
Main.expertDebuffTime = 1f;
|
||||
@@ -384,7 +388,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (!tentaclesPresent[i])
|
||||
{
|
||||
float modifier = player.meleeDamage + player.magicDamage + player.rangedDamage +
|
||||
modPlayer.throwingDamage + player.minionDamage;
|
||||
modPlayer.throwingDamage + player.minionDamage + ((player.allDamage - 1f) * 5f);
|
||||
|
||||
modifier /= 5f;
|
||||
int damage = (int)(666 * modifier);
|
||||
@@ -539,16 +543,15 @@ namespace CalamityMod.CalPlayer
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f);
|
||||
Dust expr_A4_cp_0 = Main.dust[num];
|
||||
expr_A4_cp_0.position.X += (float)Main.rand.Next(-20, 21);
|
||||
Dust expr_CB_cp_0 = Main.dust[num];
|
||||
expr_CB_cp_0.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
Main.dust[num].velocity *= 0.9f;
|
||||
Main.dust[num].noGravity = true;
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
Dust dust = Main.dust[num];
|
||||
dust.position.X += (float)Main.rand.Next(-20, 21);
|
||||
dust.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
dust.velocity *= 0.9f;
|
||||
dust.noGravity = true;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
if (Main.rand.NextBool(2))
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -620,16 +623,15 @@ namespace CalamityMod.CalPlayer
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 5, 0f, 0f, 100, default, 2f);
|
||||
Dust expr_A4_cp_0 = Main.dust[num];
|
||||
expr_A4_cp_0.position.X += (float)Main.rand.Next(-20, 21);
|
||||
Dust expr_CB_cp_0 = Main.dust[num];
|
||||
expr_CB_cp_0.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
Main.dust[num].velocity *= 0.9f;
|
||||
Main.dust[num].noGravity = true;
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
Dust dust = Main.dust[num];
|
||||
dust.position.X += (float)Main.rand.Next(-20, 21);
|
||||
dust.position.Y += (float)Main.rand.Next(-20, 21);
|
||||
dust.velocity *= 0.9f;
|
||||
dust.noGravity = true;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player);
|
||||
if (Main.rand.NextBool(2))
|
||||
Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
dust.scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1207,12 +1209,12 @@ namespace CalamityMod.CalPlayer
|
||||
// Gravistar Sabaton effects
|
||||
if (modPlayer.gSabaton)
|
||||
{
|
||||
if (modPlayer.gSabatonCooldown <= 0)
|
||||
if (modPlayer.gSabatonCooldown <= 0 && !player.mount.Active)
|
||||
{
|
||||
if (player.controlDown && player.releaseDown)
|
||||
if (player.controlDown && player.releaseDown && player.position.Y != player.oldPosition.Y)
|
||||
{
|
||||
modPlayer.gSabatonFall = 300;
|
||||
modPlayer.gSabatonCooldown = 480;
|
||||
modPlayer.gSabatonCooldown = 480; //8 second cooldown
|
||||
player.gravity *= 2f;
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, player.velocity.X, player.velocity.Y, ModContent.ProjectileType<SabatonSlam>(), 0, 0, player.whoAmI);
|
||||
}
|
||||
@@ -2454,7 +2456,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
float ai1 = (float)(I * 120);
|
||||
Projectile.NewProjectile(player.Center.X + (float)(Math.Sin(I * 120) * 550), player.Center.Y + (float)(Math.Cos(I * 120) * 550), 0f, 0f,
|
||||
ModContent.ProjectileType<GhostlyMine>(), (int)((modPlayer.auricSet ? 15000f : 5000f) * player.minionDamage), 1f, player.whoAmI, ai1, 0f);
|
||||
ModContent.ProjectileType<GhostlyMine>(), (int)((modPlayer.auricSet ? 15000f : 5000f) * (player.allDamage + player.minionDamage - 1f)), 1f, player.whoAmI, ai1, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2673,7 +2675,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.AddBuff(ModContent.BuffType<YharonKindleBuff>(), 3600, true);
|
||||
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SonOfYharon>()] < 2)
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<SonOfYharon>(), (int)(232f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<SonOfYharon>(), (int)(232f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2697,16 +2699,16 @@ namespace CalamityMod.CalPlayer
|
||||
player.AddBuff(ModContent.BuffType<GuardianDefense>(), 3600, true);
|
||||
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianDefense>()] < 1)
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, ModContent.ProjectileType<MiniGuardianDefense>(), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, ModContent.ProjectileType<MiniGuardianDefense>(), (int)(baseDamage * (player.allDamage + player.minionDamage - 1f)), 1f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
|
||||
if (modPlayer.tarraSummon || modPlayer.bloodflareSummon || modPlayer.godSlayerSummon || modPlayer.silvaSummon || modPlayer.dsSetBonus || modPlayer.omegaBlueSet)
|
||||
if (modPlayer.tarraSummon || modPlayer.bloodflareSummon || modPlayer.godSlayerSummon || modPlayer.silvaSummon || modPlayer.dsSetBonus || modPlayer.omegaBlueSet || modPlayer.fearmongerSet)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<GuardianOffense>()) == -1)
|
||||
player.AddBuff(ModContent.BuffType<GuardianOffense>(), 3600, true);
|
||||
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] < 1)
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<MiniGuardianAttack>(), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<MiniGuardianAttack>(), (int)(baseDamage * (player.allDamage + player.minionDamage - 1f)), 1f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2734,7 +2736,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<TeslaAura>()] < 1)
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<TeslaAura>(), 25, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<TeslaAura>(), 15, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
else if (player.ownedProjectileCounts[ModContent.ProjectileType<TeslaAura>()] != 0)
|
||||
|
||||
@@ -524,7 +524,10 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<NorfleetCannon>(),
|
||||
ModContent.ProjectileType<NorfleetComet>(),
|
||||
ModContent.ProjectileType<NorfleetExplosion>(),
|
||||
ModContent.ProjectileType<AetherBeam>()
|
||||
ModContent.ProjectileType<AetherBeam>(),
|
||||
ModContent.ProjectileType<FlurrystormCannonShooting>(),
|
||||
ModContent.ProjectileType<MagnomalyBeam>(),
|
||||
ModContent.ProjectileType<MagnomalyAura>()
|
||||
};
|
||||
|
||||
projectileMinionList = new List<int>()
|
||||
@@ -870,6 +873,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<TotalityBreakers>(),
|
||||
ModContent.ItemType<ProfanedPartisan>(),
|
||||
ModContent.ItemType<BlastBarrel>(),
|
||||
ModContent.ItemType<LatcherMine>(),
|
||||
ModContent.ItemType<BouncingBetty>(),
|
||||
ModContent.ItemType<HeliumFlash>()
|
||||
};
|
||||
|
||||
@@ -916,6 +921,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<Icebreaker>(),
|
||||
ModContent.ItemType<KelvinCatalyst>(),
|
||||
ModContent.ItemType<FrostcrushValari>(),
|
||||
ModContent.ItemType<Endogenesis>(),
|
||||
ModContent.ItemType<FlurrystormCannon>(),
|
||||
//Cryonic Bar set stuff, could potentially be removed
|
||||
ModContent.ItemType<Trinity>(),
|
||||
ModContent.ItemType<Shimmerspark>(),
|
||||
@@ -1034,6 +1041,9 @@ namespace CalamityMod
|
||||
ModContent.ItemType<PolarisParrotfish>(),
|
||||
ModContent.ItemType<SparklingEmpress>(),
|
||||
ModContent.ItemType<NastyCholla>(),
|
||||
ModContent.ItemType<PoisonPack>(),
|
||||
ModContent.ItemType<PlantationStaff>(),
|
||||
ModContent.ItemType<SeasSearing>(),
|
||||
ModContent.ItemType<YateveoBloom>()
|
||||
};
|
||||
|
||||
@@ -1945,8 +1955,6 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<RadiantStarKnife>(),
|
||||
ModContent.ProjectileType<RadiantStar2>(),
|
||||
ModContent.ProjectileType<ShatteredSunKnife>(),
|
||||
ModContent.ProjectileType<ShatteredSun2>(),
|
||||
ModContent.ProjectileType<ShatteredSun3>(),
|
||||
ModContent.ProjectileType<StellarKnifeProj>(),
|
||||
ModContent.ProjectileType<StormfrontRazorProjectile>(),
|
||||
ModContent.ProjectileType<TarragonThrowingDartProjectile>(),
|
||||
@@ -1976,6 +1984,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<TotalityBreakers>(),
|
||||
ModContent.ItemType<BlastBarrel>(),
|
||||
ModContent.ItemType<Penumbra>(),
|
||||
ModContent.ItemType<LatcherMine>(),
|
||||
ModContent.ItemType<Supernova>(),
|
||||
ModContent.ItemType<ShockGrenade>()
|
||||
};
|
||||
|
||||
@@ -1992,6 +2002,8 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<ConsecratedWaterProjectile>(),
|
||||
ModContent.ProjectileType<DesecratedWaterProj>(),
|
||||
ModContent.ProjectileType<PenumbraBomb>(),
|
||||
ModContent.ProjectileType<LatcherMineProjectile>(),
|
||||
ModContent.ProjectileType<SupernovaBomb>(),
|
||||
ModContent.ProjectileType<ShockGrenadeProjectile>()
|
||||
};
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 225 B |
|
After Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 648 B |
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 310 B |
|
Before Width: | Height: | Size: 912 B After Width: | Height: | Size: 677 B |
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 432 B |
|
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 946 B |
|
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 490 B |
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 391 B |
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 316 B |
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<CloudElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CloudElementalMinion>(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CloudElementalMinion>(), (int)(45f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<FungalClumpMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<FungalClumpMinion>(), (int)(10f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<FungalClumpMinion>(), (int)(10f * (player.allDamage + player.minionDamage - 1f)), 1f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<GladiatorSword>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GladiatorSword>(), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GladiatorSword2>(), (int)(20f * player.minionDamage), 6f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GladiatorSword>(), (int)(20f * (player.allDamage + player.minionDamage - 1f)), 6f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<GladiatorSword2>(), (int)(20f * (player.allDamage + player.minionDamage - 1f)), 6f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gravistar Sabaton");
|
||||
Tooltip.SetDefault("Double tap the DOWN key to increase your fall speed for 5 seconds\n" +
|
||||
Tooltip.SetDefault("Tap the DOWN key to increase your fall speed for 5 seconds\n" +
|
||||
"This has a 8 second cooldown\n" +
|
||||
"Striking the ground with increased fall speed will cause an astral explosion");
|
||||
}
|
||||
|
||||
@@ -76,23 +76,23 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<BrimstoneElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<BrimstoneElementalMinion>(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<BrimstoneElementalMinion>(), (int)((float)damage * damageMult * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<WaterElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<WaterElementalMinion>(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<WaterElementalMinion>(), (int)((float)damage * damageMult * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalHealer>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalHealer>(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalHealer>(), (int)((float)damage * damageMult * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalMinion>(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalMinion>(), (int)((float)damage * damageMult * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<CloudElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CloudElementalMinion>(), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CloudElementalMinion>(), (int)((float)damage * damageMult * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<WaterElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<WaterElementalMinion>(), (int)(65f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<WaterElementalMinion>(), (int)(65f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Rogue projectiles create nanoblades as they travel\n" +
|
||||
"Stealth strikes summon lunar flares and sparks on enemy hits\n" +
|
||||
"Stealth strikes summon nanobeams and sparks on enemy hits\n" +
|
||||
"Stealth strikes have +20 armor penetration, deal 5% more damage, and heal for 1 HP\n" +
|
||||
"Rogue weapons have a chance to instantly kill normal enemies\n" +
|
||||
"5% increased rogue damage, 5% increased rogue crit chance, and 15% increased rogue velocity\n" +
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Armor;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -11,6 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ornate Shield");
|
||||
Tooltip.SetDefault("Boosted damage reduction and health while wearing the Daedalus armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -23,6 +25,18 @@ namespace CalamityMod.Items.Accessories
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if ((player.armor[0].type == ModContent.ItemType<DaedalusHat>() || player.armor[0].type == ModContent.ItemType<DaedalusHeadgear>() ||
|
||||
player.armor[0].type == ModContent.ItemType<DaedalusHelm>() || player.armor[0].type == ModContent.ItemType<DaedalusHelmet>() ||
|
||||
player.armor[0].type == ModContent.ItemType<DaedalusVisor>()) &&
|
||||
player.armor[1].type == ModContent.ItemType<DaedalusBreastplate>() && player.armor[2].type == ModContent.ItemType<DaedalusLeggings>())
|
||||
{
|
||||
player.endurance += 0.08f;
|
||||
player.statLifeMax2 += 20;
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plagued Fuel Pack");
|
||||
Tooltip.SetDefault("*5 increased rogue damage\n" +
|
||||
Tooltip.SetDefault("5% increased rogue damage\n" +
|
||||
"15% increased rogue projectile velocity\n" +
|
||||
"Press [Hotkey] to consume 25% of your maximum stealth to perform a swift upwards/diagonal dash which leaves a trail of plagued clouds\n" +
|
||||
"This effect has a 3 second cooldown before it can be used again");
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<BrimstoneElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<BrimstoneElementalMinion>(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<BrimstoneElementalMinion>(), (int)(45f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Armor;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,7 +11,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shield of the Ocean");
|
||||
Tooltip.SetDefault("Increased defense by 5 when submerged in liquid");
|
||||
Tooltip.SetDefault("Increased defense by 5 when submerged in liquid\n" +
|
||||
"Increases movement speed and life regen while wearing the Victide armor");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -29,6 +31,14 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
player.statDefense += 5;
|
||||
}
|
||||
if ((player.armor[0].type == ModContent.ItemType<VictideHeadgear>() || player.armor[0].type == ModContent.ItemType<VictideHelm>() ||
|
||||
player.armor[0].type == ModContent.ItemType<VictideHelmet>() || player.armor[0].type == ModContent.ItemType<VictideMask>() ||
|
||||
player.armor[0].type == ModContent.ItemType<VictideVisage>()) &&
|
||||
player.armor[1].type == ModContent.ItemType<VictideBreastplate>() && player.armor[2].type == ModContent.ItemType<VictideLeggings>())
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
|
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 650 B |
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<FungalClumpMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<FungalClumpMinion>(), (int)(1000f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<FungalClumpMinion>(), (int)(1000f * (player.allDamage + player.minionDamage - 1f)), 1f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.allDamage += 0.15f;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalMinion>(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalMinion>(), (int)(45f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalHealer>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalHealer>(), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SandElementalHealer>(), (int)(45f * (player.allDamage + player.minionDamage - 1f)), 2f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<Valkyrie>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<Valkyrie>(), (int)(25f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<Valkyrie>(), (int)(25f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.16f;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Astral Breastplate");
|
||||
Tooltip.SetDefault("+20 max mana and life\n" +
|
||||
Tooltip.SetDefault("+80 max mana and +20 max life\n" +
|
||||
"+3 max minions\n" +
|
||||
"Creature detection");
|
||||
}
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.statLifeMax2 += 20;
|
||||
player.statManaMax2 += 20;
|
||||
player.statManaMax2 += 80;
|
||||
player.maxMinions += 3;
|
||||
player.detectCreature = true;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<ChaosSpirit>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ChaosSpirit>(), (int)(190f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ChaosSpirit>(), (int)(190f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.4f;
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SilvaCrystal>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SilvaCrystal>(), (int)(3000f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SilvaCrystal>(), (int)(3000f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
if (player.FindBuffIndex(ModContent.BuffType<Mechworm>()) == -1)
|
||||
{
|
||||
@@ -105,7 +105,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
maxMinionScale = 10;
|
||||
}
|
||||
int damage = (int)(35 * ((player.minionDamage * 5 / 3) + (player.minionDamage * 0.46f * (maxMinionScale - 1))));
|
||||
int damage = (int)(35 * (((player.allDamage + player.minionDamage - 1f) * 5 / 3) + ((player.allDamage + player.minionDamage - 1f) * 0.46f * (maxMinionScale - 1))));
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default);
|
||||
Vector2 vector3 = Main.MouseWorld - vector2;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<DaedalusCrystal>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<DaedalusCrystal>(), (int)(95f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<DaedalusCrystal>(), (int)(95f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.2f;
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class FearmongerGreathelm : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fearmonger Greathelm");
|
||||
Tooltip.SetDefault("+60 max mana and 10% decreased mana usage\n" +
|
||||
"10% increased minion damage and +2 max minions\n" +
|
||||
"Pure terror radiates from your eyes");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(gold: 75);
|
||||
item.defense = 38; // 132 total
|
||||
item.Calamity().postMoonLordRarity = 14;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
// Don't override the Yoraiz0r's Eye effect if the accessory itself is equipped
|
||||
if (player.yoraiz0rEye == 0)
|
||||
player.yoraiz0rEye = 3;
|
||||
|
||||
player.statManaMax2 += 60;
|
||||
player.maxMinions += 2;
|
||||
player.minionDamage += 0.1f;
|
||||
player.manaCost *= 0.9f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<FearmongerPlateMail>() && legs.type == ModContent.ItemType<FearmongerGreaves>();
|
||||
}
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawOutlines = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = @"30% increased minion damage
|
||||
Minions deal full damage while wielding weaponry
|
||||
Immunity to all forms of frost and flame
|
||||
All minion attacks grant colossal life regeneration
|
||||
15% increased damage reduction during the Pumpkin and Frost Moons
|
||||
This extra damage reduction ignores the soft cap";
|
||||
|
||||
// This bool encompasses cross-class nerf immunity, colossal life regen on minion attack, and the holiday moon DR
|
||||
player.Calamity().fearmongerSet = true;
|
||||
|
||||
// All-class armors count as rogue sets, but don't grant stealth bonuses
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
player.minionDamage += 0.3f;
|
||||
|
||||
int[] immuneDebuffs = {
|
||||
BuffID.OnFire,
|
||||
BuffID.Frostburn,
|
||||
BuffID.CursedInferno,
|
||||
BuffID.ShadowFlame, //doesn't do anything
|
||||
BuffID.Daybreak, //doesn't do anything
|
||||
BuffID.Burning,
|
||||
ModContent.BuffType<Shadowflame>(),
|
||||
ModContent.BuffType<BrimstoneFlames>(),
|
||||
ModContent.BuffType<AbyssalFlames>(),
|
||||
ModContent.BuffType<HolyFlames>(),
|
||||
ModContent.BuffType<GodSlayerInferno>(),
|
||||
BuffID.Chilled,
|
||||
BuffID.Frozen,
|
||||
ModContent.BuffType<GlacialState>(),
|
||||
};
|
||||
for (int i = 0; i < immuneDebuffs.Length; ++i)
|
||||
player.buffImmune[immuneDebuffs[i]] = true;
|
||||
|
||||
// Constantly emit dim orange light
|
||||
Lighting.AddLight(player.Center, 0.3f, 0.18f, 0f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpookyHelmet);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 8);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 8);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,52 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class FearmongerGreaves : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fearmonger Greaves");
|
||||
Tooltip.SetDefault("+2 max minions and 6% increased damage\n" +
|
||||
"50% increased minion knockback\n" +
|
||||
"15% increased movement speed\n" +
|
||||
"Taking damage makes you move very fast for a short time");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(gold: 45);
|
||||
item.defense = 44;
|
||||
item.Calamity().postMoonLordRarity = 14;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.maxMinions += 2;
|
||||
player.allDamage += 0.06f;
|
||||
player.minionKB += 0.5f;
|
||||
player.moveSpeed += 0.15f;
|
||||
player.panic = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpookyLeggings);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 10);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 419 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,52 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class FearmongerPlateMail : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fearmonger Plate Mail");
|
||||
Tooltip.SetDefault("+100 max life and 8% increased damage reduction\n" +
|
||||
"+2 max minions\n" +
|
||||
"5% increased damage and critical strike chance");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(gold: 60);
|
||||
item.defense = 50;
|
||||
item.Calamity().postMoonLordRarity = 14;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.statLifeMax2 += 100;
|
||||
player.endurance += 0.08f;
|
||||
player.maxMinions += 2;
|
||||
player.allDamage += 0.05f;
|
||||
player.Calamity().AllCritBoost(5);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpookyBreastplate);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 12);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 12);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 772 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
@@ -72,7 +72,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
maxMinionScale = 10;
|
||||
}
|
||||
int damage = (int)(35 * ((player.minionDamage * 5 / 3) + (player.minionDamage * 0.46f * (maxMinionScale - 1))));
|
||||
int damage = (int)(35 * (((player.allDamage + player.minionDamage - 1f) * 5 / 3) + ((player.allDamage + player.minionDamage - 1f) * 0.46f * (maxMinionScale - 1))));
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default);
|
||||
Vector2 vector3 = Main.MouseWorld - vector2;
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<Shellfish>()] < 2)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<Shellfish>(), (int)((double)1500 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<Shellfish>(), (int)((double)1500 * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<ReaverOrb>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ReaverOrb>(), (int)(80f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<ReaverOrb>(), (int)(80f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.16f;
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SilvaCrystal>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SilvaCrystal>(), (int)(1500f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<SilvaCrystal>(), (int)(1500f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
player.minionDamage += 0.75f;
|
||||
|
||||
@@ -51,11 +51,11 @@ namespace CalamityMod.Items.Armor
|
||||
}
|
||||
if (WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType<CrimsonSlimeGodMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CrimsonSlimeGodMinion>(), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CrimsonSlimeGodMinion>(), (int)(33f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
else if (!WorldGen.crimson && player.ownedProjectileCounts[ModContent.ProjectileType<CorruptionSlimeGodMinion>()] < 1)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CorruptionSlimeGodMinion>(), (int)(33f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType<CorruptionSlimeGodMinion>(), (int)(33f * (player.allDamage + player.minionDamage - 1f)), 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class AquaticScourgeMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Aquatic Scourge Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 553 B |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,25 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class BrimstoneWaifuMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Brimstone Elemental Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 28;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 463 B |
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,25 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class BumblefuckMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bumblebirb Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 418 B |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,26 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
class CeaselessVoidMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ceaseless Void Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 414 B |
|
After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 597 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 785 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,25 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class PolterghastMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Polterghast Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 584 B |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,25 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class ProfanedGuardianMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Profaned Guardian Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 519 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 557 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,27 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
class RavagerMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ravager Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,27 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
class SignusMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Signus Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 365 B |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,26 @@
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
class StormWeaverMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Storm Weaver Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 524 B |