using System.Collections.Generic;
using CalamityMod.Buffs.Alcohol;
using CalamityMod.Buffs.Potions;
using Terraria.ID;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Systems.Collections
{
///
/// A that contains a with all buff IDs of those who are boosted by The Amalgam accessory.
///
public sealed class AmalgamBuffList : ModSystem
{
public static IList List { get; private set; }
public override void OnModLoad()
{
List =
[
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffType(),
BuffID.ObsidianSkin,
BuffID.Regeneration,
BuffID.Swiftness,
BuffID.Gills,
BuffID.Ironskin,
BuffID.ManaRegeneration,
BuffID.MagicPower,
BuffID.Featherfall,
BuffID.Spelunker,
BuffID.Invisibility,
BuffID.Shine,
BuffID.NightOwl,
BuffID.Battle,
BuffID.Thorns,
BuffID.WaterWalking,
BuffID.Archery,
BuffID.Hunter,
BuffID.Gravitation,
BuffID.Tipsy,
BuffID.WellFed,
BuffID.WellFed2,
BuffID.WellFed3,
BuffID.Honey,
BuffID.WeaponImbueVenom,
BuffID.WeaponImbueCursedFlames,
BuffID.WeaponImbueFire,
BuffID.WeaponImbueGold,
BuffID.WeaponImbueIchor,
BuffID.WeaponImbueNanites,
BuffID.WeaponImbueConfetti,
BuffID.WeaponImbuePoison,
BuffID.Lucky,
BuffID.Mining,
BuffID.Heartreach,
BuffID.Calm,
BuffID.Builder,
BuffID.Titan,
BuffID.Flipper,
BuffID.Summoning,
BuffID.Dangersense,
BuffID.AmmoReservation,
BuffID.Lifeforce,
BuffID.Endurance,
BuffID.Rage,
BuffID.Inferno,
BuffID.Wrath,
BuffID.Lovestruck,
BuffID.Stinky,
BuffID.Fishing,
BuffID.Sonar,
BuffID.Crate,
BuffID.Warmth,
BuffID.SugarRush
];
}
public override void Unload() => List = null;
///
/// A shorthand method to check whether or not a buff is boosted by The Amalgam or not.
///
public static bool Includes(int buffID) => List.Contains(buffID);
}
}