using System.Collections.Generic; using CalamityMod.Buffs.DamageOverTime; using Terraria.ID; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Systems.Collections { /// /// A that contains a that has all the IDs of all Fire-type debuffs. /// public sealed class FireDebuffsList : ModSystem { public static IList List { get; private set; } public override void OnModLoad() { List = [ BuffID.OnFire, BuffID.OnFire3, // Hellfire BuffID.Burning, // Touching meteorite ore or hellstone without obsidian skull BuffID.CursedInferno, BuffID.ShadowFlame, // Vanilla Shadowflame, can normally never be applied to players BuffType(), // Calamity Shadowflame copy for players BuffType(), // Crags lava BuffType(), BuffType(), BuffType(), BuffType(), BuffType(), // Aflame enchant self damage BuffType(), ]; } public override void Unload() => List = null; /// /// A shorthand method to check if a buff ID is a fire debuff. /// public static bool Includes(int buffID) => List.Contains(buffID); } }