various fixes
This commit is contained in:
1 parent
b8fdbfe056
commit
1beaa4172e
3 files changed
+6
-4
No files matched your search
@@ -14,10 +14,11 @@ namespace CalamityMod.Tiles.Abyss
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileLavaDeath[Type] = false;
|
||||
Main.tileWaterDeath[Type] = false;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.addTile(Type);
|
||||
AddMapEntry(new Color(29, 37, 58));
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Abyss Shell Fossil");
|
||||
AddMapEntry(new Color(29, 37, 58), name);
|
||||
DustType = 33;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Tiles
|
||||
{
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
TileID.Sets.IsATreeTrunk[Type] = true;
|
||||
TileObjectData.newTile.Width = 5;
|
||||
TileObjectData.newTile.Height = 5;
|
||||
TileObjectData.newTile.Origin = new Point16(2, 4);
|
||||
|
||||
@@ -125,10 +125,10 @@ namespace CalamityMod.World
|
||||
float worldEdgeMargin = (float)Main.maxTilesX * 0.08f;
|
||||
int xLimit = Main.maxTilesX / 2;
|
||||
|
||||
int realX = Abyss.AtLeftSideOfWorld ? rand.Next(SulphurousSea.BiomeWidth + 300, xLimit - 400) : rand.Next(xLimit + 400, Main.maxTilesX - SulphurousSea.BiomeWidth - 300);
|
||||
int realX = Abyss.AtLeftSideOfWorld ? rand.Next(SulphurousSea.BiomeWidth + 400, xLimit - 400) : rand.Next(xLimit + 400, Main.maxTilesX - SulphurousSea.BiomeWidth - 400);
|
||||
|
||||
//clamp so it doesnt crash hopefully
|
||||
int x = Utils.Clamp(realX, SulphurousSea.BiomeWidth + 300, Main.maxTilesX - SulphurousSea.BiomeWidth - 300);
|
||||
int x = Utils.Clamp(realX, SulphurousSea.BiomeWidth + 400, Main.maxTilesX - SulphurousSea.BiomeWidth - 400);
|
||||
|
||||
//world surface = 920 large 740 medium 560 small
|
||||
int y = (int)(Main.worldSurface * 0.5); //Large = 522, Medium = 444, Small = 336
|
||||
|
||||
Reference in new issue
Block a user