using System.Collections.Generic; using ACE.Server.Factories.Entity; namespace ACE.Server.Factories.Tables { public static class SpellLevelChance { /* 1: 1-3 2: 3-5 3: 4-6 4: 5-6 5: 6-7 (should be 5-7) 6: 6-7 7: 7-8 (should be 6-8) 8: 7-8 (should be 6-8) */ private static ChanceTable T1_SpellLevelChances = new ChanceTable() { // 15/60/25? ( 1, 0.25f ), ( 2, 0.50f ), ( 3, 0.25f ), }; private static ChanceTable T2_SpellLevelChances = new ChanceTable() { ( 3, 0.25f ), ( 4, 0.50f ), ( 5, 0.25f ), }; private static ChanceTable T3_SpellLevelChances = new ChanceTable() { ( 4, 0.25f ), ( 5, 0.50f ), ( 6, 0.25f ), }; private static ChanceTable T4_SpellLevelChances = new ChanceTable() { ( 5, 0.75f ), ( 6, 0.25f ), }; private static ChanceTable T5_SpellLevelChances = new ChanceTable() { ( 5, 0.30f ), ( 6, 0.50f ), ( 7, 0.20f ), }; private static ChanceTable T6_SpellLevelChances = new ChanceTable() { ( 6, 0.60f ), ( 7, 0.40f ), }; private static ChanceTable T7_SpellLevelChances = new ChanceTable() { ( 6, 0.25f ), ( 7, 0.50f ), ( 8, 0.25f ), }; private static ChanceTable T8_SpellLevelChances = new ChanceTable() { ( 6, 0.15f ), ( 7, 0.50f ), ( 8, 0.35f ), }; private static readonly List> spellLevelChances = new List>() { T1_SpellLevelChances, T2_SpellLevelChances, T3_SpellLevelChances, T4_SpellLevelChances, T5_SpellLevelChances, T6_SpellLevelChances, T7_SpellLevelChances, T8_SpellLevelChances }; /// /// Rolls for a spell level for a tier /// public static int Roll(int tier) { return spellLevelChances[tier - 1].Roll(); } } }