Merge pull request #98 from UncleDanny/fixes-and-balancing

Enormous changelist, impossible to summarize
This commit is contained in:
Cameron Ewell authored and GitHub committed 2020-06-15 21:35:43 -04:00
commit 402df2ec99
581 files changed
+2562 -2656

No files matched your search

+12
View File
@@ -83,6 +83,18 @@ namespace CalamityMod.Buffs
tip = "22.5% increased damage";
break;
case BuffID.BeetleEndurance1:
tip = "Damage taken reduced by 10%";
break;
case BuffID.BeetleEndurance2:
tip = "Damage taken reduced by 20%";
break;
case BuffID.BeetleEndurance3:
tip = "Damage taken reduced by 30%";
break;
case BuffID.WeaponImbueVenom:
case BuffID.WeaponImbueCursedFlames:
case BuffID.WeaponImbueFire:
+164 -156
View File
@@ -29,6 +29,7 @@ using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.PlaguebringerGoliath;
using CalamityMod.NPCs.Polterghast;
using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.Ravager;
using CalamityMod.NPCs.StormWeaver;
using CalamityMod.NPCs.SulphurousSea;
using CalamityMod.NPCs.SunkenSea;
@@ -638,6 +639,8 @@ namespace CalamityMod.CalPlayer
public int plagueReaperCooldown = 0;
public bool plaguebringerPatronSet = false;
public bool plaguebringerCarapace = false;
public bool plaguebringerPistons = false;
public int pistonsCounter = 0;
public float ataxiaDmg;
public bool ataxiaMage = false;
public bool ataxiaGeyser = false;
@@ -1604,6 +1607,7 @@ namespace CalamityMod.CalPlayer
plagueReaper = false;
plaguebringerPatronSet = false;
plaguebringerCarapace = false;
plaguebringerPistons = false;
fathomSwarmer = false;
fathomSwarmerVisage = false;
fathomSwarmerBreastplate = false;
@@ -2192,6 +2196,8 @@ namespace CalamityMod.CalPlayer
plagueReaperCooldown = 0;
plaguebringerPatronSet = false;
plaguebringerCarapace = false;
plaguebringerPistons = false;
pistonsCounter = 0;
ataxiaMage = false;
ataxiaBolt = false;
ataxiaGeyser = false;
@@ -2664,7 +2670,7 @@ namespace CalamityMod.CalPlayer
Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104);
for (int num502 = 0; num502 < 36; num502++)
{
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f);
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f);
Main.dust[dust].velocity *= 3f;
Main.dust[dust].scale *= 1.15f;
}
@@ -2674,7 +2680,7 @@ namespace CalamityMod.CalPlayer
Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f;
vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * MathHelper.TwoPi / (float)num226), default) + player.Center;
Vector2 vector7 = vector6 - player.Center;
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, (int)CalamityDusts.Brimstone, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
Main.dust[num228].noGravity = true;
Main.dust[num228].noLight = true;
Main.dust[num228].velocity = vector7;
@@ -2698,7 +2704,7 @@ namespace CalamityMod.CalPlayer
Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104);
for (int num502 = 0; num502 < 64; num502++)
{
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 60, 0f, 0f, 0, default, 1f);
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Phantoplasm, 0f, 0f, 0, default, 1f);
Main.dust[dust].velocity *= 3f;
Main.dust[dust].scale *= 1.15f;
}
@@ -2708,7 +2714,7 @@ namespace CalamityMod.CalPlayer
Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f;
vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + player.Center;
Vector2 vector7 = vector6 - player.Center;
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 60, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, (int)CalamityDusts.Phantoplasm, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
Main.dust[num228].noGravity = true;
Main.dust[num228].noLight = true;
Main.dust[num228].velocity = vector7;
@@ -2753,7 +2759,7 @@ namespace CalamityMod.CalPlayer
Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104);
for (int num502 = 0; num502 < 36; num502++)
{
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f);
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f);
Main.dust[dust].velocity *= 3f;
Main.dust[dust].scale *= 1.15f;
}
@@ -2763,7 +2769,7 @@ namespace CalamityMod.CalPlayer
Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f;
vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * MathHelper.TwoPi / (float)num226), default) + player.Center;
Vector2 vector7 = vector6 - player.Center;
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, (int)CalamityDusts.Brimstone, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
Main.dust[num228].noGravity = true;
Main.dust[num228].noLight = true;
Main.dust[num228].velocity = vector7;
@@ -2901,7 +2907,7 @@ namespace CalamityMod.CalPlayer
Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104);
for (int num502 = 0; num502 < 64; num502++)
{
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default, 1f);
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f);
Main.dust[dust].velocity *= 3f;
Main.dust[dust].scale *= 1.15f;
}
@@ -2911,7 +2917,7 @@ namespace CalamityMod.CalPlayer
Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f;
vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default) + player.Center;
Vector2 vector7 = vector6 - player.Center;
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
int num228 = Dust.NewDust(vector6 + vector7, 0, 0, (int)CalamityDusts.Brimstone, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default, 1.4f);
Main.dust[num228].noGravity = true;
Main.dust[num228].noLight = true;
Main.dust[num228].velocity = vector7;
@@ -4367,37 +4373,30 @@ namespace CalamityMod.CalPlayer
}
if (item.Calamity().rogue)
{
if (player.meleeEnchant > 0)
{
if (player.meleeEnchant == 1)
{
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
}
if (player.meleeEnchant == 2)
{
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 3)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 5)
{
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
}
if (player.meleeEnchant == 6)
{
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
}
if (player.meleeEnchant == 8)
{
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
}
/*if (player.meleeEnchant == 4)
{
target.AddBuff(BuffID.Midas, 120, false);
}*/
}
switch (player.meleeEnchant)
{
case 1:
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
break;
case 2:
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
break;
case 3:
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
break;
case 5:
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
break;
case 6:
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
break;
case 8:
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
break;
/*case 4:
target.AddBuff(BuffID.Midas, 120, false);
break;*/
}
}
if (holyWrath)
{
@@ -4497,7 +4496,7 @@ namespace CalamityMod.CalPlayer
{
CalamityUtils.Inflict246DebuffsNPC(target, ModContent.BuffType<DemonFlames>());
}
if ((plaguebringerCarapace || uberBees) && (proj.type == 566 || proj.type == 181 || proj.type == 189))
if ((plaguebringerCarapace || uberBees) && CalamityMod.friendlyBeeList.Contains(proj.type))
{
target.AddBuff(ModContent.BuffType<Plague>(), 360);
}
@@ -4566,37 +4565,30 @@ namespace CalamityMod.CalPlayer
}
if (proj.Calamity().rogue)
{
if (player.meleeEnchant > 0)
{
if (player.meleeEnchant == 1)
{
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
}
if (player.meleeEnchant == 2)
{
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 3)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 5)
{
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
}
if (player.meleeEnchant == 6)
{
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
}
if (player.meleeEnchant == 8)
{
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
}
if (player.meleeEnchant == 4)
{
target.AddBuff(BuffID.Midas, 120, false);
}
}
switch (player.meleeEnchant)
{
case 1:
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
break;
case 2:
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
break;
case 3:
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
break;
case 5:
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
break;
case 6:
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
break;
case 8:
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
break;
/*case 4:
target.AddBuff(BuffID.Midas, 120, false);
break;*/
}
if (etherealExtorter)
{
if (ZoneSunkenSea)
@@ -4721,37 +4713,30 @@ namespace CalamityMod.CalPlayer
}
if (item.Calamity().rogue)
{
if (player.meleeEnchant > 0)
{
if (player.meleeEnchant == 1)
{
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
}
if (player.meleeEnchant == 2)
{
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 3)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 5)
{
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
}
if (player.meleeEnchant == 6)
{
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
}
if (player.meleeEnchant == 8)
{
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
}
/*if (player.meleeEnchant == 4)
{
target.AddBuff(BuffID.Midas, 120, false);
}*/
}
switch (player.meleeEnchant)
{
case 1:
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
break;
case 2:
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
break;
case 3:
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
break;
case 5:
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
break;
case 6:
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
break;
case 8:
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
break;
/*case 4:
target.AddBuff(BuffID.Midas, 120, false);
break;*/
}
}
if (holyWrath)
{
@@ -4846,7 +4831,7 @@ namespace CalamityMod.CalPlayer
{
CalamityUtils.Inflict246DebuffsPvp(target, ModContent.BuffType<CrushDepth>());
}
if ((plaguebringerCarapace || uberBees) && (proj.type == 566 || proj.type == 181 || proj.type == 189))
if ((plaguebringerCarapace || uberBees) && CalamityMod.friendlyBeeList.Contains(proj.type))
{
target.AddBuff(ModContent.BuffType<Plague>(), 360);
}
@@ -4915,37 +4900,30 @@ namespace CalamityMod.CalPlayer
}
if (proj.Calamity().rogue)
{
if (player.meleeEnchant > 0)
{
if (player.meleeEnchant == 1)
{
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
}
if (player.meleeEnchant == 2)
{
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 3)
{
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
}
if (player.meleeEnchant == 5)
{
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
}
if (player.meleeEnchant == 6)
{
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
}
if (player.meleeEnchant == 8)
{
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
}
/*if (player.meleeEnchant == 4)
{
switch (player.meleeEnchant)
{
case 1:
target.AddBuff(BuffID.Venom, 60 * Main.rand.Next(5, 10), false);
break;
case 2:
target.AddBuff(BuffID.CursedInferno, 60 * Main.rand.Next(3, 7), false);
break;
case 3:
target.AddBuff(BuffID.OnFire, 60 * Main.rand.Next(3, 7), false);
break;
case 5:
target.AddBuff(BuffID.Ichor, 60 * Main.rand.Next(10, 20), false);
break;
case 6:
target.AddBuff(BuffID.Confused, 60 * Main.rand.Next(1, 4), false);
break;
case 8:
target.AddBuff(BuffID.Poisoned, 60 * Main.rand.Next(5, 10), false);
break;
/*case 4:
target.AddBuff(BuffID.Midas, 120, false);
}*/
}
break;*/
}
if (etherealExtorter)
{
if (ZoneSunkenSea)
@@ -4957,10 +4935,10 @@ namespace CalamityMod.CalPlayer
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 120, false);
target.AddBuff(ModContent.BuffType<Irradiated>(), 300, false);
}
if (Main.moonPhase == 6) //first quarter
/*if (Main.moonPhase == 6) //first quarter
{
target.AddBuff(BuffID.Midas, 120, false);
}
}*/
if (ZoneCalamity && CalamityMod.fireWeaponList.Contains(player.ActiveItem().type))
{
target.AddBuff(ModContent.BuffType<AbyssalFlames>(), 240, false);
@@ -5203,7 +5181,7 @@ namespace CalamityMod.CalPlayer
{
if (proj.Calamity().rogue)
{
crit = Main.rand.Next(1, 101) < throwingCrit;
crit = Main.rand.Next(1, 101) < (throwingCrit + player.thrownCrit);
}
if (proj.npcProj || proj.trap)
@@ -5408,7 +5386,7 @@ namespace CalamityMod.CalPlayer
int defenseAdd = (int)(target.defense * 0.05 * (proj.damage / 50D) * acidRoundMultiplier); //100 defense * 0.05 = 5
damage += defenseAdd;
}
if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == ModContent.ProjectileType<PlaguenadeBee>() || proj.type == ModContent.ProjectileType<PlaguePrincess>() || proj.type == ModContent.ProjectileType<BabyPlaguebringer>() || proj.type == ModContent.ProjectileType<PlagueBeeSmall>()))
if (uberBees && CalamityMod.friendlyBeeList.Contains(proj.type))
{
damage += Main.rand.Next(20, 31);
}
@@ -5424,6 +5402,7 @@ namespace CalamityMod.CalPlayer
if (miniPBG.type == ModContent.ProjectileType<PlaguebringerSummon>() && Vector2.Distance(proj.Center, miniPBG.Center) <= PlaguebringerSummon.auraRange && miniPBG.owner == proj.owner)
{
damage += Main.rand.Next(10, 21);
break;
}
}
}
@@ -6076,10 +6055,11 @@ namespace CalamityMod.CalPlayer
if (aSparkRare)
{
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType<LightningMark>() ||
proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet)
if (proj.type == ProjectileID.MartianTurretBolt || proj.type == ProjectileID.GigaZapperSpear || proj.type == ProjectileID.CultistBossLightningOrbArc || proj.type == ModContent.ProjectileType<LightningMark>() || proj.type == ProjectileID.VortexLightning ||
proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
projectileDamageReduction += 0.5;
}
if (beeResist)
{
@@ -6175,7 +6155,7 @@ namespace CalamityMod.CalPlayer
if (bannerNPCType == ModContent.NPCType<Cnidrion>())
reduceDamage = true;
}
else if (proj.type == ModContent.ProjectileType<Projectiles.Enemy.InkBomb>() || proj.type == ModContent.ProjectileType<InkPoisonCloud>() || proj.type == ModContent.ProjectileType<InkPoisonCloud2>() || proj.type == ModContent.ProjectileType<InkPoisonCloud3>())
else if (proj.type == ModContent.ProjectileType<InkBombHostile>() || proj.type == ModContent.ProjectileType<InkPoisonCloud>() || proj.type == ModContent.ProjectileType<InkPoisonCloud2>() || proj.type == ModContent.ProjectileType<InkPoisonCloud3>())
{
if (bannerNPCType == ModContent.NPCType<ColossalSquid>())
reduceDamage = true;
@@ -6258,17 +6238,17 @@ namespace CalamityMod.CalPlayer
else if (proj.type == ProjectileID.EyeBeam)
{
if (bannerNPCType == ModContent.NPCType<Laserfish>())
reduceDamage = !NPC.AnyNPCs(NPCID.Golem);
reduceDamage = !NPC.AnyNPCs(NPCID.Golem) && !NPC.AnyNPCs(ModContent.NPCType<RavagerBody>());
}
else if (proj.type == ProjectileID.CultistBossIceMist || proj.type == ProjectileID.CultistBossLightningOrbArc)
{
if (bannerNPCType == ModContent.NPCType<EidolonWyrmHead>() || bannerNPCType == ModContent.NPCType<Eidolist>())
reduceDamage = !NPC.AnyNPCs(ModContent.NPCType<StormWeaverHead>()) && !NPC.AnyNPCs(ModContent.NPCType<StormWeaverHeadNaked>()) && !NPC.AnyNPCs(NPCID.CultistBoss);
reduceDamage = !NPC.AnyNPCs(ModContent.NPCType<StormWeaverHead>()) && !NPC.AnyNPCs(ModContent.NPCType<StormWeaverHeadNaked>()) && !NPC.AnyNPCs(NPCID.CultistBoss) && proj.Calamity().lineColor != 1;
}
else if (proj.type == ProjectileID.SaucerScrap)
{
if (bannerNPCType == ModContent.NPCType<ArmoredDiggerHead>())
reduceDamage = Main.invasionType != InvasionID.MartianMadness;
reduceDamage = Main.invasionType != InvasionID.MartianMadness && (!NPC.AnyNPCs(NPCID.TheDestroyer) || !CalamityWorld.revenge);
}
else
{
@@ -6340,7 +6320,7 @@ namespace CalamityMod.CalPlayer
case ProjectileID.CursedFlameHostile:
if (bannerNPCType == NPCID.Clinger)
{
reduceDamage = !NPC.AnyNPCs(NPCID.Spazmatism);
reduceDamage = !NPC.AnyNPCs(NPCID.Spazmatism) && (!NPC.AnyNPCs(NPCID.EaterofWorldsHead) || !CalamityWorld.revenge);
}
break;
@@ -6355,14 +6335,14 @@ namespace CalamityMod.CalPlayer
case ProjectileID.InfernoHostileBolt:
if (bannerNPCType == NPCID.DiabolistRed || bannerNPCType == NPCID.DiabolistWhite)
{
reduceDamage = true;
reduceDamage = !NPC.AnyNPCs(NPCID.Golem) || !CalamityWorld.revenge;
}
break;
case ProjectileID.Shadowflames:
if (bannerNPCType == NPCID.GiantCursedSkull)
{
reduceDamage = true;
reduceDamage = !NPC.AnyNPCs(NPCID.SkeletronHead) || !CalamityWorld.revenge;
}
break;
@@ -6422,8 +6402,29 @@ namespace CalamityMod.CalPlayer
}
break;
case ProjectileID.WoodenArrowHostile:
if (bannerNPCType == NPCID.GoblinArcher || bannerNPCType == NPCID.CultistArcherBlue || bannerNPCType == NPCID.CultistArcherWhite)
{
reduceDamage = true;
}
break;
case ProjectileID.FlamingArrow:
if (bannerNPCType == NPCID.SkeletonArcher || bannerNPCType == NPCID.PirateCrossbower || bannerNPCType == NPCID.GoblinArcher || bannerNPCType == NPCID.ElfArcher)
if (bannerNPCType == NPCID.SkeletonArcher || bannerNPCType == NPCID.PirateCrossbower || bannerNPCType == NPCID.ElfArcher)
{
reduceDamage = true;
}
break;
case ProjectileID.SalamanderSpit:
if (bannerNPCType >= NPCID.Salamander && bannerNPCType <= NPCID.Salamander9)
{
reduceDamage = true;
}
break;
case ProjectileID.SkeletonBone:
if (bannerNPCType == NPCID.Skeleton)
{
reduceDamage = true;
}
@@ -6457,6 +6458,13 @@ namespace CalamityMod.CalPlayer
}
break;
case ProjectileID.FrostShard:
if (bannerNPCType == NPCID.AngryNimbus)
{
reduceDamage = !NPC.AnyNPCs(NPCID.IceQueen) && CalamityWorld.death;
}
break;
case ProjectileID.FrostBeam:
if (bannerNPCType == NPCID.IceGolem)
{
@@ -6496,7 +6504,7 @@ namespace CalamityMod.CalPlayer
case ProjectileID.EyeLaser:
if (bannerNPCType == NPCID.Eyezor)
{
reduceDamage = !NPC.AnyNPCs(NPCID.Retinazer);
reduceDamage = !NPC.AnyNPCs(NPCID.Retinazer) && !NPC.AnyNPCs(NPCID.WallofFleshEye);
}
break;
@@ -6542,6 +6550,13 @@ namespace CalamityMod.CalPlayer
}
break;
case ProjectileID.Twinkle:
if (bannerNPCType == NPCID.StardustSpiderBig)
{
reduceDamage = true;
}
break;
case ProjectileID.VortexAcid:
if (bannerNPCType == NPCID.VortexHornetQueen)
{
@@ -6584,13 +6599,6 @@ namespace CalamityMod.CalPlayer
}
break;
case ProjectileID.ScutlixLaser:
if (bannerNPCType == NPCID.Scutlix)
{
reduceDamage = true;
}
break;
case ProjectileID.MartianTurretBolt:
if ((bannerNPCType == NPCID.MartianTurret && Main.invasionType == InvasionID.MartianMadness) || (bannerNPCType == ModContent.NPCType<ShockstormShuttle>() && Main.invasionType != InvasionID.MartianMadness))
{
@@ -6725,7 +6733,7 @@ namespace CalamityMod.CalPlayer
}
if (aSparkRare && proj.active && !proj.friendly && proj.hostile && damage > 0)
{
if (proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet)
if (proj.type == ProjectileID.BulletSnowman || proj.type == ProjectileID.BulletDeadeye || proj.type == ProjectileID.SniperBullet || proj.type == ProjectileID.VortexLaser)
{
proj.hostile = false;
proj.friendly = true;
+59 -22
View File
@@ -605,7 +605,7 @@ namespace CalamityMod.CalPlayer
// Ice shards, lightning and sharknadoes
bool nearPillar = player.PillarZone();
if (player.ZoneOverworldHeight && !CalamityPlayer.areThereAnyDamnBosses && Main.invasionType == 0 && NPC.MoonLordCountdown == 0 && !player.InSpace() && !DD2Event.Ongoing && !nearPillar)
if (player.ZoneOverworldHeight && !CalamityPlayer.areThereAnyDamnBosses && Main.invasionType == InvasionID.None && NPC.MoonLordCountdown == 0 && !player.InSpace() && !DD2Event.Ongoing && !nearPillar)
{
Vector2 sharknadoSpawnPoint = new Vector2(player.Center.X - (float)Main.rand.Next(300, 701), player.Center.Y - (float)Main.rand.Next(700, 801));
if (point.X > Main.maxTilesX / 2)
@@ -1093,7 +1093,7 @@ namespace CalamityMod.CalPlayer
for (int j = 0; j < 2; j++)
{
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 5, 0f, 0f, 100, default, 2f);
int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, DustID.Blood, 0f, 0f, 100, default, 2f);
Dust dust = Main.dust[num];
dust.position.X += (float)Main.rand.Next(-20, 21);
dust.position.Y += (float)Main.rand.Next(-20, 21);
@@ -1137,10 +1137,10 @@ namespace CalamityMod.CalPlayer
{
player.moveSpeed += 0.12f;
player.jumpSpeedBoost += 1.2f;
player.thorns = 0.5f;
player.thorns += 0.5f;
player.endurance += 0.05f;
if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0)
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
player.manaRegenBonus += 2;
}
@@ -1168,6 +1168,7 @@ namespace CalamityMod.CalPlayer
{
player.buffTime[l] *= 2;
modPlayer.doubledHorror = true;
break;
}
}
}
@@ -1186,7 +1187,7 @@ namespace CalamityMod.CalPlayer
if (modPlayer.draedonsHeart)
{
player.allDamage += 0.05f;
if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0)
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
player.statDefense += 25;
}
@@ -1542,7 +1543,7 @@ namespace CalamityMod.CalPlayer
}
if (modPlayer.golemLore)
{
if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0)
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
player.statDefense += 10;
}
if (modPlayer.dukeFishronLore)
@@ -2112,7 +2113,7 @@ namespace CalamityMod.CalPlayer
modPlayer.chiBuffTimer = 0;
}
if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active)
if (Math.Abs(player.velocity.X) < 0.1f && Math.Abs(player.velocity.Y) < 0.1f && !player.mount.Active)
{
if (modPlayer.chiBuffTimer < 120)
modPlayer.chiBuffTimer++;
@@ -2163,12 +2164,12 @@ namespace CalamityMod.CalPlayer
if (player.itemAnimation > 0)
modPlayer.modStealthTimer = 5;
if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active)
if (Math.Abs(player.velocity.X) < 0.1f && Math.Abs(player.velocity.Y) < 0.1f && !player.mount.Active)
{
if (modPlayer.modStealthTimer == 0 && modPlayer.modStealth > 0f)
{
modPlayer.modStealth -= 0.015f;
if ((double)modPlayer.modStealth <= 0.0)
if (modPlayer.modStealth <= 0f)
{
modPlayer.modStealth = 0f;
if (Main.netMode == NetmodeID.MultiplayerClient)
@@ -2202,7 +2203,7 @@ namespace CalamityMod.CalPlayer
if (player.itemAnimation > 0)
modPlayer.modStealthTimer = 5;
if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active)
if (Math.Abs(player.velocity.X) < 0.1f && Math.Abs(player.velocity.Y) < 0.1f && !player.mount.Active)
{
if (modPlayer.modStealthTimer == 0 && modPlayer.modStealth > 0f)
{
@@ -2293,7 +2294,7 @@ namespace CalamityMod.CalPlayer
if (Main.rand.NextBool(2))
{
Vector2 vector = Vector2.UnitY.RotatedByRandom(6.2831854820251465);
Dust dust = Main.dust[Dust.NewDust(player.Center - vector * 30f, 0, 0, 244, 0f, 0f, 0, default, 1f)];
Dust dust = Main.dust[Dust.NewDust(player.Center - vector * 30f, 0, 0, (int)CalamityDusts.ProfanedFire, 0f, 0f, 0, default, 1f)];
dust.noGravity = true;
dust.position = player.Center - vector * (float)Main.rand.Next(5, 11);
dust.velocity = vector.RotatedBy(1.5707963705062866, default) * 4f;
@@ -3074,17 +3075,16 @@ namespace CalamityMod.CalPlayer
int myPlayer = Main.myPlayer;
if (Main.player[myPlayer].team == player.team && player.team != 0)
{
float arg = player.position.X - Main.player[myPlayer].position.X;
float num3 = player.position.Y - Main.player[myPlayer].position.Y;
Vector2 otherPlayerPos = player.position - Main.player[myPlayer].position;
if ((float)Math.Sqrt(arg * arg + num3 * num3) < 800f)
Main.player[myPlayer].AddBuff(43, 20, true);
if (otherPlayerPos.Length() < 800f)
Main.player[myPlayer].AddBuff(BuffID.PaladinsShield, 20, true);
}
}
}
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
player.AddBuff(62, 5, true);
player.AddBuff(BuffID.IceBarrier, 5, true);
if (player.statLife <= (int)(player.statLifeMax2 * 0.15))
player.endurance += 0.05f;
}
@@ -3099,17 +3099,16 @@ namespace CalamityMod.CalPlayer
int myPlayer = Main.myPlayer;
if (Main.player[myPlayer].team == player.team && player.team != 0)
{
float arg = player.position.X - Main.player[myPlayer].position.X;
float num3 = player.position.Y - Main.player[myPlayer].position.Y;
Vector2 otherPlayerPos = player.position - Main.player[myPlayer].position;
if ((float)Math.Sqrt(arg * arg + num3 * num3) < 800f)
Main.player[myPlayer].AddBuff(43, 20, true);
if (otherPlayerPos.Length() < 800f)
Main.player[myPlayer].AddBuff(BuffID.PaladinsShield, 20, true);
}
}
}
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
player.AddBuff(62, 5, true);
player.AddBuff(BuffID.IceBarrier, 5, true);
if (player.statLife <= (int)(player.statLifeMax2 * 0.15))
player.endurance += 0.05f;
}
@@ -3475,7 +3474,7 @@ namespace CalamityMod.CalPlayer
bool special = player.name == "Amber" || player.name == "Nincity" || player.name == "IbanPlay" || player.name == "Chen"; //People who either helped create the item or test it.
for (int i = 0; i < 3; i++)
{
int num469 = Dust.NewDust(player.position, player.width, player.height, special ? 231 : 244, 0f, 0f, 100, special ? Color.DarkRed : default, 1f);
int num469 = Dust.NewDust(player.position, player.width, player.height, special ? 231 : (int)CalamityDusts.ProfanedFire, 0f, 0f, 100, special ? Color.DarkRed : default, 1f);
Main.dust[num469].scale = special ? 1.169f : 2f;
Main.dust[num469].noGravity = true;
Main.dust[num469].velocity *= special ? 10f : 6.9f;
@@ -3484,6 +3483,34 @@ namespace CalamityMod.CalPlayer
}
}
if (modPlayer.plaguebringerPistons)
{
//Spawn bees while sprinting or dashing
modPlayer.pistonsCounter++;
if (modPlayer.pistonsCounter % 12 == 0)
{
if (player.velocity.Length() >= 5f && player.whoAmI == Main.myPlayer)
{
int beeCount = 1;
if (Main.rand.NextBool(3))
++beeCount;
if (Main.rand.NextBool(3))
++beeCount;
if (player.strongBees && Main.rand.NextBool(3))
++beeCount;
int damage = (int)(30 * player.MinionDamage());
for (int index = 0; index < beeCount; ++index)
{
int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, Main.rand.NextFloat(-35f, 35f) * 0.02f, Main.rand.NextFloat(-35f, 35f) * 0.02f, (Main.rand.NextBool(4) ? ModContent.ProjectileType<PlaguenadeBee>() : player.beeType()), damage, player.beeKB(0f), player.whoAmI, 0f, 0f);
Main.projectile[bee].Calamity().forceMinion = true;
Main.projectile[bee].usesLocalNPCImmunity = true;
Main.projectile[bee].localNPCHitCooldown = 10;
Main.projectile[bee].penetrate = 2;
}
}
}
}
int brimmy = ModContent.ProjectileType<BrimstoneElementalMinion>();
int siren = ModContent.ProjectileType<WaterElementalMinion>();
int healer = ModContent.ProjectileType<SandElementalHealer>();
@@ -3542,6 +3569,16 @@ namespace CalamityMod.CalPlayer
{
if (player.whoAmI == Main.myPlayer)
{
//Reduce the buffTime of Electrified
for (int l = 0; l < Player.MaxBuffs; l++)
{
bool electrified = player.buffType[l] == BuffID.Electrified;
if (player.buffTime[l] > 2 && electrified)
{
player.buffTime[l]--;
}
}
//Summon the aura
if (player.ownedProjectileCounts[ModContent.ProjectileType<TeslaAura>()] < 1)
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<TeslaAura>(), (int)(10 * player.AverageDamage()), 0f, player.whoAmI, 0f, 0f);
}
+128 -77
View File
@@ -148,6 +148,7 @@ namespace CalamityMod
public static List<int> bossHPScaleList;
public static List<int> beeEnemyList;
public static List<int> beeProjectileList;
public static List<int> friendlyBeeList;
public static List<int> hardModeNerfList;
public static List<int> debuffList;
public static List<int> fireWeaponList;
@@ -373,6 +374,7 @@ namespace CalamityMod
bossScaleList = null;
bossHPScaleList = null;
beeEnemyList = null;
friendlyBeeList = null;
beeProjectileList = null;
hardModeNerfList = null;
debuffList = null;
@@ -758,6 +760,7 @@ namespace CalamityMod
ModContent.ProjectileType<FlakKrakenProj>(),
ModContent.ProjectileType<SylvanSlashAttack>(),
ModContent.ProjectileType<InfernadoFriendly>(),
ModContent.ProjectileType<MurasamaSlash>(),
//Some hostile boss projectiles
ModContent.ProjectileType<BrimstoneMonster>(),
@@ -985,6 +988,17 @@ namespace CalamityMod
ModContent.ProjectileType<PlagueExplosion>()
};
friendlyBeeList = new List<int>()
{
ProjectileID.GiantBee,
ProjectileID.Bee,
ProjectileID.Wasp,
ModContent.ProjectileType<PlaguenadeBee>(),
ModContent.ProjectileType<PlaguePrincess>(),
ModContent.ProjectileType<BabyPlaguebringer>(),
ModContent.ProjectileType<PlagueBeeSmall>()
};
hardModeNerfList = new List<int>()
{
ProjectileID.WebSpit,
@@ -2431,80 +2445,117 @@ namespace CalamityMod
ItemID.SuperHealingPotion
};
livingFireBlockList = new List<int>()
{
ModContent.TileType<LivingGodSlayerFireBlockTile>(),
ModContent.TileType<LivingHolyFireBlockTile>(),
ModContent.TileType<LivingBrimstoneFireBlockTile>(),
livingFireBlockList = new List<int>()
{
ModContent.TileType<LivingGodSlayerFireBlockTile>(),
ModContent.TileType<LivingHolyFireBlockTile>(),
ModContent.TileType<LivingBrimstoneFireBlockTile>(),
TileID.LivingFire,
TileID.LivingCursedFire,
TileID.LivingDemonFire,
TileID.LivingFrostFire,
TileID.LivingIchor,
TileID.LivingUltrabrightFire
};
};
zombieList = new List<int>()
{
NPCID.Zombie,
NPCID.ArmedZombie,
NPCID.BaldZombie,
NPCID.PincushionZombie,
NPCID.ArmedZombiePincussion, // what is this spelling
NPCID.SlimedZombie,
NPCID.ArmedZombieSlimed,
NPCID.SwampZombie,
NPCID.ArmedZombieSwamp,
NPCID.TwiggyZombie,
NPCID.ArmedZombieTwiggy,
NPCID.FemaleZombie,
NPCID.ArmedZombieCenx,
NPCID.ZombieRaincoat,
NPCID.ZombieEskimo,
NPCID.ArmedZombieEskimo
// halloween zombies not included because they don't drop shackles or zombie arms
};
zombieList = new List<int>()
{
NPCID.Zombie,
NPCID.ArmedZombie,
NPCID.BaldZombie,
NPCID.PincushionZombie,
NPCID.ArmedZombiePincussion, // what is this spelling
NPCID.SlimedZombie,
NPCID.ArmedZombieSlimed,
NPCID.SwampZombie,
NPCID.ArmedZombieSwamp,
NPCID.TwiggyZombie,
NPCID.ArmedZombieTwiggy,
NPCID.FemaleZombie,
NPCID.ArmedZombieCenx,
NPCID.ZombieRaincoat,
NPCID.ZombieEskimo,
NPCID.ArmedZombieEskimo,
NPCID.BigRainZombie,
NPCID.SmallRainZombie,
NPCID.BigFemaleZombie,
NPCID.SmallFemaleZombie,
NPCID.BigTwiggyZombie,
NPCID.SmallTwiggyZombie,
NPCID.BigSwampZombie,
NPCID.SmallSwampZombie,
NPCID.BigSlimedZombie,
NPCID.SmallSlimedZombie,
NPCID.BigPincushionZombie,
NPCID.SmallPincushionZombie,
NPCID.BigBaldZombie,
NPCID.SmallBaldZombie,
NPCID.BigZombie,
NPCID.SmallZombie
// halloween zombies not included because they don't drop shackles or zombie arms
};
demonEyeList = new List<int>()
{
NPCID.DemonEye,
NPCID.CataractEye,
NPCID.SleepyEye,
NPCID.DialatedEye, // it is spelled "dilated"
NPCID.GreenEye,
NPCID.PurpleEye,
NPCID.DemonEyeOwl,
NPCID.DemonEyeSpaceship
};
demonEyeList = new List<int>()
{
NPCID.DemonEye,
NPCID.CataractEye,
NPCID.SleepyEye,
NPCID.DialatedEye, // it is spelled "dilated"
NPCID.GreenEye,
NPCID.PurpleEye,
NPCID.DemonEyeOwl,
NPCID.DemonEyeSpaceship,
NPCID.DemonEye2,
NPCID.PurpleEye2,
NPCID.GreenEye2,
NPCID.DialatedEye2,
NPCID.SleepyEye2,
NPCID.CataractEye2
};
skeletonList = new List<int>()
{
NPCID.Skeleton,
NPCID.ArmoredSkeleton,
NPCID.SkeletonArcher,
NPCID.HeadacheSkeleton,
NPCID.MisassembledSkeleton,
NPCID.PantlessSkeleton,
NPCID.SkeletonTopHat,
NPCID.SkeletonAstonaut,
NPCID.SkeletonAlien,
NPCID.BoneThrowingSkeleton,
NPCID.BoneThrowingSkeleton2,
NPCID.BoneThrowingSkeleton3,
NPCID.BoneThrowingSkeleton4,
NPCID.GreekSkeleton
};
skeletonList = new List<int>()
{
NPCID.Skeleton,
NPCID.HeadacheSkeleton,
NPCID.MisassembledSkeleton,
NPCID.PantlessSkeleton,
NPCID.BoneThrowingSkeleton,
NPCID.BoneThrowingSkeleton2,
NPCID.BoneThrowingSkeleton3,
NPCID.BoneThrowingSkeleton4,
NPCID.BigPantlessSkeleton,
NPCID.SmallPantlessSkeleton,
NPCID.BigMisassembledSkeleton,
NPCID.SmallMisassembledSkeleton,
NPCID.BigHeadacheSkeleton,
NPCID.SmallHeadacheSkeleton,
NPCID.BigSkeleton,
NPCID.SmallSkeleton,
angryBonesList = new List<int>()
{
NPCID.AngryBones,
NPCID.AngryBonesBig,
NPCID.AngryBonesBigMuscle,
NPCID.AngryBonesBigHelmet
};
//Note: These skeletons don't count for Skeleton Banner for some god forsaken reason
NPCID.SkeletonTopHat,
NPCID.SkeletonAstonaut,
NPCID.SkeletonAlien,
hornetList = new List<int>()
{
//Other skeleton types
NPCID.ArmoredSkeleton,
NPCID.HeavySkeleton,
NPCID.SkeletonArcher,
NPCID.GreekSkeleton
};
angryBonesList = new List<int>()
{
NPCID.AngryBones,
NPCID.AngryBonesBig,
NPCID.AngryBonesBigMuscle,
NPCID.AngryBonesBigHelmet,
NPCID.BigBoned,
NPCID.ShortBones
};
hornetList = new List<int>()
{
NPCID.BigHornetStingy,
NPCID.LittleHornetStingy,
NPCID.BigHornetSpikey,
@@ -2518,21 +2569,21 @@ namespace CalamityMod
NPCID.BigStinger,
NPCID.LittleStinger,
NPCID.Hornet,
NPCID.HornetFatty,
NPCID.HornetHoney,
NPCID.HornetLeafy,
NPCID.HornetSpikey,
NPCID.HornetStingy
};
NPCID.HornetFatty,
NPCID.HornetHoney,
NPCID.HornetLeafy,
NPCID.HornetSpikey,
NPCID.HornetStingy
};
mossHornetList = new List<int>()
{
NPCID.MossHornet,
NPCID.TinyMossHornet,
NPCID.LittleMossHornet,
NPCID.BigMossHornet,
NPCID.GiantMossHornet
};
mossHornetList = new List<int>()
{
NPCID.MossHornet,
NPCID.TinyMossHornet,
NPCID.LittleMossHornet,
NPCID.BigMossHornet,
NPCID.GiantMossHornet
};
Mod thorium = ModLoader.GetMod("ThoriumMod");
if (CalamityConfig.Instance.BuffThoriumBosses && thorium != null)
+2
View File
@@ -34,6 +34,8 @@ namespace CalamityMod.Events
// A partially bright pale-ish cyan with a hint of yellow.
public static readonly Color TextColor = new Color(115, 194, 147);
public static int MaxNuclearToadCount = 5; // To prevent the things from spamming. This happens frequently in pre-HM.
public const int InvasionNoKillPersistTime = 14400; // How long the invasion persists, in frames, if nothing is killed.
public const float BloodwormSpawnRate = 0.1f;
+2 -2
View File
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = ItemRarityID.Lime;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 45, 0, 0);
item.rare = 6;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.accessory = true;
}
+2 -1
View File
@@ -33,8 +33,9 @@ namespace CalamityMod.Items.Accessories
item.width = 18;
item.height = 18;
item.accessory = true;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = 10;
item.Calamity().postMoonLordRarity = 12;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 30;
item.height = 38;
item.value = Item.buyPrice(0, 6, 0, 0);
item.rare = 8;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.accessory = true;
}
+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 40;
item.height = 50;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+2 -2
View File
@@ -20,10 +20,10 @@ namespace CalamityMod.Items.Accessories
{
item.width = 38;
item.height = 44;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.accessory = true;
item.expert = true;
item.rare = 9;
item.rare = 10;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 24, 0, 0);
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = 8;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -22,9 +22,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 34;
item.height = 34;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 4;
item.accessory = true;
}
+2 -2
View File
@@ -25,8 +25,8 @@ namespace CalamityMod.Items.Accessories
item.defense = 4;
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 45, 0, 0);
item.rare = 10;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 46;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.rare = 1;
item.accessory = true;
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.rare = 1;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -25,8 +25,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 36;
item.height = 32;
item.value = Item.buyPrice(0, 36, 0, 0);
item.rare = 8;
item.value = CalamityGlobalItem.Rarity6BuyPrice;
item.rare = 6;
item.accessory = true;
}
+8 -7
View File
@@ -1,5 +1,6 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -21,8 +22,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 18;
item.height = 26;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = 9;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
item.expert = true;
}
@@ -31,11 +32,11 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.aquaticEmblem = true;
player.npcTypeNoAggro[65] = true;
player.npcTypeNoAggro[220] = true;
player.npcTypeNoAggro[64] = true;
player.npcTypeNoAggro[67] = true;
player.npcTypeNoAggro[221] = true;
player.npcTypeNoAggro[NPCID.Shark] = true;
player.npcTypeNoAggro[NPCID.SeaSnail] = true;
player.npcTypeNoAggro[NPCID.PinkJellyfish] = true;
player.npcTypeNoAggro[NPCID.Crab] = true;
player.npcTypeNoAggro[NPCID.Squid] = true;
player.gills = true;
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 60;
item.height = 54;
item.value = Item.buyPrice(0, 90, 0, 0); //30 gold reforge
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.defense = 10;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
+2 -2
View File
@@ -26,8 +26,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 38;
item.height = 44;
item.value = Item.buyPrice(0, 45, 0, 0);
item.rare = 9;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.defense = 8;
item.accessory = true;
}
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity9BuyPrice;
item.expert = true;
item.rare = 9;
item.accessory = true;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 30;
item.height = 30;
item.value = Item.buyPrice(0, 21, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
item.accessory = true;
item.expert = true;
item.rare = 9;
item.value = Item.buyPrice(1, 20, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
item.width = 26;
item.height = 26;
item.rare = 8;
item.value = Item.buyPrice(0, 24, 0, 0);
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.accessory = true;
}
+2 -2
View File
@@ -18,9 +18,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 45, 0, 0);
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = ItemRarityID.Red;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 36;
item.value = Item.buyPrice(0, 4, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.accessory = true;
item.rare = 3;
}
+2 -2
View File
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 42;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 4;
item.accessory = true;
}
+2 -2
View File
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 12;
item.height = 15;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = 8;
item.accessory = true;
}
-1
View File
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Accessories
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<PlaguedFuelPack>());
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 8);
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 5);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(0, 5, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+16 -28
View File
@@ -21,50 +21,38 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 22;
item.value = Item.buyPrice(0, 24, 0, 0);
item.rare = 9;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.accessory = true;
item.expert = true;
}
public override bool CanEquipAccessory(Player player, int slot)
{
CalamityPlayer modPlayer = player.Calamity();
if (modPlayer.calamityRing)
{
return false;
}
return true;
}
public override bool CanEquipAccessory(Player player, int slot) => !player.Calamity().calamityRing;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.calamityRing = true;
player.allDamage += 0.15f;
player.endurance -= 0.3f;
player.endurance -= 0.15f;
if (player.whoAmI == Main.myPlayer)
{
if (player.immune)
{
if (Main.rand.NextBool(10))
{
for (int l = 0; l < 1; l++)
{
float x = player.position.X + (float)Main.rand.Next(-400, 400);
float y = player.position.Y - (float)Main.rand.Next(500, 800);
Vector2 vector = new Vector2(x, y);
float num15 = player.position.X + (float)(player.width / 2) - vector.X;
float num16 = player.position.Y + (float)(player.height / 2) - vector.Y;
num15 += (float)Main.rand.Next(-100, 101);
int num17 = 22;
float num18 = (float)Math.Sqrt((double)(num15 * num15 + num16 * num16));
num18 = (float)num17 / num18;
num15 *= num18;
num16 *= num18;
int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType<StandingFire>(), (int)(30 * player.AverageDamage()), 5f, player.whoAmI, 0f, 0f);
Main.projectile[num19].ai[1] = player.position.Y;
}
float x = player.position.X + (float)Main.rand.Next(-400, 400);
float y = player.position.Y - (float)Main.rand.Next(500, 800);
Vector2 source = new Vector2(x, y);
Vector2 velocity = player.Center - source;
velocity.X += (float)Main.rand.Next(-100, 101);
float speed = 22f;
float targetDist = velocity.Length();
targetDist = speed / targetDist;
velocity.X *= targetDist;
velocity.Y *= targetDist;
int fire = Projectile.NewProjectile(source, velocity, ModContent.ProjectileType<StandingFire>(), (int)(30 * player.AverageDamage()), 5f, player.whoAmI, 0f, 0f);
Main.projectile[fire].ai[1] = player.position.Y;
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.accessory = true;
}
+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
item.width = 20;
item.height = 24;
item.lifeRegen = 2;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.rare = 4;
item.accessory = true;
}
+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.accessory = true;
}
+2 -2
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = 1;
item.rare = 1;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().postMoonLordRarity = 16;
item.accessory = true;
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 22;
item.value = Item.buyPrice(0, 2, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.accessory = true;
item.rare = 1;
}
+2 -2
View File
@@ -23,9 +23,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 10;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+2 -2
View File
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 3;
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
item.defense = 3;
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.rare = 1;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.rare = 1;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 40;
item.height = 40;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.defense = 6;
item.accessory = true;
+2 -2
View File
@@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 32;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = 9;
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = 8;
item.accessory = true;
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 48;
item.height = 62;
item.value = Item.buyPrice(0, 26, 0, 0);
item.value = CalamityGlobalItem.Rarity9BuyPrice;
item.rare = 9;
item.accessory = true;
}
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.defense = 10;
item.lifeRegen = 1;
item.accessory = true;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 24;
item.height = 28;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.defense = 2;
item.accessory = true;
+2 -2
View File
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.rare = 8;
item.value = Item.buyPrice(0, 45, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -22,10 +22,10 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(1, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Developer;
item.Calamity().postMoonLordRarity = 14;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 32;
item.height = 34;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Violet;
item.accessory = true;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 26;
item.value = Item.buyPrice(0, 80, 0, 0);
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.accessory = true;
item.rare = 10;
item.Calamity().postMoonLordRarity = 13;
+1 -1
View File
@@ -18,7 +18,7 @@ Ranged weapons have a chance to fire mini swarmers");
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.accessory = true;
item.expert = true;
item.rare = 10;
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 38;
item.height = 38;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.Calamity().customRarity = CalamityRarity.Violet;
item.accessory = true;
}
+2 -2
View File
@@ -21,10 +21,10 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(1, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.accessory = true;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Developer;
item.Calamity().postMoonLordRarity = 12;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -18,9 +18,9 @@ Stealth strikes also have +30 armor penetration, deal 10% more damage, and heal
{
item.width = 24;
item.height = 40;
item.value = Item.buyPrice(0, 36, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.accessory = true;
item.rare = 6;
item.rare = 5;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 22;
item.height = 38;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 48;
item.height = 42;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.defense = 8;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+1 -1
View File
@@ -19,7 +19,7 @@ Rogue projectiles rarely explode into homing souls
item.width = 28;
item.height = 32;
item.accessory = true;
item.value = Item.buyPrice(0, 24, 0, 0);
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.rare = 8;
}
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 32;
item.value = Item.buyPrice(0, 90, 0, 0);
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
item.defense = 35;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.RareVariant;
+2 -2
View File
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 44;
item.height = 38;
item.value = Item.buyPrice(0, 0, 80, 0);
item.rare = 4;
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 24;
item.height = 38;
item.value = Item.buyPrice(0, 4, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.accessory = true;
item.rare = 3;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
item.width = 26;
item.height = 26;
item.rare = 8;
item.value = Item.buyPrice(0, 24, 0, 0);
item.value = CalamityGlobalItem.Rarity8BuyPrice;
item.accessory = true;
}
+2 -2
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 38;
item.height = 44;
item.value = Item.buyPrice(0, 30, 0, 0);
item.rare = 9;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = 7;
item.defense = 8;
item.accessory = true;
}
+4 -3
View File
@@ -1,5 +1,6 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -19,8 +20,8 @@ namespace CalamityMod.Items.Accessories
item.defense = 4;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 3;
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.rare = 4;
item.accessory = true;
}
@@ -28,7 +29,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.fBarrier = true;
player.buffImmune[46] = true;
player.buffImmune[BuffID.Chilled] = true;
}
}
}
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
item.width = 20;
item.height = 24;
item.lifeRegen = 1;
item.value = Item.buyPrice(0, 24, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+2 -2
View File
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.Accessories
item.defense = 2;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 5;
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.rare = 4;
item.accessory = true;
}
+2 -2
View File
@@ -20,9 +20,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 2;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 38;
item.height = 36;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -2
View File
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 15, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.expert = true;
item.rare = 9;
item.rare = 5;
item.accessory = true;
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 42;
item.height = 32;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = 2;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
item.defense = 6;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity1BuyPrice;
item.rare = 1;
item.accessory = true;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
item.defense = 8;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 42;
item.height = 36;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.defense = 5;
item.accessory = true;
+2 -2
View File
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 24;
item.height = 40;
item.value = Item.buyPrice(0, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.accessory = true;
item.rare = 8;
item.rare = 7;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -16,9 +16,9 @@ namespace CalamityMod.Items.Accessories
{
item.width = 24;
item.height = 40;
item.value = Item.buyPrice(0, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.accessory = true;
item.rare = 8;
item.rare = 7;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -21,10 +21,10 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(1, 50, 0, 0);
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.accessory = true;
item.rare = 10;
item.Calamity().customRarity = CalamityRarity.Developer;
item.Calamity().customRarity = CalamityRarity.Violet;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 28;
item.height = 28;
item.value = Item.buyPrice(0, 21, 0, 0);
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = 10;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.Turquoise;
+2 -2
View File
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 6;
item.value = CalamityGlobalItem.Rarity5BuyPrice;
item.rare = 5;
item.accessory = true;
}
+2 -2
View File
@@ -17,10 +17,10 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 22;
item.value = Item.buyPrice(0, 30, 0, 0);
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.accessory = true;
item.expert = true;
item.rare = 9;
item.rare = 7;
}
public override void UpdateAccessory(Player player, bool hideVisual)
+2 -2
View File
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 22;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 4;
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
+2 -1
View File
@@ -32,7 +32,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 60, 0, 0);
item.value = CalamityGlobalItem.Rarity10BuyPrice;
item.rare = 10;
item.defense = 9;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.Rainbow;
+2 -1
View File
@@ -21,7 +21,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 30, 0, 0);
item.value = CalamityGlobalItem.Rarity9BuyPrice;
item.rare = 9;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
+8 -6
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -20,8 +21,8 @@ namespace CalamityMod.Items.Accessories
{
item.width = 20;
item.height = 20;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 7;
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.rare = 4;
item.accessory = true;
}
@@ -35,8 +36,8 @@ namespace CalamityMod.Items.Accessories
player.statDefense += 5;
player.endurance += 0.05f;
}
player.buffImmune[70] = true;
player.buffImmune[20] = true;
player.buffImmune[BuffID.Venom] = true;
player.buffImmune[BuffID.Poisoned] = true;
if (!player.honey && player.lifeRegen < 0)
{
player.lifeRegen += 2;
@@ -54,8 +55,9 @@ namespace CalamityMod.Items.Accessories
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<LivingDew>());
recipe.AddIngredient(ItemID.BottledHoney, 10);
recipe.AddIngredient(ItemID.BeeWax, 10);
recipe.AddIngredient(ItemID.Bezoar);
recipe.AddIngredient(ModContent.ItemType<TrapperBulb>(), 2);
recipe.AddIngredient(ModContent.ItemType<GypsyPowder>());
recipe.AddIngredient(ModContent.ItemType<BeetleJuice>(), 3);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(this);
recipe.AddRecipe();
+1 -5
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 22;
item.height = 50;
item.value = Item.buyPrice(0, 3, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
@@ -28,9 +28,5 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.inkBomb = true;
}
public override void AddRecipes()
{
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = 3;
item.accessory = true;
}
Loaded 100 of 581 files, more files were not shown because too many files have changed in this diff. Show more