-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.5 KiB
C#
39 lines
1.5 KiB
C#
using CalamityMod.CalPlayer;
|
|
using CalamityMod.Systems;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.BiomeManagers
|
|
{
|
|
public class AbyssLayer3Biome : ModBiome
|
|
{
|
|
public override int Music
|
|
{
|
|
get
|
|
{
|
|
if (CalamityPlayer.areThereAnyDamnBosses)
|
|
return Main.curMusic;
|
|
return CalamityMod.Instance.GetMusicFromMusicMod("AbyssLayer3") ?? MusicID.Hell;
|
|
}
|
|
}
|
|
|
|
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/MiddleAbyssWater");
|
|
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
|
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer3Icon";
|
|
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
|
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23";
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Thermal Vents");
|
|
}
|
|
|
|
public override bool IsBiomeActive(Player player)
|
|
{
|
|
return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && BiomeTileCounterSystem.Layer3Tiles >= 200 &&
|
|
playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.143 && playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.268;
|
|
}
|
|
}
|
|
}
|