Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
01c092ec17
4 files changed
+20
-5
No files matched your search
@@ -1189,6 +1189,8 @@ namespace CalamityMod.Items
|
||||
// Arcane and Magnet Flower buffs
|
||||
if (item.type == ItemID.ArcaneFlower || item.type == ItemID.MagnetFlower)
|
||||
player.manaCost -= 0.04f;
|
||||
if (item.type == ItemID.ArcaneFlower)
|
||||
player.GetDamage<MagicDamageClass>() += 0.05f;
|
||||
|
||||
if (item.type == ItemID.SniperScope)
|
||||
{
|
||||
|
||||
@@ -611,6 +611,8 @@ namespace CalamityMod.Items
|
||||
// Arcane and Magnet Flower buffs.
|
||||
if (item.type == ItemID.ArcaneFlower || item.type == ItemID.MagnetFlower)
|
||||
EditTooltipByNum(0, (line) => line.Text = "12% reduced mana usage");
|
||||
if (item.type == ItemID.ArcaneFlower)
|
||||
EditTooltipByNum(2, (line) => line.Text += "\n5% increased magic damage");
|
||||
|
||||
// Magiluminescence nerf and clear explanation of what it actually does.
|
||||
if (item.type == ItemID.Magiluminescence)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
@@ -9,6 +11,16 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
{
|
||||
public class AnahitasIceShield : ModNPC
|
||||
{
|
||||
public bool WaitingForLeviathan
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Main.npc.IndexInRange(CalamityGlobalNPC.leviathan) && Main.npc[CalamityGlobalNPC.leviathan].life / (float)Main.npc[CalamityGlobalNPC.leviathan].lifeMax >= ((CalamityWorld.death || BossRushEvent.BossRushActive) ? 0.7f : 0.4f))
|
||||
return true;
|
||||
|
||||
return CalamityUtils.FindFirstProjectile(ModContent.ProjectileType<LeviathanSpawner>()) != -1;
|
||||
}
|
||||
}
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.HideFromBestiary();
|
||||
@@ -62,7 +74,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (NPC.alpha > 100 && NPC.ai[1] == 0f)
|
||||
NPC.alpha -= 2;
|
||||
|
||||
if (Main.npc[anahitaID].damage == 0)
|
||||
if (WaitingForLeviathan)
|
||||
NPC.ai[1] = 1f;
|
||||
else
|
||||
NPC.ai[1] = 0f;
|
||||
@@ -70,7 +82,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (NPC.ai[1] == 1f)
|
||||
NPC.alpha = Main.npc[anahitaID].alpha;
|
||||
|
||||
NPC.dontTakeDamage = Main.npc[anahitaID].damage == 0;
|
||||
NPC.dontTakeDamage = WaitingForLeviathan;
|
||||
NPC.rotation = Main.npc[anahitaID].rotation;
|
||||
NPC.spriteDirection = Main.npc[anahitaID].direction;
|
||||
NPC.velocity = Vector2.Zero;
|
||||
|
||||
@@ -453,9 +453,8 @@ namespace CalamityMod.World
|
||||
y += 5;
|
||||
}
|
||||
|
||||
if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && (!CalamityUtils.TileActiveAndOfType(x, y, TileID.Torches) ||
|
||||
!CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers) || !CalamityUtils.TileActiveAndOfType(x, y, TileID.Containers2)
|
||||
|| (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType)))) //AVOID HOUSES
|
||||
if (Main.tile[x, y].HasTile || Main.tile[x, y].WallType > 0 && !TileID.Sets.Torch[Main.tile[x,y].TileType] && !TileID.Sets.IsAContainer[Main.tile[x, y].TileType]
|
||||
&& (magicStorage is not null && MSTilesToAvoid.Contains(Main.tile[x, y].TileType))) //AVOID HOUSES
|
||||
{
|
||||
bool place = true;
|
||||
SchematicManager.PlaceSchematic<Action<Chest>>(SchematicManager.AstralBeaconKey, new Point(x, y - 5), SchematicAnchor.Center, ref place);
|
||||
|
||||
Reference in new issue
Block a user