misc stuff again
-added plantera bulb (hopefully it works when grown) -new vernal pass schematic added -spine sapling fix -eidolists now spawn in layer 4 along with layer 3
This commit is contained in:
1 parent
20a47ca041
commit
84bbafcc25
9 files changed
+120
-9
No files matched your search
@@ -56,7 +56,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbyssLayer3Biome>().Type };
|
||||
SpawnModBiomes = new int[2] { ModContent.GetInstance<AbyssLayer3Biome>().Type, ModContent.GetInstance<AbyssLayer4Biome>().Type };
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -319,7 +319,11 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water)
|
||||
{
|
||||
return 0.1f;
|
||||
return 0.25f;
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water)
|
||||
{
|
||||
return 0.5f;
|
||||
}
|
||||
return 0f;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,63 @@
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.Abyss
|
||||
{
|
||||
public class ShaleColumns : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileSolid[Type] = false;
|
||||
Main.tileSolidTop[Type] = true;
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 3;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 2);
|
||||
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
|
||||
TileObjectData.newTile.UsesCustomCanPlace = true;
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.WaterDeath = false;
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(37, 24, 63));
|
||||
DustType = 33;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
Tile t = CalamityUtils.ParanoidTileRetrieval(i, j);
|
||||
Tile left = CalamityUtils.ParanoidTileRetrieval(i - 1, j);
|
||||
Tile right = CalamityUtils.ParanoidTileRetrieval(i + 1, j);
|
||||
if (t.TileFrameX % 36 == 0 && !right.HasTile)
|
||||
WorldGen.KillTile(i, j);
|
||||
if (t.TileFrameX % 36 == 18 && !left.HasTile)
|
||||
WorldGen.KillTile(i, j);
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
}
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.Crags.Tree
|
||||
|
||||
if (isPlayerNear && Main.tile[i, j + 1].TileType != ModContent.TileType<SpineSapling>())
|
||||
{
|
||||
SpineTree.Spawn(i, j, 22, 28, true);
|
||||
SpineTree.Spawn(i, j + 1, 22, 28, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Tiles.Crags.Tree
|
||||
What each frame of the tree means
|
||||
(refer to the sprite sheet for the colors)
|
||||
X frame 0 (orange) = bottom segment
|
||||
X frame 18 (dark purple) = main body segment, each of the three y-frame variants draws a different tree segment variant
|
||||
X frame 18 (dark purple) = main tree segment, each of the three y-frame variants draws a different tree segment variant
|
||||
X frame 36 (light purple) = top of the tree
|
||||
X frame 54 (teal) = small rib branch segments
|
||||
X frame 72 (lime) = medium rib branch segments
|
||||
|
||||
@@ -29,12 +29,49 @@ namespace CalamityMod.Tiles
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.DrawYOffset = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
AnimationFrameHeight = 90;
|
||||
AddMapEntry(Main.hardMode ? new Color(243, 82, 171) : new Color(107, 125, 33));
|
||||
DustType = DustID.JungleGrass;
|
||||
|
||||
base.SetStaticDefaults();
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 2;
|
||||
}
|
||||
|
||||
public override bool CanKillTile(int i, int j, ref bool blockDamaged)
|
||||
{
|
||||
return Main.hardMode;
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j)
|
||||
{
|
||||
return Main.hardMode;
|
||||
}
|
||||
|
||||
public override void AnimateTile(ref int frame, ref int frameCounter)
|
||||
{
|
||||
if (Main.hardMode)
|
||||
{
|
||||
frameCounter++;
|
||||
if (frameCounter > 25)
|
||||
{
|
||||
frameCounter = 0;
|
||||
frame++;
|
||||
if (frame > 6)
|
||||
{
|
||||
frame = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
frame = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
|
||||
{
|
||||
if (Main.hardMode)
|
||||
@@ -45,9 +82,13 @@ namespace CalamityMod.Tiles
|
||||
}
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
num = fail ? 1 : 2;
|
||||
Tile tile = Framing.GetTileSafely(i, j);
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Tiles/GiantPlanteraBulbGlow").Value;
|
||||
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange, Main.offScreenRange);
|
||||
|
||||
spriteBatch.Draw(tex, new Vector2(i * 16, j * 16 + 2) - Main.screenPosition + zero, new Rectangle(tile.TileFrameX, tile.TileFrameY, 16, 16), Color.Yellow);
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -67,7 +67,7 @@ namespace CalamityMod.World
|
||||
//normally i would organize each layer of blocks by the order of how they are placed in the abyss
|
||||
//but i cannot be bothered, and when i do it, it keeps messing up or making certain parts like transitions not gen right
|
||||
//i have at least left comments so people reading will know what does what
|
||||
if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) + 25)
|
||||
if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) + 35)
|
||||
{
|
||||
//replaces blocks wand walls that can be converted
|
||||
if (canConvert)
|
||||
@@ -655,6 +655,9 @@ namespace CalamityMod.World
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//ugh ill edit this later so i can customize the check positions and tiles for columns
|
||||
//SulphurousSea.GenerateColumnsInCaverns();
|
||||
}
|
||||
|
||||
public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, int tileType, bool hasChest, bool hasClumps, bool hasScoria)
|
||||
|
||||
+2
-2
@@ -40,9 +40,9 @@ namespace CalamityMod.World
|
||||
bool canGenerateInLocation = true;
|
||||
|
||||
float totalTiles = schematicSize.X * schematicSize.Y;
|
||||
for (int x = placementPoint.X; x < placementPoint.X + schematicSize.X; x++)
|
||||
for (int x = placementPoint.X - 50; x < placementPoint.X + schematicSize.X + 50; x++)
|
||||
{
|
||||
for (int y = placementPoint.Y; y < placementPoint.Y + schematicSize.Y; y++)
|
||||
for (int y = placementPoint.Y - 50; y < placementPoint.Y + schematicSize.Y + 50; y++)
|
||||
{
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y);
|
||||
|
||||
|
||||
Reference in new issue
Block a user