added a friendly bee list

This commit is contained in:
termigator1359 committed 2020-06-10 23:53:03 -04:00
1 parent 57136cb531
commit 65ca9c8b05
2 files changed
+17 -3

No files matched your search

+4 -3
View File
@@ -4484,7 +4484,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);
}
@@ -4819,7 +4819,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);
}
@@ -5374,7 +5374,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);
}
@@ -5390,6 +5390,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;
}
}
}
+13
View File
@@ -146,6 +146,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;
@@ -370,6 +371,7 @@ namespace CalamityMod
bossScaleList = null;
bossHPScaleList = null;
beeEnemyList = null;
friendlyBeeList = null;
beeProjectileList = null;
hardModeNerfList = null;
debuffList = null;
@@ -902,6 +904,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,