Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
9d367dd56f
3 files changed
+60
No files matched your search
@@ -0,0 +1,44 @@
|
||||
using CalamityMod.Projectiles.Environment;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
using System;
|
||||
|
||||
namespace CalamityMod.Tiles.Abyss.AbyssAmbient
|
||||
{
|
||||
public class MassiveRarePearl : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileWaterDeath[Type] = false;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(106, 80, 102));
|
||||
DustType = 33;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
if (Main.rand.Next(5) == 0)
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 32, ItemID.PinkPearl);
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 32, ItemID.WhitePearl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -523,6 +523,12 @@ namespace CalamityMod.World
|
||||
//abyss gravel stuff
|
||||
if (tile.TileType == ModContent.TileType<AbyssGravel>())
|
||||
{
|
||||
//rare pearls
|
||||
if (WorldGen.genRand.NextBool(50))
|
||||
{
|
||||
WorldGen.PlaceObject(abyssIndex, abyssIndex2, (ushort)ModContent.TileType<MassiveRarePearl>());
|
||||
}
|
||||
|
||||
//giant kelp on abyss gravel
|
||||
if (WorldGen.genRand.NextBool(15))
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables.Furniture;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Schematics;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Tiles.Abyss.AbyssAmbient;
|
||||
using CalamityMod.Tiles.Abyss.Stalactite;
|
||||
using CalamityMod.Walls;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -839,6 +840,7 @@ namespace CalamityMod.World
|
||||
return pastPlacementPositions;
|
||||
}
|
||||
|
||||
//GenerateColumnsInCaverns(int width, int depth, int maxHeight, int minHeight, int columnCount)
|
||||
public static void GenerateColumnsInCaverns()
|
||||
{
|
||||
int columnCount = ColumnCount;
|
||||
@@ -972,6 +974,14 @@ namespace CalamityMod.World
|
||||
//stalagmites, fossiles, and ribs
|
||||
if (tileUp.LiquidType == LiquidID.Water && tileUp.LiquidAmount > 0 && !tileUp.HasTile)
|
||||
{
|
||||
if (WorldGen.genRand.NextBool(25))
|
||||
{
|
||||
ushort[] Crates = new ushort[] { (ushort)ModContent.TileType<PirateCrate4>(),
|
||||
(ushort)ModContent.TileType<PirateCrate5>(), (ushort)ModContent.TileType<PirateCrate6>() };
|
||||
|
||||
WorldGen.PlaceObject(x, y - 1, WorldGen.genRand.Next(Crates));
|
||||
}
|
||||
|
||||
if (WorldGen.genRand.NextBool(18))
|
||||
{
|
||||
ushort[] Vents = new ushort[] { (ushort)ModContent.TileType<SteamGeyser1>(),
|
||||
|
||||
Reference in new issue
Block a user