-all abyss layers have tile detection along with their world depth checking -clamped astral biome placement so it wont crash hopefully, also made its placing based on the sulphur sea instead of the dungeon -please god why arent the lillies placing far enough way please tell me this fixed it
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Systems;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.BiomeManagers
|
|
{
|
|
public class AbyssLayer2Biome : ModBiome
|
|
{
|
|
public override int Music
|
|
{
|
|
get
|
|
{
|
|
if (CalamityPlayer.areThereAnyDamnBosses)
|
|
return Main.curMusic;
|
|
return CalamityMod.Instance.GetMusicFromMusicMod("AbyssLayer2") ?? MusicID.Hell;
|
|
}
|
|
}
|
|
|
|
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/UpperAbyssWater");
|
|
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
|
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer2Icon";
|
|
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
|
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Murky Waters");
|
|
}
|
|
|
|
public override bool IsBiomeActive(Player player)
|
|
{
|
|
return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && BiomeTileCounterSystem.Layer2Tiles >= 200 &&
|
|
playerYTileCoords > Main.rockLayer - 10 && playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.143;
|
|
}
|
|
}
|
|
}
|