calamity eye moved to the crags
This commit is contained in:
1 parent
ab1efcbcf6
commit
232d40ce7c
11 files changed
+31
-60
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
|
||||
@@ -26,6 +26,7 @@ using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.NPCs.NormalNPCs
|
||||
namespace CalamityMod.NPCs.Crags
|
||||
{
|
||||
public class CalamityEye : ModNPC
|
||||
{
|
||||
@@ -29,6 +31,13 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
npc.value = Item.buyPrice(0, 0, 5, 0);
|
||||
npc.HitSound = SoundID.NPCHit1;
|
||||
npc.DeathSound = SoundID.NPCDeath1;
|
||||
if (CalamityWorld.downedProvidence)
|
||||
{
|
||||
npc.damage = 227;
|
||||
npc.defense = 101;
|
||||
npc.lifeMax = 5000;
|
||||
npc.value = Item.buyPrice(0, 0, 50, 0);
|
||||
}
|
||||
banner = npc.type;
|
||||
bannerItem = ModContent.ItemType<CalamityEyeBanner>();
|
||||
}
|
||||
@@ -50,29 +59,25 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.playerSafe || !NPC.downedPlantBoss || spawnInfo.player.Calamity().ZoneSulphur)
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
return SpawnCondition.OverworldNightMonster.Chance * 0.045f;
|
||||
return spawnInfo.player.Calamity().ZoneCalamity ? 0.25f : 0f;
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.Weak, 120, true);
|
||||
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120, true);
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<Horror>(), 180, true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<BlightedLens>());
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Lens);
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Bloodstone>(), CalamityWorld.downedProvidence, 2, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EssenceofChaos>(), Main.hardMode, 3, 1, 1);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<BlightedLens>(), 2);
|
||||
DropHelper.DropItemChance(npc, ItemID.Lens, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -71,14 +71,8 @@ namespace CalamityMod.NPCs.Crags
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (CalamityWorld.downedProvidence && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Bloodstone>());
|
||||
}
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EssenceofChaos>());
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Bloodstone>(), CalamityWorld.downedProvidence, 2, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EssenceofChaos>(), Main.hardMode, 3, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -343,14 +343,8 @@ namespace CalamityMod.NPCs.Crags
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (CalamityWorld.downedProvidence && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Bloodstone>());
|
||||
}
|
||||
if (Main.hardMode && Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EssenceofChaos>());
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Bloodstone>(), CalamityWorld.downedProvidence, 2, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EssenceofChaos>(), Main.hardMode, 3, 1, 1);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
+3
-12
@@ -261,18 +261,9 @@ namespace CalamityMod.NPCs.Crags
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (CalamityWorld.downedProvidence && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Bloodstone>());
|
||||
}
|
||||
if (Main.hardMode && Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EssenceofChaos>());
|
||||
}
|
||||
if (CalamityWorld.downedYharon)
|
||||
{
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Bloodstone>(), CalamityWorld.downedProvidence, 2, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EssenceofChaos>(), Main.hardMode, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.downedYharon, CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -261,18 +261,9 @@ namespace CalamityMod.NPCs.Crags
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (CalamityWorld.downedProvidence && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Bloodstone>());
|
||||
}
|
||||
if (Main.hardMode && Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EssenceofChaos>());
|
||||
}
|
||||
if (CalamityWorld.downedYharon)
|
||||
{
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Bloodstone>(), CalamityWorld.downedProvidence, 2, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EssenceofChaos>(), Main.hardMode, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.downedYharon, CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
Reference in new issue
Block a user