1.4.2.101 source update from zip

This commit is contained in:
Ozzatron committed 2019-05-26 23:39:43 -04:00
1 parent acec379c79
commit 61a7b3f5d4
1040 files changed
+33478 -19986

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs
public override void SetDefaults()
{
DisplayName.SetDefault("Afflicted");
Description.SetDefault("Rage is power");
Description.SetDefault("Empowered by otherworldly spirits");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
@@ -21,7 +21,7 @@ namespace CalamityMod.Buffs
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).afflictedBuff = true;
player.GetModPlayer<CalamityPlayer>(mod).afflicted = true;
}
}
}
+31
View File
@@ -0,0 +1,31 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class AkatoYharonBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Akato");
Description.SetDefault("'Looks like you'll have to take care of it now'");
Main.buffNoTimeDisplay[Type] = true;
Main.vanityPet[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.buffTime[buffIndex] = 18000;
player.GetModPlayer<CalamityPlayer>(mod).akato = true;
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Akato")] <= 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, mod.ProjectileType("Akato"), 0, 0f, player.whoAmI, 0f, 0f);
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 764 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class ArmorCrumbling : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Armor Crumbling");
Description.SetDefault("Melee and rogue attacks break enemy armor");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).armorCrumbling = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class ArmorShattering : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Armor Shattering");
Description.SetDefault("Melee and rogue attacks break enemy armor");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).armorShattering = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class AstralInjectionBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Astral Injection");
Description.SetDefault("Extreme mana recovery");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).astralInjection = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class BoundingBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Bounding");
Description.SetDefault("Increased jump height, jump speed, and fall damage resistance");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).bounding = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

+5
View File
@@ -23,5 +23,10 @@ namespace CalamityMod.Buffs
{
player.GetModPlayer<CalamityPlayer>(mod).bBlood = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).bBlood = true;
}
}
}
-15
View File
@@ -71,21 +71,6 @@ namespace CalamityMod.Buffs
tip = "15% increased damage";
if (type == BuffID.NebulaUpDmg3)
tip = "22.5% increased damage";
if (type == BuffID.ChaosState)
{
if (CalamityWorld.revenge)
{
int closestPlayer = (int)Player.FindClosest(new Vector2((float)(Main.maxTilesX / 2), (float)Main.worldSurface / 2f) * 16f, 0, 0);
if (!Main.player[closestPlayer].GetModPlayer<CalamityPlayer>(mod).normalityRelocator)
tip = "Using the Rod of Discord will take life and damage taken is increased by 50%";
else
tip = "Using the Rod of Discord or Normality Relocator will take life";
}
else
{
tip = "Using the Rod of Discord or Normality Relocator will take life";
}
}
}
}
}
+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class CalciumBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Calcium");
Description.SetDefault("You are immune to fall damage");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).calcium = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class CeaselessHunger : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Ceaseless Hunger");
Description.SetDefault("You are sucking up all the items");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).ceaselessHunger = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class DraconicSurgeBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Draconic Surge");
Description.SetDefault("The power of a dragon courses through your veins");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).draconicSurge = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

+24
View File
@@ -0,0 +1,24 @@
using Terraria;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Buffs
{
class GazeOfCrysthamyrBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Gaze of Crysthamyr");
Description.SetDefault("You are riding a shadow dragon");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.mount.SetMount(mod.MountType<Items.Mounts.Crysthamyr>(), player);
player.buffTime[buffIndex] = 10;
player.GetModPlayer<CalamityPlayer>(mod).crysthamyr = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class GravityNormalizerBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Gravity Normalizer");
Description.SetDefault("Gravity is now normal in space, immunity to distorted");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).gravityNormalizer = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class HolyWrathBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Holy Wrath");
Description.SetDefault("Increased damage, increased movement and flight speed, and all attacks inflict holy fire");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).holyWrath = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

