This commit is contained in:
Andrew Marheine committed 2020-02-11 00:03:00 -06:00
commit 5903448f03
536 files changed
+2085 -1007

No files matched your search

+1 -4
View File
@@ -21,10 +21,7 @@ namespace CalamityMod.Buffs.Pets
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<RotomPet>()] <= 0;
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
{
float baseDamage = 10f +
(Main.hardMode ? 10f : 0f) +
(NPC.downedMoonlord ? 30f : 0f);
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType<RotomPet>(), (int)(baseDamage * (player.allDamage + player.minionDamage - 1f)), 0f, player.whoAmI, 50f, 0f);
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType<RotomPet>(), 0, 0f, player.whoAmI, 50f, 0f);
}
}
}
+28
View File
@@ -0,0 +1,28 @@
using CalamityMod.Projectiles.Pets;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Pets
{
public class SCalPetBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Supreme Calamitas");
Description.SetDefault("Watching over you with supreme calamitous energy... How adorable");
Main.buffNoTimeDisplay[Type] = true;
Main.vanityPet[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.buffTime[buffIndex] = 18000;
player.Calamity().scalPet = true;
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<SCalPet>()] <= 0;
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
{
Projectile.NewProjectile(player.position.X + (player.width / 2), player.position.Y + (player.height / 2), 0f, 0f, ModContent.ProjectileType<SCalPet>(), 0, 0f, player.whoAmI, 50f, 0f);
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

-9
View File
@@ -1,5 +1,4 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ModLoader;
@@ -17,14 +16,6 @@ namespace CalamityMod.Buffs.Potions
longerExpertDebuff = false;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
npc.Calamity().tesla = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().tesla = true;
+32
View File
@@ -0,0 +1,32 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class TeslaFreeze : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Galvanic Corrosion");
Description.SetDefault("Your limbs have begun to corrode");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().tesla < npc.buffTime[buffIndex])
npc.Calamity().tesla = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().teslaFreeze = true;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

+36
View File
@@ -0,0 +1,36 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Summon;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon
{
public class AstrageldonBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Astral Jelly");
Description.SetDefault("The mini astrageldon slime will protect you");
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<AstrageldonSummon>()] > 0)
{
modPlayer.aSlime = true;
}
if (!modPlayer.aSlime)
{
player.DelBuff(buffIndex);
buffIndex--;
}
else
{
player.buffTime[buffIndex] = 18000;
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

+12 -6
View File
@@ -1,4 +1,3 @@
using CalamityMod;
using CalamityMod.Buffs;
using CalamityMod.Buffs.Cooldowns;
using CalamityMod.Buffs.DamageOverTime;
@@ -6,9 +5,9 @@ using CalamityMod.Buffs.Potions;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Dusts;
using CalamityMod.Items.Armor;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Accessories.Vanity;
using CalamityMod.Items.Armor;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
using CalamityMod.Items.Mounts;
@@ -16,7 +15,6 @@ using CalamityMod.Items.TreasureBags;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.NPCs;
using CalamityMod.NPCs.Calamitas;
@@ -47,7 +45,6 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.ModLoader.Config;
namespace CalamityMod.CalPlayer
{
@@ -112,6 +109,9 @@ namespace CalamityMod.CalPlayer
public int pissWaterBoost = 0;
public int gaelRageCooldown = 0;
public int packetTimer = 0;
public int navyRodAuraTimer = 0;
public int brimLoreInfernoTimer = 0;
public int tarraLifeAuraTimer = 0;
public int bloodflareHeartTimer = 180;
public int bloodflareManaTimer = 180;
public int moneyStolenByBandit = 0;
@@ -190,6 +190,7 @@ namespace CalamityMod.CalPlayer
public bool astrophage = false;
public bool babyGhostBell = false;
public bool radiator = false;
public bool scalPet = false;
// Rage
public int stressMax = 10000;
@@ -600,6 +601,7 @@ namespace CalamityMod.CalPlayer
public bool draconicSurge = false;
public bool draconicSurgeCooldown = false;
public bool tesla = false;
public bool teslaFreeze = false;
public bool baguette = false;
public bool vodka = false;
public bool redWine = false;
@@ -648,6 +650,7 @@ namespace CalamityMod.CalPlayer
public bool cEyes = false;
public bool cSlime = false;
public bool cSlime2 = false;
public bool aSlime = false;
public bool bStar = false;
public bool aStar = false;
public bool SP = false;
@@ -1004,6 +1007,7 @@ namespace CalamityMod.CalPlayer
astrophage = false;
babyGhostBell = false;
radiator = false;
scalPet = false;
onyxExcavator = false;
angryDog = false;
fab = false;
@@ -1354,6 +1358,7 @@ namespace CalamityMod.CalPlayer
draconicSurge = false;
draconicSurgeCooldown = false;
tesla = false;
teslaFreeze = false;
baguette = false;
trippy = false;
amidiasBlessing = false;
@@ -1415,6 +1420,7 @@ namespace CalamityMod.CalPlayer
cEyes = false;
cSlime = false;
cSlime2 = false;
aSlime = false;
bStar = false;
aStar = false;
SP = false;
@@ -1622,6 +1628,7 @@ namespace CalamityMod.CalPlayer
holyWrath = false;
profanedRage = false;
tesla = false;
teslaFreeze = false;
baguette = false;
draconicSurge = false;
draconicSurgeCooldown = false;
@@ -4751,8 +4758,7 @@ namespace CalamityMod.CalPlayer
{
if (heldItem.type > 0)
{
if ((heldItem.summon && !heldItem.melee && !heldItem.ranged && !heldItem.magic && !heldItem.Calamity().rogue) ||
heldItem.hammer > 0 || heldItem.pick > 0 || heldItem.axe > 0)
if (heldItem.summon && !heldItem.melee && !heldItem.ranged && !heldItem.magic && !heldItem.Calamity().rogue)
{
damageMult += 0.1;
}
+46 -107
View File
@@ -32,20 +32,47 @@ namespace CalamityMod.CalPlayer
bool honey = liquidType == 2;
Point point = player.Center.ToTileCoordinates();
bool abyssPosX = false;
bool canSulphurFish = false;
if (CalamityWorld.abyssSide)
{
if (point.X < 380)
abyssPosX = true;
canSulphurFish = true;
}
else
{
if (point.X > Main.maxTilesX - 380)
abyssPosX = true;
canSulphurFish = true;
}
if (modPlayer.ZoneAbyss || modPlayer.ZoneSulphur)
abyssPosX = true;
canSulphurFish = true;
// Quest Fish
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<EutrophicSandfish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<EutrophicSandfish>();
return;
}
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<SurfClam>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<SurfClam>();
return;
}
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<Serpentuna>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Serpentuna>();
return;
}
if (modPlayer.ZoneCalamity && questFish == ModContent.ItemType<Brimlish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Brimlish>();
return;
}
if (modPlayer.ZoneCalamity && questFish == ModContent.ItemType<Slurpfish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Slurpfish>();
return;
}
if (modPlayer.alluringBait)
{
@@ -183,7 +210,7 @@ namespace CalamityMod.CalPlayer
{
List<int> rareItemList = new List<int>();
if (abyssPosX)
if (canSulphurFish)
{
switch (Main.rand.Next(2))
{
@@ -262,7 +289,7 @@ namespace CalamityMod.CalPlayer
{
biomeCrateList.Add(ModContent.ItemType<SunkenCrate>());
}
if (abyssPosX)
if (canSulphurFish)
{
biomeCrateList.Add(ModContent.ItemType<AbyssalCrate>());
}
@@ -314,6 +341,10 @@ namespace CalamityMod.CalPlayer
if (water)
{
if (caughtType == ItemID.WoodenCrate || caughtType == ItemID.IronCrate || caughtType == ItemID.GoldenCrate || caughtType == ItemID.FrogLeg || caughtType == ItemID.BalloonPufferfish || caughtType == ItemID.ZephyrFish)
{
return;
}
if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight && Main.hardMode)
{
if (Main.rand.NextBool(15))
@@ -385,31 +416,7 @@ namespace CalamityMod.CalPlayer
if (modPlayer.ZoneAstral) // Astral Infection, fishing in water
{
int astralFish = Main.rand.Next(100);
if (caughtType == ItemID.WoodenCrate)
{
caughtType = ItemID.WoodenCrate;
}
else if (caughtType == ItemID.IronCrate)
{
caughtType = ItemID.IronCrate;
}
else if (caughtType == ItemID.GoldenCrate)
{
caughtType = ItemID.GoldenCrate;
}
else if (caughtType == ItemID.FrogLeg)
{
caughtType = ItemID.FrogLeg;
}
else if (caughtType == ItemID.BalloonPufferfish)
{
caughtType = ItemID.BalloonPufferfish;
}
else if (caughtType == ItemID.ZephyrFish)
{
caughtType = ItemID.ZephyrFish;
}
else if (astralFish >= 85) // 15%
if (astralFish >= 85) // 15%
{
caughtType = ModContent.ItemType<ProcyonidPrawn>();
}
@@ -444,37 +451,14 @@ namespace CalamityMod.CalPlayer
else // 31% w/o crate pot, 21% w/ crate pot
{
caughtType = ModContent.ItemType<TwinklingPollox>();
return;
}
}
if (modPlayer.ZoneSunkenSea) // Sunken Sea, fishing in water
{
int sunkenFish = Main.rand.Next(100);
if (caughtType == ItemID.WoodenCrate)
{
caughtType = ItemID.WoodenCrate;
}
else if (caughtType == ItemID.IronCrate)
{
caughtType = ItemID.IronCrate;
}
else if (caughtType == ItemID.GoldenCrate)
{
caughtType = ItemID.GoldenCrate;
}
else if (caughtType == ItemID.FrogLeg)
{
caughtType = ItemID.FrogLeg;
}
else if (caughtType == ItemID.BalloonPufferfish)
{
caughtType = ItemID.BalloonPufferfish;
}
else if (caughtType == ItemID.ZephyrFish)
{
caughtType = ItemID.ZephyrFish;
}
else if (sunkenFish >= 85 && Main.hardMode) // 15%
if (sunkenFish >= 85 && Main.hardMode) // 15%
{
caughtType = ModContent.ItemType<ScarredAngelfish>();
}
@@ -513,6 +497,7 @@ namespace CalamityMod.CalPlayer
else // 33% w/o crate pot, 23% w/ crate pot + 18% if prehardmode
{
caughtType = ModContent.ItemType<PrismaticGuppy>();
return;
}
}
@@ -523,14 +508,14 @@ namespace CalamityMod.CalPlayer
if (junk)
{
if (abyssPosX && power < 40)
if (canSulphurFish && power < 40)
{
caughtType = ModContent.ItemType<PlantyMush>();
}
return;
}
/*if (abyssPosX && (bait.type == ItemID.GoldWorm || bait.type == ItemID.GoldGrasshopper || bait.type == ItemID.GoldButterfly) && power > 150)
/*if (canSulphurFish && (bait.type == ItemID.GoldWorm || bait.type == ItemID.GoldGrasshopper || bait.type == ItemID.GoldButterfly) && power > 150)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
{
@@ -550,33 +535,9 @@ namespace CalamityMod.CalPlayer
return;
}*/
if (abyssPosX)
if (canSulphurFish)
{
if (caughtType == ItemID.WoodenCrate)
{
caughtType = ItemID.WoodenCrate;
}
else if (caughtType == ItemID.IronCrate)
{
caughtType = ItemID.IronCrate;
}
else if (caughtType == ItemID.GoldenCrate)
{
caughtType = ItemID.GoldenCrate;
}
else if (caughtType == ItemID.FrogLeg)
{
caughtType = ItemID.FrogLeg;
}
else if (caughtType == ItemID.BalloonPufferfish)
{
caughtType = ItemID.BalloonPufferfish;
}
else if (caughtType == ItemID.ZephyrFish)
{
caughtType = ItemID.ZephyrFish;
}
else if (power >= 40)
if (power >= 40)
{
if (Main.rand.NextBool(15) && power < 80)
{
@@ -588,7 +549,7 @@ namespace CalamityMod.CalPlayer
}
if (power >= 110)
{
if (abyssPosX && Main.rand.NextBool(25) && power < 240)
if (Main.rand.NextBool(25) && power < 240)
{
caughtType = ModContent.ItemType<AbyssalAmulet>();
}
@@ -660,28 +621,6 @@ namespace CalamityMod.CalPlayer
}
}
}
// Quest Fish
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<EutrophicSandfish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<EutrophicSandfish>();
}
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<SurfClam>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<SurfClam>();
}
if (modPlayer.ZoneSunkenSea && questFish == ModContent.ItemType<Serpentuna>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Serpentuna>();
}
if (modPlayer.ZoneCalamity && questFish == ModContent.ItemType<Brimlish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Brimlish>();
}
if (modPlayer.ZoneCalamity && questFish == ModContent.ItemType<Slurpfish>() && Main.rand.NextBool(10))
{
caughtType = ModContent.ItemType<Slurpfish>();
}
}
#endregion
+78 -66
View File
@@ -1,8 +1,5 @@
using CalamityMod;
using CalamityMod.Buffs.Alcohol;
using CalamityMod.Buffs.Cooldowns;
using CalamityMod.Buffs.Cooldowns;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.Pets;
using CalamityMod.Buffs.Potions;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
@@ -14,6 +11,7 @@ using CalamityMod.Items.Fishing.FishingRods;
using CalamityMod.NPCs;
using CalamityMod.NPCs.AcidRain;
using CalamityMod.NPCs.Astral;
using CalamityMod.NPCs.Crags;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.SupremeCalamitas;
using CalamityMod.Projectiles.Boss;
@@ -30,11 +28,10 @@ using Terraria;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
namespace CalamityMod.CalPlayer
{
public class CalamityPlayerMiscEffects
public class CalamityPlayerMiscEffects
{
#region Post Update Misc Effects
public static void CalamityPostUpdateMiscEffects(Player player, Mod mod)
@@ -1138,7 +1135,7 @@ namespace CalamityMod.CalPlayer
{
player.moveSpeed += 0.05f;
player.jumpSpeedBoost += player.autoJump ? 0f : 0.1f;
player.statDefense -= 5;
player.statDefense -= 3;
}
if (modPlayer.desertScourgeLore)
{
@@ -2543,7 +2540,10 @@ namespace CalamityMod.CalPlayer
player.statDefense -= AbyssalFlames.DefenseReduction;
if (modPlayer.gsInferno)
{
player.blackout = true;
player.statDefense -= GodSlayerInferno.DefenseReduction;
}
if (modPlayer.astralInfection)
player.statDefense -= AstralInfectionDebuff.DefenseReduction;
@@ -2609,7 +2609,7 @@ namespace CalamityMod.CalPlayer
player.velocity.X = 0f;
}
if (modPlayer.vaporfied)
if (modPlayer.vaporfied || modPlayer.teslaFreeze)
{
player.velocity.Y *= 0.98f;
player.velocity.X *= 0.98f;
@@ -2899,96 +2899,108 @@ namespace CalamityMod.CalPlayer
}
}
#region Damage Auras
// Tarragon Summon set bonus life aura
if (modPlayer.tarraSummon)
{
int lifeCounter = 0;
float num2 = 300f;
bool flag = lifeCounter % 60 == 0;
int num3 = 200;
const int FramesPerHit = 60;
if (player.whoAmI == Main.myPlayer)
// Constantly increment the timer every frame.
modPlayer.tarraLifeAuraTimer = (modPlayer.tarraLifeAuraTimer + 1) % FramesPerHit;
// If the timer rolls over, it's time to deal damage. Only run this code for the client which is wearing the armor.
if (modPlayer.tarraLifeAuraTimer == 0 && player.whoAmI == Main.myPlayer)
{
for (int l = 0; l < 200; l++)
const int BaseDamage = 200;
int damage = (int)(BaseDamage * (player.allDamage + player.minionDamage - 1f));
float range = 300f;
for (int i = 0; i < Main.maxNPCs; ++i)
{
NPC nPC = Main.npc[l];
if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= num2)
{
if (flag)
{
nPC.StrikeNPC(num3, 0f, 0, false, false, false);
if (Main.netMode != NetmodeID.SinglePlayer)
NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0);
}
}
NPC nPC = Main.npc[i];
if (!nPC.active || nPC.friendly || nPC.damage <= 0 || nPC.dontTakeDamage)
continue;
if (Vector2.Distance(player.Center, nPC.Center) <= range)
Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), damage, 0f, player.whoAmI, i);
}
}
if (lifeCounter >= 180)
lifeCounter = 0;
lifeCounter++;
}
// Navy Fishing Rod's electric aura when in-use
if (player.inventory[player.selectedItem].type == ModContent.ItemType<NavyFishingRod>() && player.ownedProjectileCounts[ModContent.ProjectileType<NavyBobber>()] != 0)
{
int auraCounter = 0;
float num2 = 200f;
bool flag = auraCounter % 120 == 0;
int num3 = 10;
const int FramesPerHit = 120;
if (player.whoAmI == Main.myPlayer)
// Constantly increment the timer every frame.
modPlayer.navyRodAuraTimer = (modPlayer.navyRodAuraTimer + 1) % FramesPerHit;
// If the timer rolls over, it's time to deal damage. Only run this code for the client which is holding the fishing rod,
if (modPlayer.navyRodAuraTimer == 0 && player.whoAmI == Main.myPlayer)
{
for (int l = 0; l < 200; l++)
const int BaseDamage = 10;
int damage = (int)(BaseDamage * player.allDamage);
float range = 200f;
for (int i = 0; i < Main.maxNPCs; ++i)
{
NPC nPC = Main.npc[l];
if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= num2)
NPC nPC = Main.npc[i];
if (!nPC.active || nPC.friendly || nPC.damage <= 0 || nPC.dontTakeDamage)
continue;
if (Vector2.Distance(player.Center, nPC.Center) <= range)
Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), damage, 0f, player.whoAmI, i);
// Occasionally spawn cute sparks so it looks like an electrical aura
if (Main.rand.NextBool(10))
{
if (flag)
{
nPC.StrikeNPC(num3, 0f, 0, false, false, false);
if (Main.netMode != NetmodeID.SinglePlayer)
NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0);
Vector2 value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51));
while (value15.X == 0f && value15.Y == 0f)
value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51));
Vector2 value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51));
while (value15.X == 0f && value15.Y == 0f)
value15 = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51));
value15.Normalize();
value15 *= (float)Main.rand.Next(30, 61) * 0.1f;
int num17 = Projectile.NewProjectile(nPC.Center.X, nPC.Center.Y, value15.X, value15.Y, ModContent.ProjectileType<EutrophicSpark>(), 5, 0f, player.whoAmI, 0f, 0f);
Main.projectile[num17].melee = false;
Main.projectile[num17].localNPCHitCooldown = -1;
}
value15.Normalize();
value15 *= (float)Main.rand.Next(30, 61) * 0.1f;
int spark = Projectile.NewProjectile(nPC.Center.X, nPC.Center.Y, value15.X, value15.Y, ModContent.ProjectileType<EutrophicSpark>(), damage / 2, 0f, player.whoAmI, 0f, 0f);
Main.projectile[spark].melee = false;
Main.projectile[spark].localNPCHitCooldown = -2;
Main.projectile[spark].penetrate = 5;
}
}
}
if (auraCounter >= 360)
auraCounter = 0;
auraCounter++;
}
// Brimstone Elemental lore inferno potion boost
if (modPlayer.brimstoneElementalLore && player.inferno)
{
int num = ModContent.BuffType<BrimstoneFlames>();
float num2 = 300f;
bool flag = player.infernoCounter % 30 == 0;
int damage = 50;
const int FramesPerHit = 30;
// Constantly increment the timer every frame.
modPlayer.brimLoreInfernoTimer = (modPlayer.brimLoreInfernoTimer + 1) % FramesPerHit;
// Only run this code for the client which is wearing the armor.
// Brimstone flames is applied every single frame, but direct damage is only dealt twice per second.
if (player.whoAmI == Main.myPlayer)
{
for (int l = 0; l < 200; l++)
const int BaseDamage = 50;
int damage = (int)(BaseDamage * player.allDamage);
float range = 300f;
for (int i = 0; i < Main.maxNPCs; ++i)
{
NPC nPC = Main.npc[l];
if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= num2)
NPC nPC = Main.npc[i];
if (!nPC.active || nPC.friendly || nPC.damage <= 0 || nPC.dontTakeDamage)
continue;
if (Vector2.Distance(player.Center, nPC.Center) <= range)
{
if (nPC.FindBuffIndex(num) == -1 && !nPC.buffImmune[num])
nPC.AddBuff(num, 120, false);
if (flag)
player.ApplyDamageToNPC(nPC, damage, 0f, 0, false);
nPC.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
if (modPlayer.brimLoreInfernoTimer == 0)
Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), damage, 0f, player.whoAmI, i);
}
}
}
}
#endregion
if (modPlayer.royalGel)
{
+14 -3
View File
@@ -1412,7 +1412,8 @@ namespace CalamityMod
ModContent.NPCType<EutrophicRay>(),
ModContent.NPCType<Clam>(),
ModContent.NPCType<SeaSerpent1>(),
ModContent.NPCType<GiantClam>()
ModContent.NPCType<GiantClam>(),
ModContent.NPCType<FearlessGoldfishWarrior>()
};
// Enemies that inflict an average of 101 to 200 damage in Expert Mode
@@ -2031,7 +2032,11 @@ namespace CalamityMod
ModContent.ItemType<Penumbra>(),
ModContent.ItemType<LatcherMine>(),
ModContent.ItemType<Supernova>(),
ModContent.ItemType<ShockGrenade>()
ModContent.ItemType<ShockGrenade>(),
ModContent.ItemType<Exorcism>(),
ModContent.ItemType<MeteorFist>(),
ModContent.ItemType<StarofDestruction>(),
ModContent.ItemType<CraniumSmasher>()
};
flaskBombProjList = new List<int>()
@@ -2049,7 +2054,13 @@ namespace CalamityMod
ModContent.ProjectileType<PenumbraBomb>(),
ModContent.ProjectileType<LatcherMineProjectile>(),
ModContent.ProjectileType<SupernovaBomb>(),
ModContent.ProjectileType<ShockGrenadeProjectile>()
ModContent.ProjectileType<ShockGrenadeProjectile>(),
ModContent.ProjectileType<ExorcismProj>(),
ModContent.ProjectileType<MeteorFistProj>(),
ModContent.ProjectileType<CraniumSmasherProj>(),
ModContent.ProjectileType<CraniumSmasherExplosive>(),
ModContent.ProjectileType<DestructionStar>(),
ModContent.ProjectileType<DestructionBolt>()
};
spikyBallList = new List<int>()
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 90, 0, 0); //30 gold reforge
item.defense = 10;
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
item.height = 26;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
item.height = 30;
item.value = Item.buyPrice(0, 21, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.endurance += 0.05f;
player.thorns = 0.25f;
player.thorns += 0.25f;
}
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.defense = 10;
item.lifeRegen = 1;
item.accessory = true;
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
item.rare = 2;
item.defense = 2;
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(1, 50, 0, 0);
item.accessory = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
item.height = 34;
item.value = Item.buyPrice(0, 90, 0, 0);
item.rare = 10;
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
item.accessory = true;
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.width = 38;
item.height = 38;
item.value = Item.buyPrice(0, 22, 0, 0);
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
item.accessory = true;
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(1, 50, 0, 0);
item.accessory = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
item.height = 38;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
item.height = 42;
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 10;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.defense = 8;
item.accessory = true;
}
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 5;
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.fabledTortoise = true;
player.moveSpeed -= 0.5f;
player.thorns = 0.25f;
player.thorns += 0.25f;
}
}
}
+1 -10
View File
@@ -26,16 +26,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.moveSpeed -= 0.1f;
player.thorns = 0.25f;
}
// This item cannot be crafted, but it can be crafted into a normal Turtle Shell.
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(this);
recipe.SetResult(ItemID.TurtleShell);
recipe.AddRecipe();
player.thorns += 0.25f;
}
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(1, 50, 0, 0);
item.accessory = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 21, 0, 0);
item.rare = 10;
item.accessory = true;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 9;
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Rainbow;
}
public override bool CanEquipAccessory(Player player, int slot)
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories
item.height = 26;
item.value = Item.buyPrice(0, 30, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Jelly-Charged Battery");
Tooltip.SetDefault("+1 max minions and 10% minion damage\n" +
Tooltip.SetDefault("+1 max minions and 7% minion damage\n" +
"Minion attacks spawn orbs of energy and inflict Electrified");
}
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories
player.Calamity().voltaicJelly = true;
player.Calamity().jellyChargedBattery = true;
player.maxMinions ++;
player.minionDamage += 0.1f;
player.minionDamage += 0.07f;
}
public override void AddRecipes()
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
item.width = 46;
item.height = 40;
item.value = Item.buyPrice(0, 18, 0, 0);
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.accessory = true;
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void ModifyTooltips(List<TooltipLine> list)
-2
View File
@@ -77,8 +77,6 @@ namespace CalamityMod.Items.Accessories
if (player.whoAmI == Main.myPlayer)
{
Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), num3, 0f, player.whoAmI, l);
p.minion = true;
p.Calamity().forceMinion = true;
}
}
}
+15
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -31,5 +32,19 @@ namespace CalamityMod.Items.Accessories
player.Calamity().throwingVelocity += 0.15f;
player.Calamity().plaguedFuelPack = true;
}
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
if (CalamityMod.PlaguePackHotKey.GetAssignedKeys().Count > 0)
{
foreach (TooltipLine line in tooltips)
{
if (line.mod == "Terraria" && line.Name == "Tooltip2")
{
line.text = "Press " + CalamityMod.PlaguePackHotKey.GetAssignedKeys()[0] + " to consume 25% of your maximum stealth to perform a swift upwards/diagonal dash which leaves a trail of plagued clouds";
}
}
}
}
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(1, 40, 0, 0);
item.rare = 10;
item.accessory = true;
item.Calamity().postMoonLordRarity = 21;
item.Calamity().customRarity = CalamityRarity.Dedicated;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 90, 0, 0);
item.defense = 12;
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 60, 0, 0);
item.rare = 10;
item.accessory = true;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
item.rare = 5;
item.defense = 6;
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
item.height = 30;
item.value = Item.buyPrice(0, 21, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
item.width = 30;
item.height = 38;
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
item.accessory = true;
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
item.height = 20;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -55,8 +55,8 @@ namespace CalamityMod.Items.Accessories
line2.text = "Adrenaline Charge Time: " + adrenalineChargeTime + " seconds | Rage Damage Boost: " + rageDamage + "%\n\n" +
"Melee Damage: " + modPlayer.damageStats[0] + "% | Melee Crit Chance: " + modPlayer.critStats[0] + "%\n" +
"Melee Speed Boost: " + meleeSpeed + "%\n\n" +
"Ranged Damage: " + modPlayer.damageStats[1] + "% | Ranged Crit Chance: " + modPlayer.critStats[1] + "%\n\n" +
"Ammo Consumption Chance: " + modPlayer.ammoReductionRanged + "%\n" +
"Ranged Damage: " + modPlayer.damageStats[1] + "% | Ranged Crit Chance: " + modPlayer.critStats[1] + "%\n" +
"Ammo Consumption Chance: " + modPlayer.ammoReductionRanged + "%\n\n" +
"Magic Damage: " + modPlayer.damageStats[2] + "% | Magic Crit Chance: " + modPlayer.critStats[2] + "%\n" +
"Mana Usage: " + manaCost + "% | Mana Regen: " + manaRegen + "\n\n" +
"Minion Damage: " + modPlayer.damageStats[3] + "% | Minion Slots: " + minionSlots + "\n\n" +
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
-2
View File
@@ -144,8 +144,6 @@ namespace CalamityMod.Items.Accessories
if (player.whoAmI == Main.myPlayer)
{
Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), num3, 0f, player.whoAmI, l);
p.minion = true;
p.Calamity().forceMinion = true;
}
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 4;
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
DisplayName.SetDefault("The Camper");
Tooltip.SetDefault("You deal no damage unless stationary\n" +
"Standing still grants buff(s) dependant on what weapon you're holding\n" +
"Standing still grants buff(s) dependent on what weapon you're holding\n" +
"Standing still provides a damaging aura around you\n" +
"While moving, you regenerate health as if standing still\n" +
"In rest may we find victory.");
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
item.height = 20;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Rainbow;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
item.Calamity().postMoonLordRarity = 22;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
-2
View File
@@ -52,8 +52,6 @@ namespace CalamityMod.Items.Accessories
if (player.whoAmI == Main.myPlayer)
{
Projectile p = Projectile.NewProjectileDirect(nPC.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), num3, 0f, player.whoAmI, l);
p.minion = true;
p.Calamity().forceMinion = true;
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
item.height = 36;
item.value = Item.buyPrice(25, 0, 0, 0);
item.rare = 10;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.accessory = true;
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories.Wings
item.height = 32;
item.value = Item.buyPrice(1, 20, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings
item.width = 22;
item.height = 20;
item.value = Item.buyPrice(1, 0, 0, 0);
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
item.accessory = true;
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories.Wings
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
item.height = 32;
item.value = Item.buyPrice(0, 45, 0, 0);
item.rare = 10;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.accessory = true;
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories.Wings
item.height = 32;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
item.height = 38;
item.value = Item.buyPrice(0, 30, 0, 0);
item.accessory = true;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Ammo
item.consumable = true;
item.knockBack = 10f;
item.value = Item.buyPrice(0, 1, 0, 0);
item.Calamity().postMoonLordRarity = 21;
item.Calamity().customRarity = CalamityRarity.Dedicated;
item.shoot = ModContent.ProjectileType<IceBarrageMain>();
item.shootSpeed = 0f;
item.ammo = item.type; // CONSIDER -- Would item.type work here instead of a self reference?
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Ammo
item.shoot = ModContent.ProjectileType<BloodfireArrowProj>();
item.shootSpeed = 10f;
item.ammo = 40;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void AddRecipes()
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Ammo
item.shoot = ModContent.ProjectileType<ElysianArrowProj>();
item.shootSpeed = 10f;
item.ammo = 40;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override void AddRecipes()
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Ammo
item.knockBack = 2f;
item.value = 2000;
item.rare = 10;
item.Calamity().postMoonLordRarity = 12;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.shoot = ModContent.ProjectileType<HolyFireBulletProj>();
item.shootSpeed = 12f;
item.ammo = 97;
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Ammo
item.shoot = ModContent.ProjectileType<VanquisherArrowMain>();
item.shootSpeed = 10f;
item.ammo = 40;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 44, 0, 0);
item.defense = 48;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 8, 0, 0);
item.defense = 44;
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 80, 0, 0);
item.defense = 54; //132
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 80, 0, 0);
item.defense = 40; //132
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 80, 0, 0);
item.defense = 34; //132
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 80, 0, 0);
item.defense = 12; //132
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(1, 80, 0, 0);
item.defense = 24; //132
item.Calamity().postMoonLordRarity = 20;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 48, 0, 0);
item.defense = 35;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 36, 0, 0);
item.defense = 29;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 28; //85
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 16; //85
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 34; //85
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 22; //85
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 49; //85
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+2 -2
View File
@@ -24,14 +24,14 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(4, 0, 0, 0);
item.defense = 50;
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override void UpdateEquip(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.shadeRegen = true;
player.thorns = 100f;
player.thorns += 100f;
player.statLifeMax2 += 200;
player.statManaMax2 += 200;
player.allDamage += 0.15f;
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(3, 0, 0, 0);
item.defense = 50; //15
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(5, 0, 0, 0);
item.defense = 50; //15
item.Calamity().postMoonLordRarity = 16;
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(gold: 75);
item.defense = 38; // 132 total
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(gold: 45);
item.defense = 44;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(gold: 60);
item.defense = 50;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 60, 0, 0);
item.defense = 41;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 48; //96
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 35; //96
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 12; //96
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 45, 0, 0);
item.defense = 35;
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 29; //96
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 18;
item.value = Item.buyPrice(0, 75, 0, 0);
item.defense = 21; //96
item.Calamity().postMoonLordRarity = 14;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -25,7 +25,7 @@ No positive life regen");
item.value = Item.sellPrice(0, 38, 0, 0);
item.rare = 10;
item.defense = 28;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor
item.value = Item.sellPrice(0, 35, 0, 0);
item.rare = 10;
item.defense = 19;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor
item.value = Item.sellPrice(0, 35, 25, 0);
item.rare = 10;
item.defense = 22;
item.Calamity().postMoonLordRarity = 13;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 24;
item.value = Item.buyPrice(0, 72, 0, 0);
item.defense = 44;
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateEquip(Player player)
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor
item.height = 20;
item.value = Item.buyPrice(0, 90, 0, 0);
item.defense = 52; //110
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
item.height = 24;
item.value = Item.buyPrice(0, 90, 0, 0);
item.defense = 13; //110
item.Calamity().postMoonLordRarity = 15;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
Loaded 100 of 536 files, more files were not shown because too many files have changed in this diff. Show more