using System.Collections.Generic; using ACE.Common; using ACE.Server.Factories.Enum; namespace ACE.Server.Factories.Tables { public static class AetheriaWcids { private static readonly List aetheriaColors = new List() { WeenieClassName.ace42635_coalescedaetheria, // blue WeenieClassName.ace42637_coalescedaetheria, // yellow WeenieClassName.ace42636_coalescedaetheria, // red }; public static WeenieClassName Roll(int tier) { switch (tier) { // blue only case 5: return aetheriaColors[0]; // even chance between blue / yellow case 6: var rng = ThreadSafeRandom.Next(0, 1); return aetheriaColors[rng]; // even chance between blue / yellow / red case 7: case 8: rng = ThreadSafeRandom.Next(0, 2); return aetheriaColors[rng]; } return WeenieClassName.undef; } private static readonly HashSet _combined = new HashSet(); static AetheriaWcids() { foreach (var aetheriaWcid in aetheriaColors) _combined.Add(aetheriaWcid); } public static bool Contains(WeenieClassName wcid) { return _combined.Contains(wcid); } } }