+30
View File
@@ -0,0 +1,30 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
namespace CalamityMod.Buffs
{
public class Kendra : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Kendra");
Description.SetDefault("A loyal friend accompanies you.");
Main.buffNoTimeDisplay[Type] = true;
Main.vanityPet[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.buffTime[buffIndex] = 18000;
player.GetModPlayer<CalamityPlayer>(mod).kendra = true;
bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Kendra")] <= 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, mod.ProjectileType("Kendra"), 0, 0f, player.whoAmI, 0f, 0f);
}
}
}
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Buffs
public override void SetDefaults()
{
DisplayName.SetDefault("Mushy");
Description.SetDefault("Increased defense by 10 and increased life regen by 5");
Description.SetDefault("Increased defense and life regen by 5");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class PenumbraBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Penumbra");
Description.SetDefault("Rogue stealth builds during nighttime and eclipse while moving");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).penumbra = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class PhotosynthesisBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Photosynthesis");
Description.SetDefault("Life regen boosted, more during daytime, and hearts heal more HP");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).photosynthesis = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class ProfanedRageBuff : ModBuff
{
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");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).profanedRage = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

+28
View File
@@ -0,0 +1,28 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs.Shrines
{
public class ChiBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Chi");
Description.SetDefault("Your next attack is boosted and you are more resilient");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).trinketOfChiBuff = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

+28
View File
@@ -0,0 +1,28 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs.Shrines
{
public class CorruptionEffigyBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Corruption Effigy");
Description.SetDefault("The corruption empowers you");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).corrEffigy = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

+28
View File
@@ -0,0 +1,28 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs.Shrines
{
public class CrimsonEffigyBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Crimson Effigy");
Description.SetDefault("The crimson empowers you");
Main.buffNoTimeDisplay[Type] = true;
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).crimEffigy = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

+34
View File
@@ -0,0 +1,34 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Shrines
{
public class GladiatorSwords : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Gladiator Swords");
Description.SetDefault("The gladiator swords will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
if (player.ownedProjectileCounts[mod.ProjectileType("GladiatorSword")] > 0)
{
modPlayer.glSword = true;
}
if (!modPlayer.glSword)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

+24
View File
@@ -0,0 +1,24 @@
using Terraria;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Buffs.Shrines
{
class OnyxExcavatorBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Onyx Excavator");
Description.SetDefault("Drill");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.mount.SetMount(mod.MountType<Items.Mounts.OnyxExcavator>(), player);
player.buffTime[buffIndex] = 10;
player.GetModPlayer<CalamityPlayer>(mod).onyxExcavator = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

+24
View File
@@ -0,0 +1,24 @@
using Terraria;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Buffs.Shrines
{
class TundraLeashBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Angry Dog");
Description.SetDefault("You are riding an angry dog");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.mount.SetMount(mod.MountType<Items.Mounts.AngryDog>(), player);
player.buffTime[buffIndex] = 10;
player.GetModPlayer<CalamityPlayer>(mod).angryDog = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Buffs
{
player.AddBuff(mod.BuffType("SirenWaterSpeed"), 360);
}
}
}
else
{
player.DelBuff(buffIndex);
+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class Soaring : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Soaring");
Description.SetDefault("Increased wing flight time and speed");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).soaring = true;
}
}
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

+1 -1
View File
@@ -26,6 +26,6 @@ namespace CalamityMod.Buffs
{
Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("SirenYoung"), 0, 0f, player.whoAmI, 0f, 0f);
}
}
}
}
}
+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class TriumphBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Triumph");
Description.SetDefault("Enemy contact damage is reduced, the lower their health the greater the reduction");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.GetModPlayer<CalamityPlayer>(mod).triumph = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

