using System.Collections.Generic; namespace BumpCombat.Defense { internal static class DefenseTowerArtDurations { private static readonly Dictionary Values = new() { ["Bodies/Fire/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T1-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T2-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T3-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/Base-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T4-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T1-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T2-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T3-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/Base-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Fire/T4-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T1-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T2-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T3-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/Base-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T4-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T1-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T2-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T3-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/Base-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Lightning/T4-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T1-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T2-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T3-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/Base-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T4-Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T1-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T2-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T3-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/Base-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Ice/T4-Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T1-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T2-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T3-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/Base-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T4-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T1-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T2-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T3-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/Base-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Control/T4-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T1-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T2-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T3-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/Base-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T4-Attack"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T1-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T2-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T3-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/Base-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Support/T4-Heal"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Summon/T1-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Summon/T2-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Summon/T3-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Summon/Base-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Bodies/Summon/T4-Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Effects/Fire/T1-Fireball"] = new[] { 90, 90, 90, 90 }, ["Effects/Fire/T2-Fireball"] = new[] { 90, 90, 90, 90 }, ["Effects/Fire/T3-Fireball"] = new[] { 90, 90, 90, 90 }, ["Effects/Fire/Impact"] = new[] { 45, 55, 60, 50 }, ["Effects/Fire/Meteor-Flight"] = new[] { 80, 80, 80, 80 }, ["Effects/Fire/Meteor-Impact"] = new[] { 40, 50, 60, 70, 60, 60, 60, 80 }, ["Sources/BlackKnight-NoSkull"] = new[] { 125, 125, 125, 125, 125, 125, 125 }, ["Effects/Fire/Flamethrower"] = new[] { 80, 80, 80, 70, 65, 65, 70 }, ["Effects/Lightning/T1-Bolt"] = new[] { 30, 40, 30, 30, 40, 40, 40, 50 }, ["Effects/Lightning/T2-Bolt"] = new[] { 30, 40, 30, 30, 40, 40, 40, 50 }, ["Effects/Lightning/T3-Bolt"] = new[] { 30, 40, 30, 30, 40, 40, 40, 50 }, ["Effects/Lightning/Arc"] = new[] { 30, 40, 30, 30, 40, 40, 40, 50 }, ["Effects/Lightning/ImpactWave"] = new[] { 40, 40, 50, 50, 60, 60 }, ["Effects/Lightning/LightningStorm"] = new[] { 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50 }, ["Effects/Ice/T1-Volley"] = new[] { 125 }, ["Effects/Ice/T2-Volley"] = new[] { 125 }, ["Effects/Ice/T3-Volley"] = new[] { 125 }, ["Effects/Ice/Shard"] = new[] { 125 }, ["Effects/Ice/Freezebolt"] = new[] { 85, 85, 85, 85 }, ["Effects/Ice/Impact"] = new[] { 40, 50, 60, 70 }, ["Effects/Ice/GlacialCage-Front"] = new[] { 65, 65, 90, 140, 140, 140, 70, 70 }, ["Effects/Ice/GlacialCage-Back"] = new[] { 65, 65, 90, 140, 140, 140, 70, 70 }, ["Effects/Control/T1-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Control/T2-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Control/T3-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Support/T1-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Support/T2-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Support/T3-Aura"] = new[] { 140, 140, 140, 140, 140, 140 }, ["Effects/Control/StoneGaze"] = new[] { 90, 90, 90, 90, 90, 90, 90, 90 }, ["Effects/Control/Temporal"] = new[] { 170, 170, 170, 170, 170, 170, 170, 170 }, ["Effects/Support/Imbuing"] = new[] { 130, 130, 130, 130, 130, 130, 130, 130 }, ["Effects/Support/Smothering"] = new[] { 150, 150, 150, 150, 150, 150, 150, 150 }, ["Summons/Slime/Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/GiantSlime/Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/Slime/Walk"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/GiantSlime/Walk"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/Slime/Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/GiantSlime/Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/Slime/Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Summons/GiantSlime/Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Summons/Slime/Hurt"] = new[] { 125, 125, 125, 125 }, ["Summons/GiantSlime/Hurt"] = new[] { 125, 125, 125, 125 }, ["Summons/Slime/Death"] = new[] { 125, 125, 125, 125 }, ["Summons/GiantSlime/Death"] = new[] { 125, 125, 125, 125 }, ["Summons/LavaSlime/Idle"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/LavaSlime/Walk"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/LavaSlime/Attack01"] = new[] { 125, 125, 125, 125, 125, 125 }, ["Summons/LavaSlime/Attack02"] = new[] { 125, 125, 125, 125, 125, 125, 125, 125, 125 }, ["Summons/LavaSlime/Hurt"] = new[] { 125, 125, 125, 125 }, ["Summons/LavaSlime/Death"] = new[] { 125, 125, 125, 125 }, ["Summons/LavaSlime/GroundSpike-Segment"] = new[] { 60, 60, 60, 60, 60, 60, 60, 60, 60, 60 }, ["Summons/LavaSlime/GroundSpike-Wave"] = new[] { 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60 }, }; public static ICollection Keys => Values.Keys; public static int FrameCount(string key) { return Values.TryGetValue(key, out int[] values) ? values.Length : 0; } public static float Seconds(string key, int frame) { if (!Values.TryGetValue(key, out int[] values) || values.Length == 0) { return 0.125f; } int safeFrame = frame < 0 ? 0 : frame >= values.Length ? values.Length - 1 : frame; return values[safeFrame] / 1000f; } } }