Merge branch 'master' into master-meme-pets

This commit is contained in:
ben-tk committed 2021-08-31 14:39:24 -04:00
commit deb4fba9cb
6158 files changed
+128902 -103239

No files matched your search

+1
View File
@@ -0,0 +1 @@
patreon: Fabsol
+3
View File
@@ -1,3 +1,6 @@
# manually added cronscript
cronpull.sh
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
*.csproj
File diff suppressed because it is too large. Load diff
+47 -7
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.NPCs;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
@@ -10,7 +11,19 @@ namespace CalamityMod.Buffs
{
public override void Update(int type, Player player, ref int buffIndex)
{
if (type == BuffID.Shine)
if (type == BuffID.Panic)
{
player.moveSpeed -= 0.5f;
}
else if (type == BuffID.SugarRush)
{
player.moveSpeed -= 0.1f;
}
else if (type == BuffID.Swiftness)
{
player.moveSpeed -= 0.1f;
}
else if (type == BuffID.Shine)
{
player.Calamity().shine = true;
}
@@ -24,12 +37,12 @@ namespace CalamityMod.Buffs
}
else if (type >= BuffID.NebulaUpDmg1 && type <= BuffID.NebulaUpDmg3)
{
float nebulaDamage = 0.075f * player.nebulaLevelDamage; //7.5% to 22.5%
float nebulaDamage = 0.075f * player.nebulaLevelDamage; // 15% to 45% changed to 7.5% to 22.5%
player.allDamage -= nebulaDamage;
}
else if (type >= BuffID.NebulaUpLife1 && type <= BuffID.NebulaUpLife3)
{
player.lifeRegen -= 5 * player.nebulaLevelLife; //10 to 30 changed to 5 to 15
player.lifeRegen -= 5 * player.nebulaLevelLife; // 10 to 30 changed to 5 to 15
}
else if (type == BuffID.Warmth)
{
@@ -45,6 +58,8 @@ namespace CalamityMod.Buffs
{
if (npc.Calamity().webbed < npc.buffTime[buffIndex])
npc.Calamity().webbed = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().webbed;
npc.DelBuff(buffIndex);
buffIndex--;
}
@@ -52,7 +67,9 @@ namespace CalamityMod.Buffs
{
if (npc.Calamity().slowed < npc.buffTime[buffIndex])
npc.Calamity().slowed = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().slowed;
npc.DelBuff(buffIndex);
buffIndex--;
}
if (type == BuffID.Electrified)
@@ -71,6 +88,18 @@ namespace CalamityMod.Buffs
//Vanilla buffs
switch (type)
{
case BuffID.Archery:
tip = "20% increased arrow speed and 1.05x arrow damage";
break;
case BuffID.Swiftness:
tip = "15% increased movement speed";
break;
case BuffID.SugarRush:
tip = "10% increased movement speed and 20% increased mining speed";
break;
case BuffID.NebulaUpDmg1:
tip = "7.5% increased damage";
break;
@@ -83,7 +112,19 @@ namespace CalamityMod.Buffs
tip = "22.5% increased damage";
break;
case BuffID.BeetleEndurance1:
case BuffID.BeetleMight1:
tip = "Melee damage increased by 10%";
break;
case BuffID.BeetleMight2:
tip = "Melee damage increased by 20%";
break;
case BuffID.BeetleMight3:
tip = "Melee damage increased by 30%";
break;
case BuffID.BeetleEndurance1:
tip = "Damage taken reduced by 10%";
break;
@@ -118,8 +159,7 @@ namespace CalamityMod.Buffs
break;
case BuffID.CursedInferno:
if (CalamityWorld.revenge)
tip += ". All damage taken increased by 20%";
tip += ". All damage taken increased by 20%";
break;
case BuffID.Warmth:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 663 B

After

Width:  |  Height:  |  Size: 550 B

+24
View File
@@ -0,0 +1,24 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Cooldowns
{
public class DivineBlessCooldown : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Divine Recharge");
Description.SetDefault("Your divine powers are recharging");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().divineBlessCooldown = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Cooldowns
public override void SetDefaults()
{
DisplayName.SetDefault("God Slayer Cooldown");
Description.SetDefault("10% increase to all damage; godslayer effect is recharging");
Description.SetDefault("God Slayer dash is recharging");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -0,0 +1,19 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Cooldowns
{
public class UniverseSplitterCooldown : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Universe Splitter Cooldown");
Description.SetDefault("You cannot use the Universe Splitter");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

+21
View File
@@ -0,0 +1,21 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Cooldowns
{
public class Withered : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Withered");
Description.SetDefault("Holding withered weapons causes you to suffer but makes your weapons strong");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().witheredDebuff = true;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

+31
View File
@@ -0,0 +1,31 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class BanishingFire : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Banishing Fire");
Description.SetDefault("You shall not be forgiven for your sins");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().banishingFire = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().banishingFire < npc.buffTime[buffIndex])
npc.Calamity().banishingFire = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 567 B

+20
View File
@@ -0,0 +1,20 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class HeavyBleeding : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Heavy Bleeding");
Description.SetDefault("You're losing a lot of blood");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().waterLeechBleeding = true;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B

+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.DamageOverTime
public override void SetDefaults()
{
DisplayName.SetDefault("Lethal Lava Burn");
Description.SetDefault("Losing life");
Description.SetDefault("Losing life, reduced movement speed");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
+24
View File
@@ -0,0 +1,24 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class SagePoison : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Sage Poison");
Description.SetDefault("Poisoned");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().sagePoisonTime < npc.buffTime[buffIndex])
npc.Calamity().sagePoisonTime = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

+5 -1
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -17,7 +18,10 @@ namespace CalamityMod.Buffs.DamageOverTime
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().vaporfied = npc.buffTime[buffIndex];
if (npc.Calamity().vaporfied < npc.buffTime[buffIndex])
npc.Calamity().vaporfied = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().vaporfied;
npc.DelBuff(buffIndex);
buffIndex--;
}
+10 -2
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -16,9 +17,16 @@ namespace CalamityMod.Buffs.DamageOverTime
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
public override void Update(Player player, ref int buffIndex) => player.Calamity().vHex = true;
public override void Update(NPC npc, ref int buffIndex)
{
player.Calamity().vHex = true;
if (npc.Calamity().vulnerabilityHex < npc.buffTime[buffIndex])
npc.Calamity().vulnerabilityHex = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().vulnerabilityHex;
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
@@ -0,0 +1,21 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class WeakBrimstoneFlames : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Weak Brimstone Flames");
Description.SetDefault("Health loss");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex) => player.Calamity().weakBrimstoneFlames = true;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

After

Width:  |  Height:  |  Size: 698 B

+16 -1
View File
@@ -3,7 +3,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Mounts
{
public class AndromedaBuff : ModBuff
public class AndromedaBuff : ModBuff
{
public override void SetDefaults()
{
@@ -12,5 +12,20 @@ namespace CalamityMod.Buffs.Mounts
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
// Disables crouching with the Crouch, Crawl, and Roll Mod
Mod crouchMod = CalamityMod.Instance.crouchMod;
if (crouchMod != null)
{
// Mod Call inputs
// 1) "CanCrouch" -- name of operation
// 2) int for the player's index
// 3) bool for whether the player can use the crouch input this frame
// 4) bool for whether the player should be force-uncrouched this frame
crouchMod.Call("CanCrouch", player.whoAmI, false, true);
}
}
}
}
+28
View File
@@ -0,0 +1,28 @@
using CalamityMod.Projectiles.Pets;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Pets
{
public class LittleLightBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Little Light");
Description.SetDefault("Endearing");
Main.buffNoTimeDisplay[Type] = true;
Main.lightPet[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.buffTime[buffIndex] = 18000;
player.Calamity().littleLightPet = true;
bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<LittleLightProj>()] <= 0;
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
Projectile.NewProjectile(player.Center, -Vector2.UnitY * 10f, ModContent.ProjectileType<LittleLightProj>(), 0, 0f, player.whoAmI, 0f, 0f);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

@@ -1,19 +1,20 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
namespace CalamityMod.Buffs.Pets
{
public class ReaverSummonSetBuff : ModBuff
public class ReaverOrbBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Reaver Orb");
Description.SetDefault("The reaver orb will protect you");
Description.SetDefault("The reaver orb will light your way");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
@@ -33,4 +34,4 @@ namespace CalamityMod.Buffs.Summon
}
}
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 738 B

+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Pets
public override void SetDefaults()
{
DisplayName.SetDefault("Supreme Calamitas");
Description.SetDefault("Watching over you with supreme calamitous energy... How adorable");
Description.SetDefault("Watching over you with supreme calamitous energy...how adorable");
Main.buffNoTimeDisplay[Type] = true;
Main.vanityPet[Type] = true;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

After

Width:  |  Height:  |  Size: 412 B

+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Potions
public override void SetDefaults()
{
DisplayName.SetDefault("Abyssal Weapon");
Description.SetDefault("Melee weapons inflict abyssal flames, 15% increased movement speed");
Description.SetDefault("Melee weapons inflict abyssal flames, 10% increased movement speed");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 612 B

After

Width:  |  Height:  |  Size: 560 B

+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Potions
public override void SetDefaults()
{
DisplayName.SetDefault("Profaned Rage");
Description.SetDefault("Increased crit chance, increased movement and flight speed, and you gain more rage when damaged");
Description.SetDefault("Increased crit chance, movement and flight speed");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 671 B

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 500 B

+2 -2
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Adrenaline Mode");
Description.SetDefault("150% damage boost.");
Description.SetDefault("200% damage boost. Can be boosted by other items up to 245%.");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.StatBuffs
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().adrenalineModeActive = true;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 571 B

+2
View File
@@ -9,9 +9,11 @@ namespace CalamityMod.Buffs.StatBuffs
{
DisplayName.SetDefault("Afflicted");
Description.SetDefault("Empowered by otherworldly spirits");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
longerExpertDebuff = false;
}
+23
View File
@@ -0,0 +1,23 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class AvertorBonus : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Avertor Bonus");
Description.SetDefault("Boosted damage and life regeneration");
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().avertorBonus = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

+2 -3
View File
@@ -10,11 +10,10 @@ namespace CalamityMod.Buffs.StatBuffs
DisplayName.SetDefault("Bloody Boost");
Description.SetDefault("Increased offensive and defensive stats\n" +
"Healing potions grant more health");
Main.debuff[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
+13 -3
View File
@@ -7,8 +7,8 @@ namespace CalamityMod.Buffs.StatBuffs
{
public override void SetDefaults()
{
DisplayName.SetDefault("Boss Zen");
Description.SetDefault("The active boss is reducing spawn rates...a lot");
DisplayName.SetDefault("Boss Effects");
Description.SetDefault("This tooltip is edited in the function below");
Main.debuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
@@ -19,5 +19,15 @@ namespace CalamityMod.Buffs.StatBuffs
{
player.Calamity().bossZen = true;
}
}
public override void ModifyBuffTip(ref string tip, ref int rare)
{
tip = "The nearby boss is:\n" +
"Greatly reducing enemy spawn rates\n" +
"Disabling teleportation effects\n" +
"Increasing Nurse healing cost by 400%\n" +
"Disabling Death Mode weather and biome effects\n" +
"Disabling Target and Super Dummy hitboxes";
}
}
}
@@ -3,21 +3,22 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class ScarfMeleeBoost : ModBuff
public class DivineBless : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Scarf Boost");
Description.SetDefault("10% increased damage, 5% increased crit chance, and 5% increased melee speed");
Main.debuff[Type] = false;
DisplayName.SetDefault("Divine Bless");
Description.SetDefault("Increased health regen and minions inflict Banishing Fire");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().sMeleeBoost = true;
player.Calamity().divineBless = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

+3 -1
View File
@@ -25,7 +25,9 @@ namespace CalamityMod.Buffs.StatBuffs
player.immune = true;
player.immuneNoBlink = false;
player.immuneTime = 90;
}
for (int j = 0; j < player.hurtCooldowns.Length; j++)
player.hurtCooldowns[j] = player.immuneTime;
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 546 B

+7 -7
View File
@@ -8,17 +8,17 @@ namespace CalamityMod.Buffs.StatBuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Hallowed Power");
Description.SetDefault("Minion damage boosted by 15%");
Description.SetDefault("Minion damage boosted by 10%");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().hallowedPower = true;
}
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().hallowedPower = true;
player.minionDamage += 0.1f;
}
}
}
+4 -4
View File
@@ -8,17 +8,17 @@ namespace CalamityMod.Buffs.StatBuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Hallowed Defense");
Description.SetDefault("Defense boosted by 7 and damage reduction boosted by 7%");
Description.SetDefault("Defense boosted by 8 and damage reduction boosted by 4%");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().hallowedDefense = true;
}
player.statDefense += 8;
player.endurance += 0.04f;
}
}
}
-1
View File
@@ -12,7 +12,6 @@ namespace CalamityMod.Buffs.StatBuffs
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
longerExpertDebuff = false;
}
+3 -3
View File
@@ -5,12 +5,12 @@ namespace CalamityMod.Buffs.StatBuffs
{
public class KamiBuff : ModBuff
{
public const float RunSpeedBoost = 0.2f;
public const float RunAccelerationBoost = 0.4f;
public const float RunSpeedBoost = 0.15f;
public const float RunAccelerationBoost = 0.15f;
public override void SetDefaults()
{
DisplayName.SetDefault("Kami Injection");
Description.SetDefault("Increased defense, movement speed, and damage");
Description.SetDefault("Increased max movement speed, acceleration and damage");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -1,14 +1,16 @@
using Terraria;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class EvasionScarfBoost : ModBuff
class PhantomicArmourBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Evasion Scarf Boost");
Description.SetDefault("10% increased damage, 10% increased crit chance, and 15% increased melee speed");
DisplayName.SetDefault("Phantomic Shield");
Description.SetDefault("Defense boosted by 10 and damage reduction boosted by 5%\n" +
"An ephemeral bulwark protects you");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -17,7 +19,8 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().eScarfBoost = true;
player.endurance += 0.05f;
player.statDefense += 10;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

@@ -1,14 +1,15 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class AbsoluteRage : ModBuff
class PhantomicEmpowermentBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Absolute Rage");
Description.SetDefault("Anger hardens the heart. Boosts max life by 5%.");
DisplayName.SetDefault("Phantomic Empowerment");
Description.SetDefault("Empowering minion damage by 10%");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().absoluteRage = true;
player.minionDamage += 0.1f;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

@@ -0,0 +1,29 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
class PhantomicRestorationBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Phantomic Regen");
Description.SetDefault("Regenerating life");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer calPlayer = player.Calamity();
if (calPlayer.phantomicHeartRegen <= 0)
{
calPlayer.phantomicHeartRegen = 1000;
}
player.lifeRegen += 2;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Buffs.StatBuffs
tip = "You are an emissary of the profaned goddess now!\n" +
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
"The " + (player.wet ? (player.honeyWet ? "honey cools" : "water douses") : "darkness of night cools") + " your flames, empowering your defensive capabilities") +
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
}
}
else if (CalamityWorld.downedSCal)
+20 -3
View File
@@ -1,24 +1,41 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class RageMode : ModBuff
public class RageMode : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Rage Mode");
Description.SetDefault("50% damage boost. Can be boosted by other items up to 110%.");
Description.SetDefault("35% damage boost.");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.buffNoTimeDisplay[Type] = true; // Because duration is variable, time is not displayed.
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().rageModeActive = true;
CalamityPlayer mp = player.Calamity();
// If the player still has Rage left to burn, the buff stays active indefinitely.
if (mp.rage > 0f)
{
player.buffTime[buffIndex] = 2; // Every frame, give another frame for the buff to live.
mp.rageModeActive = true;
}
// Otherwise, Rage Mode ends instantly.
else
{
player.DelBuff(buffIndex--); // TML documentation requires you to decrement buffIndex if deleting the buff during Update.
mp.rageModeActive = false;
mp.rage = 0f;
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 B

After

Width:  |  Height:  |  Size: 478 B

+2 -2
View File
@@ -7,8 +7,8 @@ namespace CalamityMod.Buffs.StatBuffs
{
public override void SetDefaults()
{
DisplayName.SetDefault("Silva Invulnerability");
Description.SetDefault("You are invulnerable");
DisplayName.SetDefault("Silva Immunity");
Description.SetDefault("You are unkillable and immune to most debuffs");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
+5 -5
View File
@@ -16,9 +16,9 @@ namespace CalamityMod.Buffs.StatBuffs
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().sPower = true;
}
}
public override void Update(Player player, ref int buffIndex)
{
player.minionDamage += 0.1f;
}
}
}
+4 -3
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Spirit Defense");
Description.SetDefault("Defense boosted by 5 and damage reduction boosted by 5%");
Description.SetDefault("Defense boosted by 6 and damage reduction boosted by 3%");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -18,7 +18,8 @@ namespace CalamityMod.Buffs.StatBuffs
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().sDefense = true;
}
player.statDefense += 6;
player.endurance += 0.03f;
}
}
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -19,6 +20,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().eutrophication < npc.buffTime[buffIndex])
npc.Calamity().eutrophication = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eutrophication;
npc.DelBuff(buffIndex);
buffIndex--;
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -19,6 +20,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().eFreeze < npc.buffTime[buffIndex])
npc.Calamity().eFreeze = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().eFreeze;
npc.DelBuff(buffIndex);
buffIndex--;
}
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Extreme Gravity");
Description.SetDefault("Your wing time is reduced by 50%, infinite flight is disabled");
Description.SetDefault("Your wing time is reduced by 25%, infinite flight is disabled");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Icarus' Folly");
Description.SetDefault("Your wing time is reduced by 75%, infinite flight is disabled");
Description.SetDefault("Your wing time is reduced by 33%, infinite flight is disabled");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -26,6 +27,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().gState < npc.buffTime[buffIndex])
npc.Calamity().gState = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().gState;
npc.DelBuff(buffIndex);
buffIndex--;
}
-32
View File
@@ -1,32 +0,0 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class Horror : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Horror");
Description.SetDefault("The horror...");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().horror = true;
}
public override void ModifyBuffTip(ref string tip, ref int rare)
{
Player player = Main.player[Main.myPlayer];
if (player.Calamity().laudanum || player.Calamity().draedonsHeart)
{
tip = "The horror fuels your strength";
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 471 B

After

Width:  |  Height:  |  Size: 493 B

+5 -1
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -6,7 +7,8 @@ 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).
// 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 const float MaxNPCSpeed = 16f;
public override void SetDefaults()
{
DisplayName.SetDefault("Kami Flu");
@@ -21,6 +23,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().kamiFlu;
npc.DelBuff(buffIndex);
buffIndex--;
}
-5
View File
@@ -24,10 +24,5 @@ namespace CalamityMod.Buffs.StatDebuffs
npc.DelBuff(buffIndex);
buffIndex--;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().marked = true;
}
}
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -19,6 +20,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().silvaStun < npc.buffTime[buffIndex])
npc.Calamity().silvaStun = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().silvaStun;
npc.DelBuff(buffIndex);
buffIndex--;
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -19,6 +20,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().tSad < npc.buffTime[buffIndex])
npc.Calamity().tSad = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tSad;
npc.DelBuff(buffIndex);
buffIndex--;
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -19,6 +20,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
npc.Calamity().tesla = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().tesla;
npc.DelBuff(buffIndex);
buffIndex--;
}
+3
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
@@ -20,6 +21,8 @@ namespace CalamityMod.Buffs.StatDebuffs
{
if (npc.Calamity().timeSlow < npc.buffTime[buffIndex])
npc.Calamity().timeSlow = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().timeSlow;
npc.DelBuff(buffIndex);
buffIndex--;
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void SetDefaults()
{
DisplayName.SetDefault("Whispering Death");
Description.SetDefault("Death approaches; defense, attack power, and life regen reduced");
Description.SetDefault("Death approaches; defense, movement speed, attack power and life regen reduced");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
+1
View File
@@ -13,6 +13,7 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The valkyrie will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("Ancient yet so dangerous");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The aquatic star will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 528 B

+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The mini astrageldon slime will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The astral probe will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The hydrothermic vent will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("A cute forest spirit is following you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The fighter jet will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The blood clot will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("Big happy family");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The brimstone elemental will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The brittle star will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -12,7 +12,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("The squid will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("Calamitas and her brothers will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("A mini jungle dragon is following you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
+2 -1
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Buffs.Summon
Description.SetDefault("A hot, searing flower is floating uncomfortably close to you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
//Main.persistentBuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
Loaded 100 of 6158 files, more files were not shown because too many files have changed in this diff. Show more