+27
View File
@@ -0,0 +1,27 @@
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod;
using CalamityMod.NPCs;
namespace CalamityMod.Buffs
{
public class WarCleave : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("War Cleave");
Description.SetDefault("Defense and protection reduced");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
longerExpertDebuff = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.GetGlobalNPC<CalamityGlobalNPC>(mod).wCleave = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

+2 -2
View File
@@ -82,7 +82,6 @@ namespace CalamityMod
new [] { "BloodMoonText", "The Blood Moon is rising..." },
new [] { "DargonBossText", "The dark sun awaits." },
new [] { "DargonBossText2", "My dragon deems you an unworthy opponent. You must acquire the power of the dark sun to witness his true power." },
new [] { "DargonBossText3", "My dragon deems you an unworthy opponent. Snuff out the profaned flame and destroy the god devourer to witness his true power." },
new [] { "RevengeText", "Revengeance is active." },
new [] { "RevengeText2", "Revengeance is not active." },
new [] { "DeathText", "Death is active, enjoy the fun." },
@@ -113,7 +112,8 @@ namespace CalamityMod
new [] { "SummonLevelUpFinal", "Summoner weapon proficiency maxed out!" },
new [] { "RogueLevelUp", "Rogue weapon proficiency level up!" },
new [] { "RogueLevelUpFinal", "Rogue weapon proficiency maxed out!" },
new [] { "OpenSunkenSea", "The depths of the underground desert are rumbling..." }
new [] { "OpenSunkenSea", "The depths of the underground desert are rumbling..." },
new [] { "AprilFools", "The LORDE is approaching..." }
};
}
+152 -15
View File
@@ -66,6 +66,7 @@ namespace CalamityMod
public static List<int> projectileMinionList;
public static List<int> enemyImmunityList;
public static List<int> dungeonEnemyBuffList;
public static List<int> dungeonProjectileBuffList;
public static List<int> bossScaleList;
public static List<int> beeEnemyList;
public static List<int> beeProjectileList;
@@ -90,6 +91,8 @@ namespace CalamityMod
public static List<int> revengeanceProjectileBuffList;
public static List<int> trapProjectileList;
public static List<int> scopedWeaponList;
public static List<int> trueMeleeBoostExceptionList;
public static List<int> skeletonList;
public static CalamityMod Instance;
@@ -212,6 +215,7 @@ namespace CalamityMod
projectileMinionList = null;
enemyImmunityList = null;
dungeonEnemyBuffList = null;
dungeonProjectileBuffList = null;
bossScaleList = null;
beeEnemyList = null;
beeProjectileList = null;
@@ -235,6 +239,8 @@ namespace CalamityMod
revengeanceProjectileBuffList = null;
trapProjectileList = null;
scopedWeaponList = null;
trueMeleeBoostExceptionList = null;
skeletonList = null;
BossHealthBarManager.Unload();
base.Unload();
@@ -304,7 +310,35 @@ namespace CalamityMod
"Jenonen",
"Dodu",
"Arti",
"Tervastator"
"Tervastator",
"Luis Arguello",
"Alexander Davis",
"BakaQing",
"Laura Coonrod",
"Xaphlactus",
"MajinBagel",
"Bendy",
"Rando Calrissian",
"Tails the Fox 92",
"Bread",
"Minty Candy",
"Preston Card",
"MovingTarget_086",
"Shiro",
"Chip",
"Taylor Riverpaw",
"ShotgunAngel",
"Sandblast",
"ThomasThePencil",
"Aero (Aero#4599)",
"GlitchOut",
"Daawnz",
"CrabBar",
"Yatagarasu",
"Jarod Isaac Gordon",
"Zombieh",
"MingWhy",
"Random Weeb"
};
rangedProjectileExceptionList = new List<int>()
@@ -313,6 +347,7 @@ namespace CalamityMod
ProjectileID.VortexBeater,
ProjectileID.DD2PhoenixBow,
ProjectileID.IchorDart,
ProjectileID.PhantasmArrow,
calamity.ProjectileType("Phangasm"),
calamity.ProjectileType("Contagion"),
calamity.ProjectileType("DaemonsFlame"),
@@ -323,7 +358,10 @@ namespace CalamityMod
calamity.ProjectileType("StarfleetMK2"),
calamity.ProjectileType("TerraBulletSplit"),
calamity.ProjectileType("TerraArrow2"),
calamity.ProjectileType("OMGWTH")
calamity.ProjectileType("OMGWTH"),
calamity.ProjectileType("Norfleet"),
calamity.ProjectileType("NorfleetComet"),
calamity.ProjectileType("NorfleetExplosion")
};
projectileMinionList = new List<int>()
@@ -352,7 +390,16 @@ namespace CalamityMod
enemyImmunityList = new List<int>()
{
NPCID.KingSlime,
NPCID.EaterofWorldsHead,
NPCID.EaterofWorldsBody,
NPCID.EaterofWorldsTail,
NPCID.BrainofCthulhu,
NPCID.Creeper,
NPCID.EyeofCthulhu,
NPCID.QueenBee,
NPCID.SkeletronHead,
NPCID.SkeletronHand,
NPCID.WallofFlesh,
NPCID.WallofFleshEye,
NPCID.Retinazer,
@@ -407,6 +454,19 @@ namespace CalamityMod
NPCID.RustyArmoredBonesAxe
};
dungeonProjectileBuffList = new List<int>()
{
ProjectileID.PaladinsHammerHostile,
ProjectileID.ShadowBeamHostile,
ProjectileID.InfernoHostileBolt,
ProjectileID.InfernoHostileBlast,
ProjectileID.LostSoulHostile,
ProjectileID.SniperBullet,
ProjectileID.RocketSkeleton,
ProjectileID.BulletDeadeye,
ProjectileID.Shadowflames
};
bossScaleList = new List<int>()
{
NPCID.EaterofWorldsHead,
@@ -744,7 +804,6 @@ namespace CalamityMod
sixtySixDamageBuffList = new List<int>()
{
ItemID.TerraBlade,
ItemID.TrueNightsEdge,
ItemID.WandofSparking,
ItemID.MedusaHead,
@@ -769,6 +828,7 @@ namespace CalamityMod
thirtyThreeDamageBuffList = new List<int>()
{
ItemID.TerraBlade,
ItemID.CrystalVileShard,
ItemID.SoulDrain,
ItemID.ClingerStaff,
@@ -783,7 +843,8 @@ namespace CalamityMod
ItemID.YellowPhasesaber,
ItemID.PurplePhasesaber,
ItemID.TheRottedFork,
ItemID.VampireKnives
ItemID.VampireKnives,
ItemID.Cascade
};
twentyFiveDamageBuffList = new List<int>()
@@ -838,6 +899,7 @@ namespace CalamityMod
NPCID.MourningWood,
NPCID.Splinterling,
NPCID.Pumpking,
NPCID.PumpkingBlade,
NPCID.Hellhound,
NPCID.Poltergeist
};
@@ -1146,7 +1208,6 @@ namespace CalamityMod
calamity.ProjectileType("SirenSong"),
calamity.ProjectileType("YharonFireball"),
calamity.ProjectileType("YharonFireball2"),
calamity.ProjectileType("YharonFireballHoming"),
calamity.ProjectileType("PearlBurst"),
calamity.ProjectileType("PearlRain")
};
@@ -1167,7 +1228,87 @@ namespace CalamityMod
calamity.ItemType("AMR"),
calamity.ItemType("Shroomer"),
calamity.ItemType("SpectreRifle"),
calamity.ItemType("Svantechnical")
calamity.ItemType("Svantechnical"),
calamity.ItemType("Skullmasher")
};
trueMeleeBoostExceptionList = new List<int>()
{
ItemID.FlowerPow,
ItemID.Flairon,
ItemID.ChlorophytePartisan,
ItemID.MushroomSpear,
ItemID.NorthPole,
ItemID.WoodYoyo,
ItemID.CorruptYoyo,
ItemID.CrimsonYoyo,
ItemID.JungleYoyo,
ItemID.Cascade,
ItemID.Chik,
ItemID.Code2,
ItemID.Rally,
ItemID.Yelets,
ItemID.RedsYoyo,
ItemID.ValkyrieYoyo,
ItemID.Amarok,
ItemID.HelFire,
ItemID.Kraken,
ItemID.TheEyeOfCthulhu,
ItemID.FormatC,
ItemID.Gradient,
ItemID.Valor,
ItemID.Terrarian,
calamity.ItemType("BallOFugu"),
calamity.ItemType("TyphonsGreed"),
calamity.ItemType("AmidiasTrident"),
calamity.ItemType("HellionFlowerSpear"),
calamity.ItemType("StarnightLance"),
calamity.ItemType("TerraLance"),
calamity.ItemType("BansheeHook"),
calamity.ItemType("SpatialLance"),
calamity.ItemType("StreamGouge"),
calamity.ItemType("AirSpinner"),
calamity.ItemType("Aorta"),
calamity.ItemType("Azathoth"),
calamity.ItemType("Chaotrix"),
calamity.ItemType("Cnidarian"),
calamity.ItemType("Lacerator"),
calamity.ItemType("Quagmire"),
calamity.ItemType("Shimmerspark"),
calamity.ItemType("SolarFlare"),
calamity.ItemType("TheEyeofCalamitas"),
calamity.ItemType("TheGodsGambit"),
calamity.ItemType("TheObliterator"),
calamity.ItemType("ThePlaguebringer"),
calamity.ItemType("Verdant"),
calamity.ItemType("YinYo")
};
skeletonList = new List<int>()
{
NPCID.BigPantlessSkeleton,
NPCID.SmallPantlessSkeleton,
NPCID.BigMisassembledSkeleton,
NPCID.SmallMisassembledSkeleton,
NPCID.BigHeadacheSkeleton,
NPCID.SmallHeadacheSkeleton,
NPCID.BigSkeleton,
NPCID.SmallSkeleton,
NPCID.HeavySkeleton,
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
};
}
}
@@ -1181,14 +1322,6 @@ namespace CalamityMod
{
if (Main.myPlayer != -1 && !Main.gameMenu && Main.LocalPlayer.active)
{
if (NPC.AnyNPCs(NPCID.CultistBoss))
{
if (calamityModMusic != null)
music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Doomsayer");
else
music = MusicID.Boss4;
priority = MusicPriority.BossMedium;
}
if (Main.LocalPlayer.GetModPlayer<CalamityPlayer>(this).ZoneCalamity)
{
if (!CalamityPlayer.areThereAnyDamnBosses)
@@ -1837,6 +1970,9 @@ namespace CalamityMod
int type = reader.ReadInt32();
CalamityWorld.bossType = type;
break;
case CalamityModMessageType.DeathCountSync:
Main.player[reader.ReadInt32()].GetModPlayer<CalamityPlayer>().HandleDeathCount(reader);
break;
default:
ErrorLogger.Log("CalamityMod: Unknown Message type: " + msgType);
break;
@@ -1871,6 +2007,7 @@ namespace CalamityMod
BossRushStage,
DoGCountdownSync,
BossSpawnCountdownSync,
BossTypeSync
BossTypeSync,
DeathCountSync
}
}
+2408 -741
View File
File diff suppressed because it is too large. Load diff
+291 -3467
View File
File diff suppressed because it is too large. Load diff
+54 -3
View File
@@ -12,13 +12,21 @@ namespace CalamityMod
public static bool ExpertChilledWaterRemoval = true;
public static bool ProficiencyEnabled = true;
public static bool MiningSpeedBoost = false;
public static bool DisableExpertEnemySpawnsNearHouse = true;
public static bool DisableExpertEnemySpawnsNearHouse = false;
public static bool ExpertPillarEnemyKillCountReduction = true;
public static bool LethalLava = true;
public static bool BossRushAccessoryCurse = false;
public static bool BossRushHealthCurse = false;
public static bool BossRushDashCurse = false;
public static bool BossRushXerocCurse = false;
public static bool BossRushImmunityFrameCurse = false;
public static int RageMeterXPos = 500;
public static int RageMeterYPos = 30;
public static int AdrenalineMeterXPos = 650;
public static int AdrenalineMeterYPos = 30;
public static int BossHealthPercentageBoost = 0;
static readonly string ConfigPath = Path.Combine(Main.SavePath, "Mod Configs", "CalamityConfig.json");
static Preferences Configuration = new Preferences(ConfigPath);
@@ -40,13 +48,21 @@ namespace CalamityMod
ExpertChilledWaterRemoval = true;
ProficiencyEnabled = true;
MiningSpeedBoost = false;
DisableExpertEnemySpawnsNearHouse = true;
DisableExpertEnemySpawnsNearHouse = false;
ExpertPillarEnemyKillCountReduction = true;
LethalLava = true;
BossRushAccessoryCurse = false;
BossRushHealthCurse = false;
BossRushDashCurse = false;
BossRushXerocCurse = false;
BossRushImmunityFrameCurse = false;
RageMeterXPos = 500;
RageMeterYPos = 30;
AdrenalineMeterXPos = 650;
AdrenalineMeterYPos = 30;
BossHealthPercentageBoost = 0;
}
public static bool ReadConfig()
@@ -60,11 +76,19 @@ namespace CalamityMod
Configuration.Get("MiningSpeedBoost", ref MiningSpeedBoost);
Configuration.Get("DisableExpertEnemySpawnsNearHouse", ref DisableExpertEnemySpawnsNearHouse);
Configuration.Get("ExpertPillarEnemyKillCountReduction", ref ExpertPillarEnemyKillCountReduction);
Configuration.Get("LethalLava", ref LethalLava);
Configuration.Get("BossRushAccessoryCurse", ref BossRushAccessoryCurse);
Configuration.Get("BossRushHealthCurse", ref BossRushHealthCurse);
Configuration.Get("BossRushDashCurse", ref BossRushDashCurse);
Configuration.Get("BossRushXerocCurse", ref BossRushXerocCurse);
Configuration.Get("BossRushImmunityFrameCurse", ref BossRushImmunityFrameCurse);
Configuration.Get("RageMeterXPos", ref RageMeterXPos);
Configuration.Get("RageMeterYPos", ref RageMeterYPos);
Configuration.Get("AdrenalineMeterXPos", ref AdrenalineMeterXPos);
Configuration.Get("AdrenalineMeterYPos", ref AdrenalineMeterYPos);
Configuration.Get("BossHealthPercentageBoost", ref BossHealthPercentageBoost);
return true;
}
return false;
@@ -80,6 +104,13 @@ namespace CalamityMod
Configuration.Put("MiningSpeedBoost", MiningSpeedBoost);
Configuration.Put("DisableExpertEnemySpawnsNearHouse", DisableExpertEnemySpawnsNearHouse);
Configuration.Put("ExpertPillarEnemyKillCountReduction", ExpertPillarEnemyKillCountReduction);
Configuration.Put("LethalLava", LethalLava);
Configuration.Put("BossRushAccessoryCurse", BossRushAccessoryCurse);
Configuration.Put("BossRushHealthCurse", BossRushHealthCurse);
Configuration.Put("BossRushDashCurse", BossRushDashCurse);
Configuration.Put("BossRushXerocCurse", BossRushXerocCurse);
Configuration.Put("BossRushImmunityFrameCurse", BossRushImmunityFrameCurse);
Configuration.Put("RageMeterXPos", RageMeterXPos);
if (RageMeterXPos < 0)
@@ -93,6 +124,11 @@ namespace CalamityMod
Configuration.Put("AdrenalineMeterYPos", AdrenalineMeterYPos);
if (AdrenalineMeterYPos < 0)
AdrenalineMeterYPos = 0;
Configuration.Put("BossHealthPercentageBoost", BossHealthPercentageBoost);
if (BossHealthPercentageBoost < 0)
BossHealthPercentageBoost = 0;
if (BossHealthPercentageBoost > 900)
BossHealthPercentageBoost = 900;
Configuration.Save();
}
@@ -101,14 +137,20 @@ namespace CalamityMod
public override void NetSend(BinaryWriter writer)
{
var data = new BitsByte(AdrenalineAndRage, ExpertDebuffDurationReduction, ExpertChilledWaterRemoval,
ProficiencyEnabled, MiningSpeedBoost, DisableExpertEnemySpawnsNearHouse, ExpertPillarEnemyKillCountReduction);
ProficiencyEnabled, MiningSpeedBoost, DisableExpertEnemySpawnsNearHouse, ExpertPillarEnemyKillCountReduction,
LethalLava);
var data2 = new BitsByte(BossRushAccessoryCurse, BossRushHealthCurse, BossRushDashCurse,
BossRushXerocCurse, BossRushImmunityFrameCurse);
writer.Write(data);
writer.Write(data2);
writer.Write(RageMeterXPos);
writer.Write(RageMeterYPos);
writer.Write(AdrenalineMeterXPos);
writer.Write(AdrenalineMeterYPos);
writer.Write(BossHealthPercentageBoost);
}
public override void NetReceive(BinaryReader reader)
@@ -123,11 +165,20 @@ namespace CalamityMod
MiningSpeedBoost = data[4];
DisableExpertEnemySpawnsNearHouse = data[5];
ExpertPillarEnemyKillCountReduction = data[6];
LethalLava = data[7];
var data2 = (BitsByte)reader.ReadByte();
BossRushAccessoryCurse = data2[0];
BossRushHealthCurse = data2[1];
BossRushDashCurse = data2[2];
BossRushXerocCurse = data2[3];
BossRushImmunityFrameCurse = data2[4];
RageMeterXPos = reader.ReadInt32();
RageMeterYPos = reader.ReadInt32();
AdrenalineMeterXPos = reader.ReadInt32();
AdrenalineMeterYPos = reader.ReadInt32();
BossHealthPercentageBoost = reader.ReadInt32();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 501 B

