Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
d370ece35b
9 files changed
+47
-5
No files matched your search
@@ -22,6 +22,11 @@ using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Projectiles.VanillaProjectileOverrides;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
using CalamityMod.Tiles.AstralDesert;
|
||||
using CalamityMod.Tiles.AstralSnow;
|
||||
using CalamityMod.Tiles.Crags.Tree;
|
||||
using CalamityMod.Tiles.FurnitureAuric;
|
||||
using CalamityMod.Tiles.Ores;
|
||||
using CalamityMod.World;
|
||||
@@ -4067,7 +4072,8 @@ namespace CalamityMod.Projectiles
|
||||
|| projectile.type == ProjectileID.PureSpray
|
||||
|| projectile.type == ProjectileID.CorruptSpray
|
||||
|| projectile.type == ProjectileID.CrimsonSpray
|
||||
|| projectile.type == ProjectileID.HallowSpray;
|
||||
|| projectile.type == ProjectileID.HallowSpray
|
||||
|| projectile.type == ProjectileID.Fertilizer;
|
||||
if (!isConversionProjectile)
|
||||
return;
|
||||
|
||||
@@ -4078,10 +4084,39 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
bool isPowder = projectile.type == ProjectileID.PurificationPowder || projectile.type == ProjectileID.VilePowder || projectile.type == ProjectileID.ViciousPowder;
|
||||
|
||||
if (!WorldGen.InWorld(x, y, 3))
|
||||
return;
|
||||
|
||||
for (int i = x - 1; i <= x + 1; i++)
|
||||
{
|
||||
for (int j = y - 1; j <= y + 1; j++)
|
||||
{
|
||||
if (projectile.type == ProjectileID.Fertilizer)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
|
||||
if (tile.TileType == ModContent.TileType<AstralTreeSapling>() || tile.TileType == ModContent.TileType<AstralSnowTreeSapling>())
|
||||
{
|
||||
bool isPlayerNear = WorldGen.PlayerLOS(i, j);
|
||||
bool success = WorldGen.GrowTree(i, j);
|
||||
if (success && isPlayerNear)
|
||||
WorldGen.TreeGrowFXCheck(i, j);
|
||||
}
|
||||
else if (tile.TileType == ModContent.TileType<AstralPalmSapling>() || tile.TileType == ModContent.TileType<AcidWoodTreeSapling>())
|
||||
{
|
||||
bool isPlayerNear = WorldGen.PlayerLOS(i, j);
|
||||
bool success = WorldGen.GrowPalmTree(i, j);
|
||||
if (success && isPlayerNear)
|
||||
WorldGen.TreeGrowFXCheck(i, j);
|
||||
}
|
||||
else if (tile.TileType == ModContent.TileType<SpineSapling>())
|
||||
{
|
||||
bool isPlayerNear = WorldGen.PlayerLOS(i, j);
|
||||
if (isPlayerNear && Main.tile[i, j + 1].TileType != ModContent.TileType<SpineSapling>())
|
||||
SpineTree.Spawn(i, j, 22, 28, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (projectile.type == ProjectileID.PureSpray || projectile.type == ProjectileID.PurificationPowder)
|
||||
{
|
||||
AstralBiome.ConvertFromAstral(i, j, ConvertType.Pure, !isPowder);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
TileID.Sets.CanBeClearedDuringOreRunner[Type] = true;
|
||||
|
||||
TileID.Sets.Conversion.Dirt[Type] = true;
|
||||
|
||||
this.RegisterUniversalMerge(TileID.Dirt, "CalamityMod/Tiles/Merges/DirtMerge");
|
||||
this.RegisterUniversalMerge(TileID.Stone, "CalamityMod/Tiles/Merges/StoneMerge");
|
||||
|
||||
@@ -57,5 +57,7 @@ namespace CalamityMod.Tiles.Crags.Tree
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanDrop(int i, int j) => false;
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Dirt.
|
||||
DustType = DustID.Shadowflame;
|
||||
WallID.Sets.Conversion.Dirt[Type] = true;
|
||||
AddMapEntry(new Color(26, 22, 32));
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Walls
|
||||
// TODO -- Change this dust to be one more befitting Astral Dirt.
|
||||
DustType = DustID.Shadowflame;
|
||||
Main.wallHouse[Type] = true;
|
||||
WallID.Sets.Conversion.Dirt[Type] = true;
|
||||
AddMapEntry(new Color(26, 22, 32));
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
// TODO -- Change this dust to be one more befitting Astral Ice.
|
||||
DustType = DustID.Shadowflame;
|
||||
WallID.Sets.Conversion.Ice[Type] = true;
|
||||
AddMapEntry(new Color(83, 76, 92));
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Walls
|
||||
// TODO -- Change this dust to be one more befitting Astral Ice.
|
||||
Main.wallHouse[Type] = true;
|
||||
DustType = DustID.Shadowflame;
|
||||
|
||||
WallID.Sets.Conversion.Ice[Type] = true;
|
||||
AddMapEntry(new Color(83, 76, 92));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
@@ -8,7 +9,7 @@ namespace CalamityMod.Walls
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
|
||||
WallID.Sets.Conversion.Snow[Type] = true;
|
||||
AddMapEntry(new Color(135, 145, 149));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
@@ -10,7 +11,7 @@ namespace CalamityMod.Walls
|
||||
{
|
||||
DustType = ModContent.DustType<Dusts.AstralBasic>();
|
||||
Main.wallHouse[Type] = true;
|
||||
|
||||
WallID.Sets.Conversion.Snow[Type] = true;
|
||||
AddMapEntry(new Color(135, 145, 149));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user