32 lines
1.7 KiB
C#
32 lines
1.7 KiB
C#
using CalamityMod.Items.Placeables.Furniture;
|
|
using CalamityMod.Systems;
|
|
using CalamityMod.Waters;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.BiomeManagers
|
|
{
|
|
public class TimelessShoresBiome : ModBiome
|
|
{
|
|
public override ModWaterStyle WaterStyle => SunkenSeaBurrowsWater.Instance;
|
|
public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find<ModUndergroundBackgroundStyle>("CalamityMod/SunkenSeaBGStyle");
|
|
public override int BiomeTorchItemType => ModContent.ItemType<NavyPrismTorch>();
|
|
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("SunkenSea") ?? MusicID.OceanNight;
|
|
public override SceneEffectPriority Priority => SceneEffectPriority.Environment;
|
|
public override string BestiaryIcon => "CalamityMod/BiomeManagers/SunkenSeaIcon";
|
|
// Placeholder until we get a dedicated Sunken Sea background
|
|
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
|
public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1";
|
|
|
|
public override bool IsBiomeActive(Player player)
|
|
{
|
|
bool MoreThanReefs = BiomeTileCounterSystem.SunkenSeaShoresTiles > BiomeTileCounterSystem.SunkenSeaReefsTiles;
|
|
bool MoreThanBasalt = BiomeTileCounterSystem.SunkenSeaShoresTiles > BiomeTileCounterSystem.SunkenSeaBasaltTiles;
|
|
bool MoreThanUnderground = BiomeTileCounterSystem.SunkenSeaShoresTiles > BiomeTileCounterSystem.UndergroundTiles;
|
|
|
|
return (BiomeTileCounterSystem.SunkenSeaShoresTiles > 1200) && MoreThanReefs && MoreThanBasalt && MoreThanUnderground;
|
|
}
|
|
}
|
|
}
|