Merge branch 'master' into thank-you-paintings
No files matched your search
@@ -83,6 +83,18 @@ namespace CalamityMod.Buffs
|
||||
tip = "22.5% increased damage";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleEndurance1:
|
||||
tip = "Damage taken reduced by 10%";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleEndurance2:
|
||||
tip = "Damage taken reduced by 20%";
|
||||
break;
|
||||
|
||||
case BuffID.BeetleEndurance3:
|
||||
tip = "Damage taken reduced by 30%";
|
||||
break;
|
||||
|
||||
case BuffID.WeaponImbueVenom:
|
||||
case BuffID.WeaponImbueCursedFlames:
|
||||
case BuffID.WeaponImbueFire:
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class BendyBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Dreamfog");
|
||||
Description.SetDefault("Xi believes in Yuu");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.lightPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().bendyPet = true;
|
||||
bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<BendyPet>()] <= 0;
|
||||
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, ModContent.ProjectileType<BendyPet>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 738 B |
@@ -1,28 +1,29 @@
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using Microsoft.Xna.Framework;
|
||||
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 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)
|
||||
{
|
||||
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType<RotomPet>(), 0, 0f, player.whoAmI, 50f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
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)
|
||||
{
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<RotomPet>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Young Siren");
|
||||
DisplayName.SetDefault("Ocean Spirit");
|
||||
Description.SetDefault("Small and cute");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.lightPet[Type] = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 515 B |
@@ -8,8 +8,9 @@ namespace CalamityMod.Buffs.Potions
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Penumbra");
|
||||
Description.SetDefault("Stealth regenerates at 10% speed while moving\n" +
|
||||
"The boost increases to 20% at night and to 30% during an eclipse");
|
||||
Description.SetDefault("Stealth regenerates 15% faster while moving\n" +
|
||||
"At night, stealth additionally regenerates 15% faster while standing still\n" +
|
||||
"Both boosts increase to 20% during a solar eclipse");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class BloodyBoost : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloody Boost");
|
||||
Description.SetDefault("Increased offensive and defensive stats\n" +
|
||||
"Healing potions grant more health");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().bloodPactBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 607 B |
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class KamiBuff : ModBuff
|
||||
{
|
||||
public const float RunSpeedBoost = 0.2f;
|
||||
public const float RunAccelerationBoost = 0.4f;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kami Injection");
|
||||
Description.SetDefault("Increased defense, movement speed, and damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().kamiBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 423 B |
@@ -8,8 +8,8 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Siren");
|
||||
Description.SetDefault("You are a siren now");
|
||||
DisplayName.SetDefault("Water Elemental");
|
||||
Description.SetDefault("You are a water elemental now");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
@@ -22,17 +22,8 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
if (modPlayer.sirenBoobsPrevious)
|
||||
{
|
||||
modPlayer.sirenBoobsPower = true;
|
||||
player.statDefense += 1 +
|
||||
(NPC.downedBoss3 ? 4 : 0) +
|
||||
(Main.hardMode ? 5 : 0) +
|
||||
(NPC.downedMoonlord ? 5 : 0);
|
||||
player.detectCreature = true;
|
||||
player.lifeRegen += 0 +
|
||||
(NPC.downedBoss3 ? 1 : 0) +
|
||||
(NPC.downedMoonlord ? 1 : 0);
|
||||
player.ignoreWater = NPC.downedBoss3;
|
||||
player.accFlipper = true;
|
||||
player.discount = Main.hardMode;
|
||||
if (player.breath <= player.breathMax + 2 && !modPlayer.ZoneAbyss && NPC.downedBoss3)
|
||||
{
|
||||
player.breath = player.breathMax + 3;
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class SirenBobsAlt : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Siren");
|
||||
Description.SetDefault("You are a siren now");
|
||||
Main.debuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
canBeCleared = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.sirenBoobsAltPrevious)
|
||||
{
|
||||
modPlayer.sirenBoobsAltPower = true;
|
||||
player.statDefense += 1 +
|
||||
(NPC.downedBoss3 ? 4 : 0) +
|
||||
(Main.hardMode ? 5 : 0) +
|
||||
(NPC.downedMoonlord ? 5 : 0);
|
||||
player.dangerSense = true;
|
||||
player.lifeRegen += 0 +
|
||||
(NPC.downedBoss3 ? 1 : 0) +
|
||||
(NPC.downedMoonlord ? 1 : 0);
|
||||
player.ignoreWater = NPC.downedBoss3;
|
||||
player.accFlipper = true;
|
||||
player.discount = Main.hardMode;
|
||||
if (player.breath <= player.breathMax + 2 && !modPlayer.ZoneAbyss && NPC.downedBoss3)
|
||||
{
|
||||
player.breath = player.breathMax + 3;
|
||||
}
|
||||
if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<SirenWaterSpeed>(), 360);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 663 B |
@@ -0,0 +1,33 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class KamiDebuff : ModBuff
|
||||
{
|
||||
public const float MultiplicativeDamageReduction = 0.8f;
|
||||
public const float MaxNPCSpeed = 16f; // Hard-cap for npc speed when afflicted with this debuff. Does not affect certain NPCs and does not affect any bosses (Basically only works on boss minions).
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kami Flu");
|
||||
Description.SetDefault("Defenseless and dying");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
|
||||
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().teslaFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 514 B |
|
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 546 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class MountedScannerBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Mounted Scanner");
|
||||
Description.SetDefault("Powerful machinery surrounds 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<MountedScannerSummon>()] > 0)
|
||||
{
|
||||
modPlayer.mountedScanner = true;
|
||||
}
|
||||
if (!modPlayer.mountedScanner)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 515 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class PoleWarperBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pole Warper");
|
||||
Description.SetDefault("Sentient magnets are attracted to 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<PoleWarperSummon>()] > 0)
|
||||
{
|
||||
modPlayer.poleWarper = true;
|
||||
}
|
||||
if (!modPlayer.poleWarper)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 481 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 642 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class SnakeEyesBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Snake Eyes");
|
||||
Description.SetDefault("Always watching...");
|
||||
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<SnakeEyesSummon>()] > 0)
|
||||
{
|
||||
modPlayer.snakeEyes = true;
|
||||
}
|
||||
if (!modPlayer.snakeEyes)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 516 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class StarSwallowerBuff : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Star Swallower");
|
||||
Description.SetDefault("Mmmm myes");
|
||||
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<StarSwallowerSummon>()] > 0)
|
||||
{
|
||||
modPlayer.starSwallowerPetFroge = true;
|
||||
}
|
||||
if (!modPlayer.starSwallowerPetFroge)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 520 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 750 B |
@@ -97,6 +97,8 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityUtils.AddWithCondition<int>(fishList, ItemID.FlarefinKoi, !modPlayer.ZoneCalamity);
|
||||
CalamityUtils.AddWithCondition<int>(fishList, ItemID.Obsidifish, !modPlayer.ZoneCalamity);
|
||||
CalamityUtils.AddWithCondition<int>(fishList, ModContent.ItemType<CoastalDemonfish>(), modPlayer.ZoneCalamity);
|
||||
CalamityUtils.AddWithCondition<int>(fishList, ModContent.ItemType<Shadowfish>(), modPlayer.ZoneCalamity);
|
||||
CalamityUtils.AddWithCondition<int>(fishList, ModContent.ItemType<BrimstoneFish>(), modPlayer.ZoneCalamity);
|
||||
}
|
||||
else if (water)
|
||||
{
|
||||
@@ -166,7 +168,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (Main.rand.Next(100) < chanceForCrates)
|
||||
{
|
||||
if (Main.rand.NextBool(chanceForRareItems) && modPlayer.enchantedPearl && modPlayer.fishingStation && player.cratePotion)
|
||||
if (Main.rand.NextBool(chanceForBiomeCrate))
|
||||
{
|
||||
if (modPlayer.ZoneCalamity)
|
||||
caughtType = ModContent.ItemType<BrimstoneCrate>();
|
||||
@@ -436,14 +438,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (power >= 60 && player.FindBuffIndex(BuffID.Gills) > -1 && CalamityWorld.downedCalamitas && Main.rand.NextBool(25) && power < 160)
|
||||
if (player.FindBuffIndex(BuffID.Gills) > -1 && CalamityWorld.downedCalamitas && Main.rand.NextBool(25))
|
||||
{
|
||||
caughtType = ModContent.ItemType<Floodtide>();
|
||||
}
|
||||
|
||||
if (junk)
|
||||
{
|
||||
if (canSulphurFish && power < 40)
|
||||
if (canSulphurFish)
|
||||
{
|
||||
caughtType = ModContent.ItemType<PlantyMush>();
|
||||
}
|
||||
@@ -472,23 +474,17 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (canSulphurFish)
|
||||
{
|
||||
if (power >= 40)
|
||||
if (Main.rand.NextBool(15))
|
||||
{
|
||||
if (Main.rand.NextBool(15) && power < 80)
|
||||
caughtType = ModContent.ItemType<PlantyMush>();
|
||||
}
|
||||
if (Main.rand.NextFloat() < 0.08f)
|
||||
{
|
||||
caughtType = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
caughtType = ModContent.ItemType<PlantyMush>();
|
||||
}
|
||||
if (Main.rand.NextBool(25) && power < 160)
|
||||
{
|
||||
caughtType = ModContent.ItemType<AlluringBait>();
|
||||
}
|
||||
if (power >= 110)
|
||||
{
|
||||
if (Main.rand.NextBool(25) && power < 240)
|
||||
{
|
||||
caughtType = ModContent.ItemType<AbyssalAmulet>();
|
||||
}
|
||||
}
|
||||
ModContent.ItemType<AlluringBait>(),
|
||||
ModContent.ItemType<AbyssalAmulet>()
|
||||
});
|
||||
}
|
||||
if (player.cratePotion && Main.rand.NextBool(5)) // 20%
|
||||
{
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
lifeRegenLost += 16;
|
||||
lifeRegenLost += modPlayer.abaddon ? 8 : 16;
|
||||
}
|
||||
|
||||
if (modPlayer.nightwither)
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
lifeRegenLost += 20;
|
||||
lifeRegenLost += modPlayer.reducedPlagueDmg ? 10 : 20;
|
||||
}
|
||||
|
||||
if (modPlayer.bBlood)
|
||||
@@ -391,7 +391,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (player.whoAmI == Main.myPlayer && modPlayer.bloodfinTimer <= 0)
|
||||
{
|
||||
modPlayer.bloodfinTimer = 30;
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.75))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.75) && !CalamityWorld.ironHeart)
|
||||
player.statLife += 1;
|
||||
}
|
||||
}
|
||||
@@ -461,7 +461,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen /= 2;
|
||||
}
|
||||
|
||||
if (modPlayer.omegaBlueChestplate || player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
if (CalamityWorld.ironHeart || modPlayer.omegaBlueChestplate || modPlayer.godSlayerCooldown || player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
@@ -472,7 +472,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegenCount = 0;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.LethalLava || CalamityWorld.death) //always occurs in Death regardless of config
|
||||
if (CalamityConfig.Instance.LethalLava || CalamityWorld.death) // Always occurs in Death regardless of config
|
||||
{
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
@@ -488,23 +488,23 @@ namespace CalamityMod.CalPlayer
|
||||
player.AddBuff(ModContent.BuffType<LethalLavaBurn>(), 2, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.lethalLavaBurn)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
int lifeRegenDown = player.lavaImmune ? 9 : 18;
|
||||
|
||||
if (player.lavaRose)
|
||||
lifeRegenDown = 3;
|
||||
|
||||
player.lifeRegen -= lifeRegenDown * lifeRegenMult;
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.hInferno)
|
||||
if (modPlayer.lethalLavaBurn)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
int lifeRegenDown = player.lavaImmune ? 9 : 18;
|
||||
|
||||
if (player.lavaRose)
|
||||
lifeRegenDown = 3;
|
||||
|
||||
player.lifeRegen -= lifeRegenDown * lifeRegenMult;
|
||||
}
|
||||
|
||||
if (modPlayer.hInferno)
|
||||
{
|
||||
modPlayer.hInfernoBoost++;
|
||||
|
||||
@@ -596,7 +596,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.absorber)
|
||||
{
|
||||
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
|
||||
if (player.StandingStill() && player.itemAnimation == 0)
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
|
||||
@@ -691,6 +691,10 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
if (modPlayer.handWarmer && modPlayer.eskimoSet)
|
||||
{
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
if (modPlayer.bloodPactBoost)
|
||||
{
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
@@ -713,195 +717,159 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen += 1;
|
||||
|
||||
// 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;
|
||||
float lifeRegenLifeRegenTimeMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 8f : 30f;
|
||||
if (!player.shinyStone)
|
||||
{
|
||||
int lifeRegenTimeMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 450 : 1800;
|
||||
int lifeRegenMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 1 : 4;
|
||||
float lifeRegenLifeRegenTimeMaxBoost = CalamityPlayer.areThereAnyDamnBosses ? 8f : 30f;
|
||||
|
||||
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
|
||||
{
|
||||
if (modPlayer.shadeRegen)
|
||||
{
|
||||
if (player.lifeRegenTime > 90 && player.lifeRegenTime < lifeRegenTimeMaxBoost)
|
||||
player.lifeRegenTime = lifeRegenTimeMaxBoost;
|
||||
if (player.StandingStill() && player.itemAnimation == 0)
|
||||
{
|
||||
bool boostedRegen = false;
|
||||
bool noSunlight = false;
|
||||
if (modPlayer.shadeRegen)
|
||||
{
|
||||
boostedRegen = true;
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(30))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 173, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.cFreeze)
|
||||
{
|
||||
boostedRegen = true;
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(30))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 0.75f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.draedonsHeart)
|
||||
{
|
||||
boostedRegen = true;
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 107, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.photosynthesis)
|
||||
{
|
||||
boostedRegen = true;
|
||||
if (!Main.dayTime)
|
||||
noSunlight = true;
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 244, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (boostedRegen)
|
||||
{
|
||||
int lifeRegenTimeMaxBoost2 = !noSunlight ? lifeRegenTimeMaxBoost : (lifeRegenTimeMaxBoost / 5);
|
||||
int lifeRegenMaxBoost2 = !noSunlight ? lifeRegenMaxBoost : (lifeRegenMaxBoost / 5);
|
||||
float lifeRegenLifeRegenTimeMaxBoost2 = !noSunlight ? lifeRegenLifeRegenTimeMaxBoost : (lifeRegenLifeRegenTimeMaxBoost / 5);
|
||||
|
||||
player.lifeRegenTime += lifeRegenMaxBoost;
|
||||
player.lifeRegen += lifeRegenMaxBoost;
|
||||
if (player.lifeRegenTime > 90 && player.lifeRegenTime < lifeRegenTimeMaxBoost2)
|
||||
player.lifeRegenTime = lifeRegenTimeMaxBoost2;
|
||||
|
||||
float num3 = player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost;
|
||||
player.lifeRegenTime += lifeRegenMaxBoost2;
|
||||
player.lifeRegen += lifeRegenMaxBoost2;
|
||||
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
float num3 = player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost2)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost2;
|
||||
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(30))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 173, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.cFreeze)
|
||||
{
|
||||
if (player.lifeRegenTime > 90 && player.lifeRegenTime < lifeRegenTimeMaxBoost)
|
||||
player.lifeRegenTime = lifeRegenTimeMaxBoost;
|
||||
|
||||
player.lifeRegenTime += lifeRegenMaxBoost;
|
||||
player.lifeRegen += lifeRegenMaxBoost;
|
||||
|
||||
float num3 = (player.lifeRegenTime * 2.5f); // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost;
|
||||
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(30))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 0.75f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.draedonsHeart)
|
||||
{
|
||||
if (player.lifeRegenTime > 90 && player.lifeRegenTime < lifeRegenTimeMaxBoost)
|
||||
player.lifeRegenTime = lifeRegenTimeMaxBoost;
|
||||
|
||||
player.lifeRegenTime += lifeRegenMaxBoost;
|
||||
player.lifeRegen += lifeRegenMaxBoost;
|
||||
|
||||
float num3 = player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost;
|
||||
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 107, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.photosynthesis)
|
||||
{
|
||||
int lifeRegenTimeMaxBoost2 = Main.dayTime ? lifeRegenTimeMaxBoost : (lifeRegenTimeMaxBoost / 5);
|
||||
int lifeRegenMaxBoost2 = Main.dayTime ? lifeRegenMaxBoost : (lifeRegenMaxBoost / 5);
|
||||
float lifeRegenLifeRegenTimeMaxBoost2 = Main.dayTime ? lifeRegenLifeRegenTimeMaxBoost : (lifeRegenLifeRegenTimeMaxBoost / 5);
|
||||
|
||||
if (player.lifeRegenTime > 90 && player.lifeRegenTime < lifeRegenTimeMaxBoost2)
|
||||
player.lifeRegenTime = lifeRegenTimeMaxBoost2;
|
||||
|
||||
player.lifeRegenTime += lifeRegenMaxBoost2;
|
||||
player.lifeRegen += lifeRegenMaxBoost2;
|
||||
|
||||
float num3 = player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost2)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost2;
|
||||
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 244, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.camper && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegen = (int)((player.lifeRegen * 2) * 1.75f);
|
||||
player.lifeRegenCount = player.lifeRegenCount > 30 ? player.lifeRegenCount : 30;
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 12, 0f, 0f, 200, Color.OrangeRed, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
}
|
||||
}
|
||||
else if (modPlayer.camper && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
float camperRegenMult = CalamityPlayer.areThereAnyDamnBosses ? 1.3f : 1.75f;
|
||||
int camperCap = CalamityPlayer.areThereAnyDamnBosses ? 20 : 30;
|
||||
player.lifeRegen = (int)((player.lifeRegen * 2) * camperRegenMult);
|
||||
player.lifeRegenCount = player.lifeRegenCount > camperCap ? player.lifeRegenCount : camperCap;
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int num5 = Dust.NewDust(player.position, player.width, player.height, 12, 0f, 0f, 200, Color.OrangeRed, 1f);
|
||||
Main.dust[num5].noGravity = true;
|
||||
Main.dust[num5].velocity *= 0.75f;
|
||||
Main.dust[num5].fadeIn = 1.3f;
|
||||
Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector.Normalize();
|
||||
vector *= (float)Main.rand.Next(50, 100) * 0.04f;
|
||||
Main.dust[num5].velocity = vector;
|
||||
vector.Normalize();
|
||||
vector *= 34f;
|
||||
Main.dust[num5].position = player.Center - vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
bool noLifeRegenCap = (player.shinyStone || modPlayer.draedonsHeart || modPlayer.cFreeze || modPlayer.shadeRegen || modPlayer.photosynthesis || modPlayer.camper) &&
|
||||
Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0;
|
||||
player.StandingStill() && player.itemAnimation == 0;
|
||||
|
||||
if (!noLifeRegenCap)
|
||||
{
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[Label("Lock Meter Positions")]
|
||||
[DefaultValue(false)]
|
||||
[DefaultValue(true)]
|
||||
[Tooltip("Prevents clicking on the Stealth, Rage and Adrenaline Meters.\nThis stops them from being dragged around with the mouse.")]
|
||||
public bool MeterPosLock { get; set; }
|
||||
|
||||
@@ -116,6 +116,12 @@ namespace CalamityMod
|
||||
[Tooltip("Increases the player's mining speed by 75%.\nThis does not affect drills.")]
|
||||
public bool MiningSpeedBoost { get; set; }
|
||||
|
||||
[Label("Boss Zen")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
[Tooltip("While a boss is alive, all players receive the Boss Zen buff which drastically reduces enemy spawn rates.")]
|
||||
public bool BossZen { get; set; }
|
||||
|
||||
[Label("Never Weaken Reactive Boss DR")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
|
||||
@@ -20,6 +20,7 @@ using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
@@ -59,15 +60,20 @@ using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.Projectiles.Hybrid;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Melee.Spears;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Tiles.LivingFire;
|
||||
using CalamityMod.Schematics;
|
||||
using CalamityMod.Skies;
|
||||
using CalamityMod.TileEntities;
|
||||
using CalamityMod.Tiles;
|
||||
using CalamityMod.Tiles.LivingFire;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -108,10 +114,9 @@ namespace CalamityMod
|
||||
// Boss Spawners
|
||||
public static int ghostKillCount = 0;
|
||||
public static int sharkKillCount = 0;
|
||||
public static int astralKillCount = 0;
|
||||
|
||||
// Textures & Shaders
|
||||
public static Texture2D heartOriginal2;
|
||||
public static Texture2D heartOriginal2;
|
||||
public static Texture2D heartOriginal;
|
||||
public static Texture2D rainOriginal;
|
||||
public static Texture2D manaOriginal;
|
||||
@@ -122,6 +127,7 @@ namespace CalamityMod
|
||||
public static Effect CustomShader;
|
||||
public static Effect LightShader;
|
||||
public static Effect TentacleShader;
|
||||
public static Effect LightDistortionShader;
|
||||
|
||||
// DR data structure
|
||||
public static SortedDictionary<int, float> DRValues;
|
||||
@@ -136,6 +142,7 @@ namespace CalamityMod
|
||||
|
||||
// Lists
|
||||
public static IList<string> donatorList;
|
||||
public static List<int> trueMeleeProjectileList; // DO NOT, EVER, DELETE THIS LIST, OR I WILL COME FOR YOU :D
|
||||
public static List<int> rangedProjectileExceptionList;
|
||||
public static List<int> projectileDestroyExceptionList;
|
||||
public static List<int> projectileMinionList;
|
||||
@@ -146,6 +153,7 @@ namespace CalamityMod
|
||||
public static List<int> bossHPScaleList;
|
||||
public static List<int> beeEnemyList;
|
||||
public static List<int> beeProjectileList;
|
||||
public static List<int> friendlyBeeList;
|
||||
public static List<int> hardModeNerfList;
|
||||
public static List<int> debuffList;
|
||||
public static List<int> fireWeaponList;
|
||||
@@ -178,6 +186,7 @@ namespace CalamityMod
|
||||
public static List<int> revengeanceProjectileBuffList5Percent;
|
||||
public static List<int> revengeanceLifeStealExceptionList;
|
||||
public static List<int> movementImpairImmuneList;
|
||||
public static List<int> needsDebuffIconDisplayList;
|
||||
public static List<int> trapProjectileList;
|
||||
public static List<int> scopedWeaponList;
|
||||
public static List<int> boomerangList;
|
||||
@@ -203,6 +212,7 @@ namespace CalamityMod
|
||||
public static List<int> angryBonesList;
|
||||
public static List<int> hornetList;
|
||||
public static List<int> mossHornetList;
|
||||
public static List<int> bossMinionList;
|
||||
|
||||
public static List<int> legOverrideList;
|
||||
|
||||
@@ -240,7 +250,6 @@ namespace CalamityMod
|
||||
}
|
||||
|
||||
ILChanges.Initialize();
|
||||
|
||||
thorium = ModLoader.GetMod("ThoriumMod");
|
||||
|
||||
BossHealthBarManager.Load(this);
|
||||
@@ -264,10 +273,6 @@ namespace CalamityMod
|
||||
AddEquipTexture(new SirenBody(), null, EquipType.Body, "SirenBody", "CalamityMod/Items/Accessories/SirenTrans_Body", "CalamityMod/Items/Accessories/SirenTrans_Arms");
|
||||
AddEquipTexture(new SirenLegs(), null, EquipType.Legs, "SirenLeg", "CalamityMod/Items/Accessories/SirenTrans_Legs");
|
||||
|
||||
AddEquipTexture(new SirenHeadAlt(), null, EquipType.Head, "SirenHeadAlt", "CalamityMod/Items/Accessories/SirenTransAlt_Head");
|
||||
AddEquipTexture(new SirenBodyAlt(), null, EquipType.Body, "SirenBodyAlt", "CalamityMod/Items/Accessories/SirenTransAlt_Body", "CalamityMod/Items/Accessories/SirenTransAlt_Arms");
|
||||
AddEquipTexture(new SirenLegsAlt(), null, EquipType.Legs, "SirenLegAlt", "CalamityMod/Items/Accessories/SirenTransAlt_Legs");
|
||||
|
||||
AddEquipTexture(new AndromedaHead(), null, EquipType.Head, "NoHead", "CalamityMod/ExtraTextures/AndromedaWithout_Head");
|
||||
|
||||
AddEquipTexture(new PopoHead(), null, EquipType.Head, "PopoHead", "CalamityMod/Items/Accessories/Vanity/Popo_Head");
|
||||
@@ -282,12 +287,19 @@ namespace CalamityMod
|
||||
|
||||
AddEquipTexture(new SnowRuffianWings(), null, EquipType.Wings, "SnowRuffWings", "CalamityMod/Items/Armor/SnowRuffianWings");
|
||||
|
||||
AddEquipTexture(new MeldTransformationHead(), null, EquipType.Head, "MeldTransformationHead", "CalamityMod/Items/Armor/MeldTransformation_Head");
|
||||
AddEquipTexture(new MeldTransformationBody(), null, EquipType.Body, "MeldTransformationBody", "CalamityMod/Items/Armor/MeldTransformation_Body", "CalamityMod/Items/Armor/MeldTransformation_Arms");
|
||||
AddEquipTexture(new MeldTransformationLegs(), null, EquipType.Legs, "MeldTransformationLegs", "CalamityMod/Items/Armor/MeldTransformation_Legs");
|
||||
|
||||
AddEquipTexture(new AbyssDivingGearHair(), null, EquipType.Head, "AbyssDivingGearHead", "CalamityMod/Items/Accessories/AbyssalDivingGear_Face");
|
||||
|
||||
AstralCactusTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactus");
|
||||
AstralCactusGlowTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactusGlow");
|
||||
AstralSky = ModContent.GetTexture("CalamityMod/ExtraTextures/AstralSky");
|
||||
CustomShader = GetEffect("Effects/CustomShader");
|
||||
LightShader = GetEffect("Effects/LightBurstShader");
|
||||
TentacleShader = GetEffect("Effects/TentacleShader");
|
||||
LightDistortionShader = GetEffect("Effects/DistortionShader");
|
||||
|
||||
Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh);
|
||||
SkyManager.Instance["CalamityMod:DevourerofGodsHead"] = new DoGSky();
|
||||
@@ -323,6 +335,7 @@ namespace CalamityMod
|
||||
Filters.Scene["CalamityMod:LightBurst"].Load();
|
||||
|
||||
GameShaders.Misc["CalamityMod:SubsumingTentacle"] = new MiscShaderData(new Ref<Effect>(TentacleShader), "BurstPass");
|
||||
GameShaders.Misc["CalamityMod:LightDistortion"] = new MiscShaderData(new Ref<Effect>(LightDistortionShader), "DistortionPass");
|
||||
|
||||
RipperUI.Reset();
|
||||
AstralArcanumUI.Load(this);
|
||||
@@ -331,6 +344,10 @@ namespace CalamityMod
|
||||
GameShaders.Hair.BindShader(ModContent.ItemType<RageHairDye>(), new LegacyHairShaderData().UseLegacyMethod((Player player, Color newColor, ref bool lighting) => Color.Lerp(player.hairColor, new Color(255, 83, 48), ((float)player.Calamity().rage / (float)player.Calamity().rageMax))));
|
||||
GameShaders.Hair.BindShader(ModContent.ItemType<WingTimeHairDye>(), new LegacyHairShaderData().UseLegacyMethod((Player player, Color newColor, ref bool lighting) => Color.Lerp(player.hairColor, new Color(139, 205, 255), ((float)player.wingTime / (float)player.wingTimeMax))));
|
||||
GameShaders.Hair.BindShader(ModContent.ItemType<StealthHairDye>(), new LegacyHairShaderData().UseLegacyMethod((Player player, Color newColor, ref bool lighting) => Color.Lerp(player.hairColor, new Color(186, 85, 211), (player.Calamity().rogueStealth / player.Calamity().rogueStealthMax))));
|
||||
|
||||
SchematicLoader.LoadEverything();
|
||||
|
||||
PopupGUIManager.LoadGUIs();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -361,6 +378,7 @@ namespace CalamityMod
|
||||
bossVelocityDamageScaleValues = null;
|
||||
|
||||
donatorList = null;
|
||||
trueMeleeProjectileList = null;
|
||||
rangedProjectileExceptionList = null;
|
||||
projectileDestroyExceptionList = null;
|
||||
projectileMinionList = null;
|
||||
@@ -370,6 +388,7 @@ namespace CalamityMod
|
||||
bossScaleList = null;
|
||||
bossHPScaleList = null;
|
||||
beeEnemyList = null;
|
||||
friendlyBeeList = null;
|
||||
beeProjectileList = null;
|
||||
hardModeNerfList = null;
|
||||
debuffList = null;
|
||||
@@ -402,6 +421,7 @@ namespace CalamityMod
|
||||
revengeanceProjectileBuffList5Percent = null;
|
||||
revengeanceLifeStealExceptionList = null;
|
||||
movementImpairImmuneList = null;
|
||||
needsDebuffIconDisplayList = null;
|
||||
trapProjectileList = null;
|
||||
scopedWeaponList = null;
|
||||
boomerangList = null;
|
||||
@@ -427,6 +447,7 @@ namespace CalamityMod
|
||||
angryBonesList = null;
|
||||
hornetList = null;
|
||||
mossHornetList = null;
|
||||
bossMinionList = null;
|
||||
|
||||
legOverrideList = null;
|
||||
|
||||
@@ -435,6 +456,8 @@ namespace CalamityMod
|
||||
|
||||
Instance = null;
|
||||
|
||||
PopupGUIManager.UnloadGUIs();
|
||||
SchematicLoader.UnloadEverything();
|
||||
BossHealthBarManager.Unload();
|
||||
base.Unload();
|
||||
|
||||
@@ -458,7 +481,7 @@ namespace CalamityMod
|
||||
rainOriginal = null;
|
||||
manaOriginal = null;
|
||||
carpetOriginal = null;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Late Loading
|
||||
@@ -615,7 +638,88 @@ namespace CalamityMod
|
||||
"RKMoon"
|
||||
};
|
||||
|
||||
rangedProjectileExceptionList = new List<int>()
|
||||
trueMeleeProjectileList = new List<int>()
|
||||
{
|
||||
// Vanilla shit
|
||||
ProjectileID.Spear,
|
||||
ProjectileID.Trident,
|
||||
ProjectileID.TheRottedFork,
|
||||
ProjectileID.Swordfish,
|
||||
ProjectileID.Arkhalis,
|
||||
ProjectileID.DarkLance,
|
||||
ProjectileID.CobaltNaginata,
|
||||
ProjectileID.PalladiumPike,
|
||||
ProjectileID.MythrilHalberd,
|
||||
ProjectileID.OrichalcumHalberd,
|
||||
ProjectileID.AdamantiteGlaive,
|
||||
ProjectileID.TitaniumTrident,
|
||||
ProjectileID.MushroomSpear,
|
||||
ProjectileID.Gungnir,
|
||||
ProjectileID.ObsidianSwordfish,
|
||||
ProjectileID.ChlorophytePartisan,
|
||||
ProjectileID.MonkStaffT1,
|
||||
ProjectileID.MonkStaffT2,
|
||||
ProjectileID.MonkStaffT3,
|
||||
ProjectileID.NorthPoleWeapon,
|
||||
|
||||
// Tools
|
||||
ProjectileID.CobaltDrill,
|
||||
ProjectileID.MythrilDrill,
|
||||
ProjectileID.AdamantiteDrill,
|
||||
ProjectileID.PalladiumDrill,
|
||||
ProjectileID.OrichalcumDrill,
|
||||
ProjectileID.TitaniumDrill,
|
||||
ProjectileID.ChlorophyteDrill,
|
||||
ProjectileID.CobaltChainsaw,
|
||||
ProjectileID.MythrilChainsaw,
|
||||
ProjectileID.AdamantiteChainsaw,
|
||||
ProjectileID.PalladiumChainsaw,
|
||||
ProjectileID.OrichalcumChainsaw,
|
||||
ProjectileID.TitaniumChainsaw,
|
||||
ProjectileID.ChlorophyteChainsaw,
|
||||
ProjectileID.VortexDrill,
|
||||
ProjectileID.VortexChainsaw,
|
||||
ProjectileID.NebulaDrill,
|
||||
ProjectileID.NebulaChainsaw,
|
||||
ProjectileID.SolarFlareDrill,
|
||||
ProjectileID.SolarFlareChainsaw,
|
||||
ProjectileID.StardustDrill,
|
||||
ProjectileID.StardustChainsaw,
|
||||
ProjectileID.Hamdrax,
|
||||
ProjectileID.ChlorophyteJackhammer,
|
||||
ProjectileID.SawtoothShark,
|
||||
ProjectileID.ButchersChainsaw,
|
||||
|
||||
// Calamity shit
|
||||
ModContent.ProjectileType<DevilsSunriseProj>(),
|
||||
ModContent.ProjectileType<MarniteObliteratorProj>(),
|
||||
ModContent.ProjectileType<MurasamaSlash>(),
|
||||
ModContent.ProjectileType<AmidiasTridentProj>(),
|
||||
ModContent.ProjectileType<AstralPikeProj>(),
|
||||
ModContent.ProjectileType<BansheeHookProj>(),
|
||||
ModContent.ProjectileType<BrimlanceProj>(),
|
||||
ModContent.ProjectileType<DiseasedPikeSpear>(),
|
||||
ModContent.ProjectileType<EarthenPikeSpear>(),
|
||||
ModContent.ProjectileType<ExsanguinationLanceProjectile>(),
|
||||
ModContent.ProjectileType<FulgurationHalberdProj>(),
|
||||
ModContent.ProjectileType<GildedProboscisProj>(),
|
||||
ModContent.ProjectileType<GoldplumeSpearProjectile>(),
|
||||
ModContent.ProjectileType<HellionFlowerSpearProjectile>(),
|
||||
ModContent.ProjectileType<InsidiousImpalerProj>(),
|
||||
ModContent.ProjectileType<MarniteSpearProjectile>(),
|
||||
ModContent.ProjectileType<NadirSpear>(),
|
||||
ModContent.ProjectileType<SausageMakerSpear>(),
|
||||
ModContent.ProjectileType<SpatialLanceProjectile>(),
|
||||
ModContent.ProjectileType<StarnightLanceProjectile>(),
|
||||
ModContent.ProjectileType<StreamGougeProj>(),
|
||||
ModContent.ProjectileType<TenebreusTidesProjectile>(),
|
||||
ModContent.ProjectileType<TerraLanceProjectile>(),
|
||||
ModContent.ProjectileType<TyphonsGreedStaff>(),
|
||||
ModContent.ProjectileType<UrchinSpearProjectile>(),
|
||||
ModContent.ProjectileType<YateveoBloomSpear>()
|
||||
};
|
||||
|
||||
rangedProjectileExceptionList = new List<int>()
|
||||
{
|
||||
ProjectileID.Phantasm,
|
||||
ProjectileID.VortexBeater,
|
||||
@@ -644,7 +748,10 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<RainbowTrail>(),
|
||||
ModContent.ProjectileType<PrismaticBeam>(),
|
||||
ModContent.ProjectileType<ExoLight>(),
|
||||
ModContent.ProjectileType<ExoLightBomb>()
|
||||
ModContent.ProjectileType<ExoLightBomb>(),
|
||||
ModContent.ProjectileType<UltimaBowProjectile>(),
|
||||
ModContent.ProjectileType<UltimaSpark>(), // Because of potential dust lag.
|
||||
ModContent.ProjectileType<UltimaRay>()
|
||||
};
|
||||
|
||||
projectileDestroyExceptionList = new List<int>()
|
||||
@@ -675,6 +782,8 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<FlakKrakenProj>(),
|
||||
ModContent.ProjectileType<SylvanSlashAttack>(),
|
||||
ModContent.ProjectileType<InfernadoFriendly>(),
|
||||
ModContent.ProjectileType<MurasamaSlash>(),
|
||||
ModContent.ProjectileType<PhaseslayerProjectile>(),
|
||||
|
||||
//Some hostile boss projectiles
|
||||
ModContent.ProjectileType<BrimstoneMonster>(),
|
||||
@@ -902,6 +1011,17 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<PlagueExplosion>()
|
||||
};
|
||||
|
||||
friendlyBeeList = new List<int>()
|
||||
{
|
||||
ProjectileID.GiantBee,
|
||||
ProjectileID.Bee,
|
||||
ProjectileID.Wasp,
|
||||
ModContent.ProjectileType<PlaguenadeBee>(),
|
||||
ModContent.ProjectileType<PlaguePrincess>(),
|
||||
ModContent.ProjectileType<BabyPlaguebringer>(),
|
||||
ModContent.ProjectileType<PlagueBeeSmall>()
|
||||
};
|
||||
|
||||
hardModeNerfList = new List<int>()
|
||||
{
|
||||
ProjectileID.WebSpit,
|
||||
@@ -963,8 +1083,10 @@ namespace CalamityMod
|
||||
ModContent.BuffType<WarCleave>(),
|
||||
ModContent.BuffType<ArmorCrunch>(),
|
||||
ModContent.BuffType<Vaporfied>(),
|
||||
ModContent.BuffType<Eutrophication>()
|
||||
};
|
||||
ModContent.BuffType<Eutrophication>(),
|
||||
ModContent.BuffType<LethalLavaBurn>(),
|
||||
ModContent.BuffType<Nightwither>()
|
||||
};
|
||||
|
||||
fireWeaponList = new List<int>()
|
||||
{
|
||||
@@ -1062,7 +1184,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<DazzlingStabberStaff>(),
|
||||
ModContent.ItemType<PristineFury>(),
|
||||
ModContent.ItemType<SarosPossession>(),
|
||||
ModContent.ItemType<CinderBlossomStaff>()
|
||||
ModContent.ItemType<CinderBlossomStaff>(),
|
||||
ModContent.ItemType<FinalDawn>()
|
||||
};
|
||||
|
||||
iceWeaponList = new List<int>()
|
||||
@@ -1238,7 +1361,13 @@ namespace CalamityMod
|
||||
ModContent.ItemType<YateveoBloom>(),
|
||||
ModContent.ItemType<TerraDisk>(),
|
||||
ModContent.ItemType<TerraDiskMelee>(),
|
||||
ModContent.ItemType<BelladonnaSpiritStaff>()
|
||||
ModContent.ItemType<BelladonnaSpiritStaff>(),
|
||||
ModContent.ItemType<TenebreusTides>(),
|
||||
ModContent.ItemType<Greentide>(),
|
||||
ModContent.ItemType<Leviatitan>(),
|
||||
ModContent.ItemType<BrackishFlask>(),
|
||||
ModContent.ItemType<LeviathanTeeth>(),
|
||||
ModContent.ItemType<GastricBelcherStaff>()
|
||||
};
|
||||
|
||||
alcoholList = new List<int>()
|
||||
@@ -1798,7 +1927,6 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<HolySpear>(),
|
||||
ModContent.ProjectileType<ProvidenceCrystalShard>(),
|
||||
ModContent.ProjectileType<ProvidenceHolyRay>(),
|
||||
ModContent.ProjectileType<CosmicFlameBurst>(),
|
||||
ModContent.ProjectileType<SignusScythe>(),
|
||||
ModContent.ProjectileType<EssenceDust>(),
|
||||
ModContent.ProjectileType<PhantomBlast>(),
|
||||
@@ -1868,6 +1996,11 @@ namespace CalamityMod
|
||||
NPCID.QueenBee,
|
||||
};
|
||||
|
||||
needsDebuffIconDisplayList = new List<int>()
|
||||
{
|
||||
NPCID.WallofFleshEye
|
||||
};
|
||||
|
||||
trapProjectileList = new List<int>()
|
||||
{
|
||||
ProjectileID.PoisonDartTrap,
|
||||
@@ -2008,7 +2141,7 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<ScourgeoftheCosmosProj>(),
|
||||
ModContent.ProjectileType<SpearofDestinyProjectile>(),
|
||||
ModContent.ProjectileType<SpearofPaleolithProj>(),
|
||||
ModContent.ProjectileType<XerocPitchforkProjectile>(),
|
||||
ModContent.ProjectileType<AntumbraShardProjectile>(),
|
||||
ModContent.ProjectileType<TurbulanceProjectile>(),
|
||||
ModContent.ProjectileType<NightsGazeProjectile>()
|
||||
};
|
||||
@@ -2122,7 +2255,8 @@ namespace CalamityMod
|
||||
ModContent.ItemType<AcidicRainBarrel>(),
|
||||
ModContent.ItemType<SkyfinBombers>(),
|
||||
ModContent.ItemType<SpentFuelContainer>(),
|
||||
ModContent.ItemType<SealedSingularity>()
|
||||
ModContent.ItemType<SealedSingularity>(),
|
||||
ModContent.ItemType<PlasmaGrenade>()
|
||||
};
|
||||
|
||||
flaskBombProjList = new List<int>()
|
||||
@@ -2152,7 +2286,8 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<GreenDonkeyKongReference>(),
|
||||
ModContent.ProjectileType<SkyfinNuke>(),
|
||||
ModContent.ProjectileType<SpentFuelContainerProjectile>(),
|
||||
ModContent.ProjectileType<SealedSingularityProj>()
|
||||
ModContent.ProjectileType<SealedSingularityProj>(),
|
||||
ModContent.ProjectileType<PlasmaGrenadeProjectile>()
|
||||
};
|
||||
|
||||
spikyBallList = new List<int>()
|
||||
@@ -2295,6 +2430,7 @@ namespace CalamityMod
|
||||
ModContent.ItemType<SirensSong>(),
|
||||
ModContent.ItemType<BrackishFlask>(),
|
||||
ModContent.ItemType<LeviathanTeeth>(),
|
||||
ModContent.ItemType<GastricBelcherStaff>(),
|
||||
ModContent.ItemType<LureofEnthrallment>(),
|
||||
ModContent.ItemType<AquaticScourgeBag>(),
|
||||
ModContent.ItemType<OldDukeBag>(),
|
||||
@@ -2349,80 +2485,117 @@ namespace CalamityMod
|
||||
ItemID.SuperHealingPotion
|
||||
};
|
||||
|
||||
livingFireBlockList = new List<int>()
|
||||
{
|
||||
ModContent.TileType<LivingGodSlayerFireBlockTile>(),
|
||||
ModContent.TileType<LivingHolyFireBlockTile>(),
|
||||
ModContent.TileType<LivingBrimstoneFireBlockTile>(),
|
||||
livingFireBlockList = new List<int>()
|
||||
{
|
||||
ModContent.TileType<LivingGodSlayerFireBlockTile>(),
|
||||
ModContent.TileType<LivingHolyFireBlockTile>(),
|
||||
ModContent.TileType<LivingBrimstoneFireBlockTile>(),
|
||||
TileID.LivingFire,
|
||||
TileID.LivingCursedFire,
|
||||
TileID.LivingDemonFire,
|
||||
TileID.LivingFrostFire,
|
||||
TileID.LivingIchor,
|
||||
TileID.LivingUltrabrightFire
|
||||
};
|
||||
};
|
||||
|
||||
zombieList = new List<int>()
|
||||
{
|
||||
NPCID.Zombie,
|
||||
NPCID.ArmedZombie,
|
||||
NPCID.BaldZombie,
|
||||
NPCID.PincushionZombie,
|
||||
NPCID.ArmedZombiePincussion, // what is this spelling
|
||||
NPCID.SlimedZombie,
|
||||
NPCID.ArmedZombieSlimed,
|
||||
NPCID.SwampZombie,
|
||||
NPCID.ArmedZombieSwamp,
|
||||
NPCID.TwiggyZombie,
|
||||
NPCID.ArmedZombieTwiggy,
|
||||
NPCID.FemaleZombie,
|
||||
NPCID.ArmedZombieCenx,
|
||||
NPCID.ZombieRaincoat,
|
||||
NPCID.ZombieEskimo,
|
||||
NPCID.ArmedZombieEskimo
|
||||
// halloween zombies not included because they don't drop shackles or zombie arms
|
||||
};
|
||||
zombieList = new List<int>()
|
||||
{
|
||||
NPCID.Zombie,
|
||||
NPCID.ArmedZombie,
|
||||
NPCID.BaldZombie,
|
||||
NPCID.PincushionZombie,
|
||||
NPCID.ArmedZombiePincussion, // what is this spelling
|
||||
NPCID.SlimedZombie,
|
||||
NPCID.ArmedZombieSlimed,
|
||||
NPCID.SwampZombie,
|
||||
NPCID.ArmedZombieSwamp,
|
||||
NPCID.TwiggyZombie,
|
||||
NPCID.ArmedZombieTwiggy,
|
||||
NPCID.FemaleZombie,
|
||||
NPCID.ArmedZombieCenx,
|
||||
NPCID.ZombieRaincoat,
|
||||
NPCID.ZombieEskimo,
|
||||
NPCID.ArmedZombieEskimo,
|
||||
NPCID.BigRainZombie,
|
||||
NPCID.SmallRainZombie,
|
||||
NPCID.BigFemaleZombie,
|
||||
NPCID.SmallFemaleZombie,
|
||||
NPCID.BigTwiggyZombie,
|
||||
NPCID.SmallTwiggyZombie,
|
||||
NPCID.BigSwampZombie,
|
||||
NPCID.SmallSwampZombie,
|
||||
NPCID.BigSlimedZombie,
|
||||
NPCID.SmallSlimedZombie,
|
||||
NPCID.BigPincushionZombie,
|
||||
NPCID.SmallPincushionZombie,
|
||||
NPCID.BigBaldZombie,
|
||||
NPCID.SmallBaldZombie,
|
||||
NPCID.BigZombie,
|
||||
NPCID.SmallZombie
|
||||
// halloween zombies not included because they don't drop shackles or zombie arms
|
||||
};
|
||||
|
||||
demonEyeList = new List<int>()
|
||||
{
|
||||
NPCID.DemonEye,
|
||||
NPCID.CataractEye,
|
||||
NPCID.SleepyEye,
|
||||
NPCID.DialatedEye, // it is spelled "dilated"
|
||||
NPCID.GreenEye,
|
||||
NPCID.PurpleEye,
|
||||
NPCID.DemonEyeOwl,
|
||||
NPCID.DemonEyeSpaceship
|
||||
};
|
||||
demonEyeList = new List<int>()
|
||||
{
|
||||
NPCID.DemonEye,
|
||||
NPCID.CataractEye,
|
||||
NPCID.SleepyEye,
|
||||
NPCID.DialatedEye, // it is spelled "dilated"
|
||||
NPCID.GreenEye,
|
||||
NPCID.PurpleEye,
|
||||
NPCID.DemonEyeOwl,
|
||||
NPCID.DemonEyeSpaceship,
|
||||
NPCID.DemonEye2,
|
||||
NPCID.PurpleEye2,
|
||||
NPCID.GreenEye2,
|
||||
NPCID.DialatedEye2,
|
||||
NPCID.SleepyEye2,
|
||||
NPCID.CataractEye2
|
||||
};
|
||||
|
||||
skeletonList = new List<int>()
|
||||
{
|
||||
NPCID.Skeleton,
|
||||
NPCID.ArmoredSkeleton,
|
||||
NPCID.SkeletonArcher,
|
||||
NPCID.HeadacheSkeleton,
|
||||
NPCID.MisassembledSkeleton,
|
||||
NPCID.PantlessSkeleton,
|
||||
NPCID.SkeletonTopHat,
|
||||
NPCID.SkeletonAstonaut,
|
||||
NPCID.SkeletonAlien,
|
||||
NPCID.BoneThrowingSkeleton,
|
||||
NPCID.BoneThrowingSkeleton2,
|
||||
NPCID.BoneThrowingSkeleton3,
|
||||
NPCID.BoneThrowingSkeleton4,
|
||||
NPCID.GreekSkeleton
|
||||
};
|
||||
skeletonList = new List<int>()
|
||||
{
|
||||
NPCID.Skeleton,
|
||||
NPCID.HeadacheSkeleton,
|
||||
NPCID.MisassembledSkeleton,
|
||||
NPCID.PantlessSkeleton,
|
||||
NPCID.BoneThrowingSkeleton,
|
||||
NPCID.BoneThrowingSkeleton2,
|
||||
NPCID.BoneThrowingSkeleton3,
|
||||
NPCID.BoneThrowingSkeleton4,
|
||||
NPCID.BigPantlessSkeleton,
|
||||
NPCID.SmallPantlessSkeleton,
|
||||
NPCID.BigMisassembledSkeleton,
|
||||
NPCID.SmallMisassembledSkeleton,
|
||||
NPCID.BigHeadacheSkeleton,
|
||||
NPCID.SmallHeadacheSkeleton,
|
||||
NPCID.BigSkeleton,
|
||||
NPCID.SmallSkeleton,
|
||||
|
||||
angryBonesList = new List<int>()
|
||||
{
|
||||
NPCID.AngryBones,
|
||||
NPCID.AngryBonesBig,
|
||||
NPCID.AngryBonesBigMuscle,
|
||||
NPCID.AngryBonesBigHelmet
|
||||
};
|
||||
//Note: These skeletons don't count for Skeleton Banner for some god forsaken reason
|
||||
NPCID.SkeletonTopHat,
|
||||
NPCID.SkeletonAstonaut,
|
||||
NPCID.SkeletonAlien,
|
||||
|
||||
hornetList = new List<int>()
|
||||
{
|
||||
//Other skeleton types
|
||||
NPCID.ArmoredSkeleton,
|
||||
NPCID.HeavySkeleton,
|
||||
NPCID.SkeletonArcher,
|
||||
NPCID.GreekSkeleton
|
||||
};
|
||||
|
||||
angryBonesList = new List<int>()
|
||||
{
|
||||
NPCID.AngryBones,
|
||||
NPCID.AngryBonesBig,
|
||||
NPCID.AngryBonesBigMuscle,
|
||||
NPCID.AngryBonesBigHelmet,
|
||||
NPCID.BigBoned,
|
||||
NPCID.ShortBones
|
||||
};
|
||||
|
||||
hornetList = new List<int>()
|
||||
{
|
||||
NPCID.BigHornetStingy,
|
||||
NPCID.LittleHornetStingy,
|
||||
NPCID.BigHornetSpikey,
|
||||
@@ -2436,20 +2609,121 @@ namespace CalamityMod
|
||||
NPCID.BigStinger,
|
||||
NPCID.LittleStinger,
|
||||
NPCID.Hornet,
|
||||
NPCID.HornetFatty,
|
||||
NPCID.HornetHoney,
|
||||
NPCID.HornetLeafy,
|
||||
NPCID.HornetSpikey,
|
||||
NPCID.HornetStingy
|
||||
};
|
||||
NPCID.HornetFatty,
|
||||
NPCID.HornetHoney,
|
||||
NPCID.HornetLeafy,
|
||||
NPCID.HornetSpikey,
|
||||
NPCID.HornetStingy
|
||||
};
|
||||
|
||||
mossHornetList = new List<int>()
|
||||
mossHornetList = new List<int>()
|
||||
{
|
||||
NPCID.MossHornet,
|
||||
NPCID.TinyMossHornet,
|
||||
NPCID.LittleMossHornet,
|
||||
NPCID.BigMossHornet,
|
||||
NPCID.GiantMossHornet
|
||||
};
|
||||
|
||||
bossMinionList = new List<int>()
|
||||
{
|
||||
NPCID.MossHornet,
|
||||
NPCID.TinyMossHornet,
|
||||
NPCID.LittleMossHornet,
|
||||
NPCID.BigMossHornet,
|
||||
NPCID.GiantMossHornet
|
||||
ModContent.NPCType<DesertScourgeHeadSmall>(),
|
||||
ModContent.NPCType<DesertScourgeBodySmall>(),
|
||||
ModContent.NPCType<DesertScourgeTailSmall>(),
|
||||
NPCID.SlimeSpiked,
|
||||
NPCID.ServantofCthulhu,
|
||||
ModContent.NPCType<CrabShroom>(),
|
||||
NPCID.EaterofWorldsHead,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail,
|
||||
NPCID.Creeper,
|
||||
ModContent.NPCType<PerforatorHeadSmall>(),
|
||||
ModContent.NPCType<PerforatorBodySmall>(),
|
||||
ModContent.NPCType<PerforatorTailSmall>(),
|
||||
ModContent.NPCType<PerforatorHeadMedium>(),
|
||||
ModContent.NPCType<PerforatorBodyMedium>(),
|
||||
ModContent.NPCType<PerforatorTailMedium>(),
|
||||
ModContent.NPCType<PerforatorHeadLarge>(),
|
||||
ModContent.NPCType<PerforatorBodyLarge>(),
|
||||
ModContent.NPCType<PerforatorTailLarge>(),
|
||||
ModContent.NPCType<HiveBlob>(),
|
||||
ModContent.NPCType<HiveBlob2>(),
|
||||
ModContent.NPCType<DankCreeper>(),
|
||||
NPCID.SkeletronHand,
|
||||
ModContent.NPCType<SlimeGod>(),
|
||||
ModContent.NPCType<SlimeGodSplit>(),
|
||||
ModContent.NPCType<SlimeGodRun>(),
|
||||
ModContent.NPCType<SlimeGodRunSplit>(),
|
||||
ModContent.NPCType<SlimeSpawnCorrupt>(),
|
||||
ModContent.NPCType<SlimeSpawnCorrupt2>(),
|
||||
ModContent.NPCType<SlimeSpawnCrimson>(),
|
||||
ModContent.NPCType<SlimeSpawnCrimson2>(),
|
||||
NPCID.LeechHead,
|
||||
NPCID.LeechBody,
|
||||
NPCID.LeechTail,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.TheHungry,
|
||||
NPCID.TheHungryII,
|
||||
ModContent.NPCType<Cryocore>(),
|
||||
ModContent.NPCType<Cryocore2>(),
|
||||
ModContent.NPCType<IceMass>(),
|
||||
NPCID.PrimeCannon,
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeSaw,
|
||||
NPCID.PrimeVice,
|
||||
ModContent.NPCType<Brimling>(),
|
||||
NPCID.TheDestroyer,
|
||||
NPCID.TheDestroyerBody,
|
||||
NPCID.TheDestroyerTail,
|
||||
ModContent.NPCType<AquaticScourgeHead>(),
|
||||
ModContent.NPCType<AquaticScourgeBody>(),
|
||||
ModContent.NPCType<AquaticScourgeBodyAlt>(),
|
||||
ModContent.NPCType<AquaticScourgeTail>(),
|
||||
ModContent.NPCType<CalamitasRun>(),
|
||||
ModContent.NPCType<CalamitasRun2>(),
|
||||
ModContent.NPCType<LifeSeeker>(),
|
||||
ModContent.NPCType<SoulSeeker>(),
|
||||
NPCID.PlanterasTentacle,
|
||||
ModContent.NPCType<AureusSpawn>(),
|
||||
NPCID.Spore,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.GolemFistRight,
|
||||
ModContent.NPCType<PlagueMine>(),
|
||||
ModContent.NPCType<PlagueHomingMissile>(),
|
||||
ModContent.NPCType<RavagerClawLeft>(),
|
||||
ModContent.NPCType<RavagerClawRight>(),
|
||||
ModContent.NPCType<RavagerLegLeft>(),
|
||||
ModContent.NPCType<RavagerLegLeft>(),
|
||||
ModContent.NPCType<RavagerHead>(),
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3,
|
||||
NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail,
|
||||
NPCID.AncientCultistSquidhead,
|
||||
NPCID.MoonLordFreeEye,
|
||||
NPCID.MoonLordHand,
|
||||
NPCID.MoonLordHead,
|
||||
ModContent.NPCType<Bumblefuck2>(),
|
||||
ModContent.NPCType<ProvSpawnOffense>(),
|
||||
ModContent.NPCType<ProvSpawnDefense>(),
|
||||
ModContent.NPCType<ProvSpawnHealer>(),
|
||||
ModContent.NPCType<DarkEnergy>(),
|
||||
ModContent.NPCType<DarkEnergy2>(),
|
||||
ModContent.NPCType<DarkEnergy3>(),
|
||||
ModContent.NPCType<CosmicLantern>(),
|
||||
ModContent.NPCType<StasisProbe>(),
|
||||
ModContent.NPCType<StasisProbeNaked>(),
|
||||
ModContent.NPCType<DevourerofGodsHead2>(),
|
||||
ModContent.NPCType<DevourerofGodsBody2>(),
|
||||
ModContent.NPCType<DevourerofGodsTail2>(),
|
||||
ModContent.NPCType<DetonatingFlare>(),
|
||||
ModContent.NPCType<DetonatingFlare2>(),
|
||||
ModContent.NPCType<SupremeCataclysm>(),
|
||||
ModContent.NPCType<SupremeCatastrophe>()
|
||||
};
|
||||
|
||||
Mod thorium = ModLoader.GetMod("ThoriumMod");
|
||||
@@ -2750,8 +3024,8 @@ namespace CalamityMod
|
||||
{ NPCID.Creeper, 1800 },
|
||||
{ NPCID.QueenBee, 7200 },
|
||||
{ NPCID.SkeletronHead, 9000 },
|
||||
{ NPCID.WallofFlesh, 10800 },
|
||||
{ NPCID.WallofFleshEye, 10800 },
|
||||
{ NPCID.WallofFlesh, 7200 },
|
||||
{ NPCID.WallofFleshEye, 7200 },
|
||||
{ NPCID.Spazmatism, 10800 },
|
||||
{ NPCID.Retinazer, 10800 },
|
||||
{ NPCID.TheDestroyer, 10800 },
|
||||
@@ -3090,6 +3364,29 @@ namespace CalamityMod
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Draedon Hologram", () =>
|
||||
{
|
||||
DraedonHologramChatUI.Draw(Main.spriteBatch);
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Draedon Factory Tiles", () =>
|
||||
{
|
||||
DraedonsFactoryUI.Draw(Main.spriteBatch);
|
||||
DraedonsItemChargerUI.Draw(Main.spriteBatch);
|
||||
return true;
|
||||
}, InterfaceScaleType.Game)); // InterfaceScaleType.Game tells the game that this UI should take zoom into account.
|
||||
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Boss HP Bars", delegate ()
|
||||
{
|
||||
if (Main.LocalPlayer.Calamity().drawBossHPBar)
|
||||
{
|
||||
BossHealthBarManager.Update();
|
||||
BossHealthBarManager.Draw(Main.spriteBatch);
|
||||
}
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
|
||||
// Astral Arcanum overlay (if open)
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate ()
|
||||
{
|
||||
@@ -3110,6 +3407,13 @@ namespace CalamityMod
|
||||
StealthUI.Draw(Main.spriteBatch, Main.LocalPlayer);
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
|
||||
// Popup GUIs.
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Popup GUIs", () =>
|
||||
{
|
||||
PopupGUIManager.UpdateAndDraw(Main.spriteBatch);
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
}
|
||||
|
||||
// Invasion UI (used for Acid Rain)
|
||||
@@ -3712,9 +4016,17 @@ namespace CalamityMod
|
||||
int countdown2 = reader.ReadInt32();
|
||||
CalamityWorld.bossSpawnCountdown = countdown2;
|
||||
break;
|
||||
case CalamityModMessageType.DeathBossSpawnCountdownSync:
|
||||
case CalamityModMessageType.BRHostileProjKillSync:
|
||||
int countdown3 = reader.ReadInt32();
|
||||
CalamityWorld.deathBossSpawnCooldown = countdown3;
|
||||
CalamityWorld.bossRushHostileProjKillCounter = countdown3;
|
||||
break;
|
||||
case CalamityModMessageType.DeathBossSpawnCountdownSync:
|
||||
int countdown4 = reader.ReadInt32();
|
||||
CalamityWorld.deathBossSpawnCooldown = countdown4;
|
||||
break;
|
||||
case CalamityModMessageType.ArmoredDiggerCountdownSync:
|
||||
int countdown5 = reader.ReadInt32();
|
||||
CalamityWorld.ArmoredDiggerSpawnCooldown = countdown5;
|
||||
break;
|
||||
case CalamityModMessageType.BossTypeSync:
|
||||
int type = reader.ReadInt32();
|
||||
@@ -3779,6 +4091,40 @@ namespace CalamityMod
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.NewNPC(x, y, ModContent.NPCType<SuperDummyNPC>());
|
||||
break;
|
||||
case CalamityModMessageType.DraedonGeneratorStackSync:
|
||||
(TileEntity.ByID[reader.ReadInt32()] as TEDraedonFuelFactory).HeldItem.stack = reader.ReadInt32();
|
||||
break;
|
||||
case CalamityModMessageType.DraedonChargerSync:
|
||||
int entityID = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).FuelItem.type = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).FuelItem.stack = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).ItemBeingCharged.type = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).ItemBeingCharged.stack = reader.ReadInt32();
|
||||
int currentCharge = reader.ReadInt32();
|
||||
if (currentCharge != -1)
|
||||
{
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).ItemBeingCharged.Calamity().CurrentCharge = currentCharge;
|
||||
}
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).ActiveTimer = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID] as TEDraedonItemCharger).DepositWithdrawCooldown = reader.ReadInt32();
|
||||
break;
|
||||
case CalamityModMessageType.DraedonFieldGeneratorSync:
|
||||
int entityID2 = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID2] as TEDraedonFieldGenerator).Time = reader.ReadInt32();
|
||||
(TileEntity.ByID[entityID2] as TEDraedonFieldGenerator).ActiveTimer = reader.ReadInt32();
|
||||
break;
|
||||
case CalamityModMessageType.SyncCalamityNPCAIArray:
|
||||
byte npcIndex2 = reader.ReadByte();
|
||||
Main.npc[npcIndex2].Calamity().newAI[0] = reader.ReadSingle();
|
||||
Main.npc[npcIndex2].Calamity().newAI[1] = reader.ReadSingle();
|
||||
Main.npc[npcIndex2].Calamity().newAI[2] = reader.ReadSingle();
|
||||
Main.npc[npcIndex2].Calamity().newAI[3] = reader.ReadSingle();
|
||||
break;
|
||||
case CalamityModMessageType.ProvidenceDyeConditionSync:
|
||||
byte npcIndex3 = reader.ReadByte();
|
||||
(Main.npc[npcIndex3].modNPC as Providence).hasTakenDaytimeDamage = reader.ReadBoolean();
|
||||
break;
|
||||
|
||||
default:
|
||||
Logger.Error($"Failed to parse Calamity packet: No Calamity packet exists with ID {msgType}.");
|
||||
break;
|
||||
@@ -3816,8 +4162,8 @@ namespace CalamityMod
|
||||
NetMessage.SendData(MessageID.WorldData, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public enum Season : byte
|
||||
{
|
||||
@@ -3845,6 +4191,8 @@ namespace CalamityMod
|
||||
BossRushStage,
|
||||
DoGCountdownSync,
|
||||
BossSpawnCountdownSync,
|
||||
BRHostileProjKillSync,
|
||||
ArmoredDiggerCountdownSync,
|
||||
BossTypeSync,
|
||||
DeathCountSync,
|
||||
RevengeanceBoolSync,
|
||||
@@ -3861,6 +4209,11 @@ namespace CalamityMod
|
||||
AcidRainUIDrawFadeSync,
|
||||
AcidRainOldDukeSummonSync,
|
||||
GaelsGreatswordSwingSync,
|
||||
SpawnSuperDummy
|
||||
SpawnSuperDummy,
|
||||
SyncCalamityNPCAIArray,
|
||||
ProvidenceDyeConditionSync, // We shouldn't fucking need this. Die in a hole, Multiplayer.
|
||||
DraedonGeneratorStackSync,
|
||||
DraedonChargerSync,
|
||||
DraedonFieldGeneratorSync
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,8 @@ namespace CalamityMod.Events
|
||||
// A partially bright pale-ish cyan with a hint of yellow.
|
||||
public static readonly Color TextColor = new Color(115, 194, 147);
|
||||
|
||||
public static int MaxNuclearToadCount = 5; // To prevent the things from spamming. This happens frequently in pre-HM.
|
||||
|
||||
public const int InvasionNoKillPersistTime = 14400; // How long the invasion persists, in frames, if nothing is killed.
|
||||
|
||||
public const float BloodwormSpawnRate = 0.1f;
|
||||
@@ -141,11 +143,11 @@ namespace CalamityMod.Events
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Attempts to start the Acid Rain event. Will fail if there is another invasion going on or the EoC has not been killed yet (unless you're in hardmode).
|
||||
/// Attempts to start the Acid Rain event. Will fail if there is another invasion or boss rush going on. It will also fail if the EoC, WoF, or AS has not been killed yet.
|
||||
/// </summary>
|
||||
public static void TryStartEvent(bool forceRain = false)
|
||||
{
|
||||
if (CalamityWorld.rainingAcid || (!NPC.downedBoss1 && !Main.hardMode) || CalamityWorld.bossRushActive)
|
||||
if (CalamityWorld.rainingAcid || (!NPC.downedBoss1 && !Main.hardMode && !CalamityWorld.downedAquaticScourge) || CalamityWorld.bossRushActive)
|
||||
return;
|
||||
int playerCount = 0;
|
||||
for (int i = 0; i < Main.player.Length; i++)
|
||||
|
||||
|
After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 239 B |
|
After Width: | Height: | Size: 150 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 334 B |
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 292 B |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 202 B |
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 344 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 272 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 616 B |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 868 B |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -10,21 +10,21 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abaddon");
|
||||
Tooltip.SetDefault("Makes you immune to Brimstone Flames");
|
||||
Tooltip.SetDefault("Reduces the damage caused by the Brimstone Flames debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = 5;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.Calamity().abaddon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 9, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -6,54 +6,70 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[AutoloadEquip(EquipType.Face)]
|
||||
public class AbyssalDivingGear : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Gear");
|
||||
Tooltip.SetDefault("Reduces the damage caused by the pressure of the abyss while out of breath\n" +
|
||||
"Removes the bleed effect caused by the abyss\n" +
|
||||
"Grants the ability to swim and greatly extends underwater breathing\n" +
|
||||
"Provides light underwater and extra mobility on ice\n" +
|
||||
"Provides a moderate amount of light in the abyss\n" +
|
||||
"Greatly reduces breath loss in the abyss");
|
||||
}
|
||||
//[AutoloadEquip(EquipType.Face)]
|
||||
public class AbyssalDivingGear : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Gear");
|
||||
Tooltip.SetDefault("Reduces the damage caused by the pressure of the abyss while out of breath\n" +
|
||||
"Removes the bleed effect caused by the abyss\n" +
|
||||
"Grants the ability to swim and greatly extends underwater breathing\n" +
|
||||
"Provides light underwater and extra mobility on ice\n" +
|
||||
"Provides a moderate amount of light in the abyss\n" +
|
||||
"Greatly reduces breath loss in the abyss");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 45, 0, 0);
|
||||
item.rare = 6;
|
||||
item.accessory = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = 7;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
if (!hideVisual)
|
||||
modPlayer.abyssDivingGear = true; //this bool is just used for drawing
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ArcticDivingGear);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCharm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
public override void UpdateVanity(Player player, EquipType type)
|
||||
{
|
||||
player.Calamity().abyssDivingGear = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ArcticDivingGear);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCharm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
public class AbyssDivingGearHair : EquipTexture
|
||||
{
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
{
|
||||
drawHair = false;
|
||||
drawAltHair = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,8 +33,9 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.accessory = true;
|
||||
item.value = Item.buyPrice(0, 90, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = 10;
|
||||
item.Calamity().postMoonLordRarity = 12;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 38;
|
||||
item.value = Item.buyPrice(0, 6, 0, 0);
|
||||
item.rare = 8;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = 7;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
@@ -10,7 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Aero Stone");
|
||||
Tooltip.SetDefault("One of the ancient relics\n" +
|
||||
"Increases movement speed by 10%, jump speed by 100%, and all damage by 3%");
|
||||
"Increases movement speed by 10%, jump speed by 20%, and all damage by 3%");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 8));
|
||||
}
|
||||
|
||||
@@ -18,11 +19,24 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 40;
|
||||
item.height = 50;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.rare = 5;
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.rare = 2;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "5" : "20";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
{
|
||||
line2.text = "Increases movement speed by 10%, jump speed by " + jumpAmt + "%, and all damage by 3%";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0f, 0.425f, 0.425f);
|
||||
|
||||
@@ -20,10 +20,10 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 38;
|
||||
item.height = 44;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.rare = 10;
|
||||
}
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Alchemical Flask");
|
||||
Tooltip.SetDefault("All attacks inflict the plague\n" +
|
||||
"Makes you immune to the plague\n" +
|
||||
"Reduces the damage caused to you by the plague\n" +
|
||||
"Projectiles spawn plague seekers on enemy hits");
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 24, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.rare = 8;
|
||||
item.accessory = true;
|
||||
}
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.alchFlask = true;
|
||||
player.buffImmune[ModContent.BuffType<Plague>()] = true;
|
||||
modPlayer.reducedPlagueDmg = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 9, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 34;
|
||||
item.height = 34;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.rare = 4;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -38,26 +38,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
for (int l = 0; l < 1; l++)
|
||||
{
|
||||
float x = player.position.X + (float)Main.rand.Next(-400, 400);
|
||||
float y = player.position.Y - (float)Main.rand.Next(500, 800);
|
||||
Vector2 vector = new Vector2(x, y);
|
||||
float num15 = player.position.X + (float)(player.width / 2) - vector.X;
|
||||
float num16 = player.position.Y + (float)(player.height / 2) - vector.Y;
|
||||
num15 += (float)Main.rand.Next(-100, 101);
|
||||
int num17 = 22;
|
||||
float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16));
|
||||
num18 = (float)num17 / num18;
|
||||
num15 *= num18;
|
||||
num16 *= num18;
|
||||
int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType<AuraRain>(), (int)(60 * player.AverageDamage()), 2f, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[num19].ai[1] = player.position.Y;
|
||||
Main.projectile[num19].tileCollide = false;
|
||||
Main.projectile[num19].usesLocalNPCImmunity = true;
|
||||
Main.projectile[num19].localNPCHitCooldown = 10;
|
||||
Main.projectile[num19].Calamity().forceTypeless = true;
|
||||
}
|
||||
Projectile rain = CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<AuraRain>(), (int)(60 * player.AverageDamage()), 2f, player.whoAmI, 6, 1);
|
||||
rain.tileCollide = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.World;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -16,8 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"5% increased damage reduction and increased life regen\n" +
|
||||
"Poison, Freeze, Chill, Frostburn, and Venom immunity\n" +
|
||||
"Honey-like life regen with no speed penalty\n" +
|
||||
"Most bee/hornet enemies and projectiles do 75% damage to you\n" +
|
||||
"Provides cold protection in Death Mode");
|
||||
"Most bee/hornet enemies and projectiles do 75% damage to you");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,17 +26,31 @@ namespace CalamityMod.Items.Accessories
|
||||
item.defense = 4;
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.value = Item.buyPrice(0, 45, 0, 0);
|
||||
item.rare = 10;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = 5;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
{
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
||||
{
|
||||
line2.text = "Most bee/hornet enemies and projectiles do 75% damage to you\n" +
|
||||
"Provides cold protection in Death Mode";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.beeResist = true;
|
||||
modPlayer.aAmpoule = true;
|
||||
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
|
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 665 B |
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 46;
|
||||
item.value = Item.buyPrice(0, 3, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity2BuyPrice;
|
||||
item.rare = 2;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 3, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = 1;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 3, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = 1;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 9, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.World;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -17,19 +19,33 @@ namespace CalamityMod.Items.Accessories
|
||||
"Increased flight time\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Provides heat protection in Death Mode");
|
||||
"Temporary immunity to lava");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 36;
|
||||
item.height = 32;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 8;
|
||||
item.value = CalamityGlobalItem.Rarity6BuyPrice;
|
||||
item.rare = 6;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
{
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
||||
{
|
||||
line2.text = "Temporary immunity to lava\n" +
|
||||
"Provides heat protection in Death Mode";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
@@ -21,8 +22,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 30, 0, 0);
|
||||
item.rare = 9;
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.rare = 5;
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
}
|
||||
@@ -31,11 +32,11 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aquaticEmblem = true;
|
||||
player.npcTypeNoAggro[65] = true;
|
||||
player.npcTypeNoAggro[220] = true;
|
||||
player.npcTypeNoAggro[64] = true;
|
||||
player.npcTypeNoAggro[67] = true;
|
||||
player.npcTypeNoAggro[221] = true;
|
||||
player.npcTypeNoAggro[NPCID.Shark] = true;
|
||||
player.npcTypeNoAggro[NPCID.SeaSnail] = true;
|
||||
player.npcTypeNoAggro[NPCID.PinkJellyfish] = true;
|
||||
player.npcTypeNoAggro[NPCID.Crab] = true;
|
||||
player.npcTypeNoAggro[NPCID.Squid] = true;
|
||||
player.gills = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.value = Item.buyPrice(0, 9, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 60;
|
||||
item.height = 54;
|
||||
item.value = Item.buyPrice(0, 90, 0, 0); //30 gold reforge
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.defense = 10;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Asgard's Valor");
|
||||
Tooltip.SetDefault("Grants immunity to fire blocks and knockback\n" +
|
||||
"Immune to most debuffs including Brimstone Flames, and Glacial State\n" +
|
||||
"Immune to most debuffs and reduces the damage caused by the Brimstone Flames debuff\n" +
|
||||
"10% damage reduction while submerged in liquid\n" +
|
||||
"+20 max life\n" +
|
||||
"Grants a holy dash which can be used to ram enemies\n" +
|
||||
@@ -26,8 +26,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 38;
|
||||
item.height = 44;
|
||||
item.value = Item.buyPrice(0, 45, 0, 0);
|
||||
item.rare = 9;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = 7;
|
||||
item.defense = 8;
|
||||
item.accessory = true;
|
||||
}
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{ modPlayer.dashMod = 2; }
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
modPlayer.abaddon = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
@@ -50,8 +51,6 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
player.buffImmune[BuffID.Darkness] = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
player.statLifeMax2 += 20;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
{ player.endurance += 0.1f; }
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 90, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.accessory = true;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 30;
|
||||
item.value = Item.buyPrice(0, 21, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.World;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,8 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
"Being hit creates a miniature sun that lingers, dealing damage to nearby enemies\n" +
|
||||
"The sun will slowly drag enemies into it\n" +
|
||||
"Only one sun can be active at once\n" +
|
||||
"Provides a moderate amount of light in the Abyss\n" +
|
||||
"Provides heat and cold protection in Death Mode");
|
||||
"Provides a moderate amount of light in the Abyss");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 6));
|
||||
}
|
||||
|
||||
@@ -27,7 +28,22 @@ namespace CalamityMod.Items.Accessories
|
||||
item.accessory = true;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
{
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
||||
{
|
||||
line2.text = "Provides a moderate amount of light in the Abyss\n" +
|
||||
"Provides heat and cold protection in Death Mode";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -10,7 +10,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Blood Pact");
|
||||
Tooltip.SetDefault("Doubles your max HP\n" +
|
||||
"Allows you to be critically hit 25% of the time");
|
||||
"Allows you to be critically hit 25% of the time\n" +
|
||||
"After a critical hit, you gain various buffs for ten seconds\n" +
|
||||
"Any healing potions consumed during this time period heal 50 percent more health");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -18,7 +20,7 @@ namespace CalamityMod.Items.Accessories
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.rare = 8;
|
||||
item.value = Item.buyPrice(0, 24, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,33 +1,34 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class BloodflareCore : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloodflare Core");
|
||||
Tooltip.SetDefault("When below 50% life you gain 5% increased damage reduction and 10% increased damage\n" +
|
||||
"When below 15% life you gain 10% increased damage reduction and 20% increased damage\n" +
|
||||
"When below 100 defense you gain 15% increased damage");
|
||||
}
|
||||
public class BloodflareCore : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bloodflare Core");
|
||||
Tooltip.SetDefault("When below 50% life you gain 5% increased damage reduction and 10% increased damage\n" +
|
||||
"When below 15% life you gain 10% increased damage reduction and 20% increased damage\n" +
|
||||
"When below 100 defense you gain 15% increased damage");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = Item.buyPrice(0, 45, 0, 0);
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.accessory = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.bloodflareCore = true;
|
||||
}
|
||||
}
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.bloodflareCore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 36;
|
||||
item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.accessory = true;
|
||||
item.rare = 3;
|
||||
}
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 42;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity4BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.rare = 4;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 15;
|
||||
item.value = Item.buyPrice(0, 9, 0, 0);
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = 9;
|
||||
item.rare = 3;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.value = Item.buyPrice(0, 15, 0, 0);
|
||||
item.rare = 5;
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.rare = 8;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Accessories
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlaguedFuelPack>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||