+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.AbyssItems
{
DisplayName.SetDefault("Depths Charm");
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");
"Removes the bleed effect caused by the upper layers of the abyss");
}
public override void SetDefaults()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 B

After

Width:  |  Height:  |  Size: 1.3 KiB

+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ambrosial Ampoule");
Tooltip.SetDefault("50% increased mining speed\n" +
Tooltip.SetDefault("25% increased mining speed\n" +
"You emit light\n" +
"5% increased damage reduction and increased life regen\n" +
"Poison, Freeze, Chill, Frostburn, and Venom immunity\n" +
+22 -22
View File
@@ -9,28 +9,28 @@ using CalamityMod.Items;
namespace CalamityMod.Items.Accessories
{
public class AmidiasSpark : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Amidias' Spark");
Tooltip.SetDefault("Taking damage releases a blast of sparks\n" +
"Sparks do extra damage in Hardmode");
}
public class AmidiasSpark : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Amidias' Spark");
Tooltip.SetDefault("Taking damage releases a blast of sparks\n" +
"Sparks do extra damage in Hardmode");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.aSpark = true;
}
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.aSpark = true;
}
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ancient Fossil");
Tooltip.SetDefault("Increases pick speed by 35% while underground");
Tooltip.SetDefault("Increases pick speed by 15% while underground");
}
public override void SetDefaults()
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
{
if (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight)
{
player.pickSpeed -= 0.35f;
player.pickSpeed -= 0.15f;
}
}
+2 -2
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.projRef = true;
modPlayer.projRef = true;
}
}
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Archaic Powder");
Tooltip.SetDefault("50% increased mining speed, 7% damage reduction, and +3 defense while underground or in the underworld");
Tooltip.SetDefault("20% increased mining speed, 7% damage reduction, and +3 defense while underground or in the underworld");
}
public override void SetDefaults()
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories
{
player.statDefense += 3;
player.endurance += 0.07f;
player.pickSpeed -= 0.5f;
player.pickSpeed -= 0.2f;
}
}
+2 -2
View File
@@ -32,6 +32,6 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.aBulwark = true;
player.buffImmune[mod.BuffType("GodSlayerInferno")] = true;
}
}
}
}
}
+9 -1
View File
@@ -41,5 +41,13 @@ namespace CalamityMod.Items.Accessories
recipe.SetResult(this);
recipe.AddRecipe();
}
}
public override void OnCraft(Recipe recipe)
{
if (Main.rand.Next(40) == 0)
recipe.createItem.type = mod.ItemType("SamuraiBadge");
else
recipe.createItem.type = item.type;
}
}
}
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
bool canUse = player.name == "Fabsol" && player.townNPCs <= 1;
bool canUse = (player.name == "Fabsol" || player.name == "Totalbiscuit") && player.townNPCs <= 1;
if (canUse)
{
modPlayer.lol = true;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 5;
item.rare = 3;
item.accessory = true;
}
+4 -4
View File
@@ -14,10 +14,10 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dark Sun Ring");
Tooltip.SetDefault("10% increase to damage, minion knockback, and melee speed\n" +
"+1 life regen, 30% increased pick speed, and +2 max minions\n" +
"During the day the player has +2 life regen\n" +
"During the night the player has +20 defense\n" +
Tooltip.SetDefault("12% increase to damage, minion knockback, and melee speed\n" +
"+1 life regen, 15% increased pick speed, and +2 max minions\n" +
"During the day the player has +3 life regen\n" +
"During the night the player has +30 defense\n" +
"Contains the power of the dark sun");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
}
+1
View File
@@ -30,6 +30,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
player.moveSpeed -= 0.1f;
player.thorns = 0.25f;
}
+2 -2
View File
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.rare = 10;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = 2;
item.value = Item.buyPrice(0, 3, 0, 0);
item.accessory = true;
}
+3 -3
View File
@@ -22,11 +22,11 @@ namespace CalamityMod.Items.Accessories
item.height = 32;
item.value = Item.buyPrice(0, 12, 0, 0);
item.rare = 5;
item.defense = 6;
item.defense = 8;
item.accessory = true;
}
public override void AddRecipes()
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "VerstaltiteBar", 5);
@@ -35,5 +35,5 @@ namespace CalamityMod.Items.Accessories
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
}
+29 -27
View File
@@ -6,36 +6,38 @@ using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
using CalamityMod.Items.CalamityCustomThrowingDamage;
namespace CalamityMod.Items.Accessories
{
public class PsychoticAmulet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Psychotic Amulet");
Tooltip.SetDefault("Boosts melee and ranged damage and critical strike chance by 5%\n" +
"Grants a massive boost to these stats if you aren't moving");
}
public class PsychoticAmulet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Psychotic Amulet");
Tooltip.SetDefault("Boosts rogue and ranged damage and critical strike chance by 5%\n" +
"Grants a massive boost to these stats if you aren't moving");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 6;
item.accessory = true;
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 6;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.pAmulet = true;
player.shroomiteStealth = true;
player.meleeDamage += 0.05f;
player.meleeCrit += 5;
player.rangedDamage += 0.05f;
player.rangedCrit += 5;
}
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
CalamityCustomThrowingDamagePlayer modPlayer2 = CalamityCustomThrowingDamagePlayer.ModPlayer(player);
modPlayer.pAmulet = true;
player.shroomiteStealth = true;
modPlayer2.throwingDamage += 0.05f;
modPlayer2.throwingCrit += 5;
player.rangedDamage += 0.05f;
player.rangedCrit += 5;
}
}
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
DisplayName.SetDefault("Raider's Talisman");
Tooltip.SetDefault("Whenever you crit an enemy with a rogue weapon your rogue damage increases\n" +
"This effect can stack up to 250 times\n" +
"Max rogue damage boost is 15%");
"Max rogue damage boost is 25%");
}
public override void SetDefaults()
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class DeepDiver : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Deep Diver");
Tooltip.SetDefault("15% increased damage, defense, and movement speed when underwater\n" +
"While underwater you gain the ability to dash great distances");
}
public override void SetDefaults()
{
item.width = 24;
item.height = 28;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 2;
item.defense = 2;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.deepDiver = true;
modPlayer.dashMod = 5;
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class FabledTortoiseShell : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fabled Tortoise Shell");
Tooltip.SetDefault("50% reduced movement speed\n" +
"Enemies take damage when they hit you\n" +
"You move quickly for a short time if you take damage");
}
public override void SetDefaults()
{
item.defense = 50;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 5;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.fabledTortoise = true;
player.moveSpeed -= 0.5f;
player.thorns = 0.25f;
player.statDefense += 42;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class HideofAstrumDeus : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Hide of Astrum Deus");
Tooltip.SetDefault("Taking damage drops an immense amount of astral stars from the sky and boosts true melee damage by 200% for a time\n" +
"Boost duration is based on the amount of damage you took, the higher the damage the longer the boost\n" +
"Provides immunity to the god slayer inferno, cursed inferno, on fire, and frostburn debuffs\n" +
"Enemies take damage when they hit you and are inflicted with the god slayer inferno debuff");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.expert = true;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.aBulwark = true;
player.buffImmune[mod.BuffType("GodSlayerInferno")] = true;
modPlayer.aBulwarkRare = true;
player.buffImmune[BuffID.CursedInferno] = true;
player.buffImmune[BuffID.OnFire] = true;
player.buffImmune[BuffID.Frostburn] = true;
player.thorns += 0.75f;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1011 B

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class Regenator : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Regenator");
Tooltip.SetDefault("Reduces max HP by 50% but greatly improves life regeneration");
}
public override void SetDefaults()
{
item.width = 36;
item.height = 32;
item.value = Item.buyPrice(0, 12, 0, 0);
item.rare = 5;
item.defense = 6;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.regenator = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class SamuraiBadge : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Samurai Badge");
Tooltip.SetDefault("20% increased melee damage and speed\n" +
"Reduces max life by 25%");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 30;
item.value = Item.buyPrice(0, 21, 0, 0);
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.badgeOfBraveryRare = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class TheBee : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Bee");
Tooltip.SetDefault("Causes stars to fall and releases bees when injured\n" +
"All projectiles gain bonus damage if you are at full HP\n" +
"The amount of bonus damage is based on your weapon's damage and fire rate\n" +
"Does not work with summons or sentries");
}
public override void SetDefaults()
{
item.width = 24;
item.height = 28;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 4;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.starCloak = true;
player.bee = true;
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.theBee = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class TheEvolution : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Evolution");
Tooltip.SetDefault("You have a 50% chance to reflect projectiles when they hit you back at the enemy for 1000% their original damage\n" +
"If this effect triggers you get a health regeneration boost for a short time\n" +
"If the same enemy projectile type hits you again you will resist its damage by 15%");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.projRefRare = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Items;
namespace CalamityMod.Items.Accessories.RareVariants
{
public class TheTransformer : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Transformer");
Tooltip.SetDefault("Taking damage releases a blast of sparks\n" +
"Sparks do extra damage in Hardmode\n" +
"Immunity to Electrified and you resist all elctrical projectile and enemy damage\n" +
"Enemy bullets do half damage to you and are reflected back at the enemy for 800% their original damage");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 22;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.aSparkRare = true;
modPlayer.aSpark = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

+2 -2
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
{
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
{
player.statDefense += 5;
player.statDefense += 5;
}
}
@@ -44,5 +44,5 @@ namespace CalamityMod.Items.Accessories
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
}
+1 -2
View File
@@ -97,8 +97,7 @@ namespace CalamityMod.Items.Accessories
{
if (player.whoAmI == Main.myPlayer)
{
int projectile1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("PoisonousSeawater"), 500, 5f, player.whoAmI, 0f, 0f);
Main.projectile[projectile1].timeLeft = 10;
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("PoisonousSeawater"), 500, 5f, player.whoAmI, 0f, 0f);
}
}
if (player.immune)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 823 B

Loaded 100 of 1040 files, more files were not shown because too many files have changed in this diff. Show more