void applyModifier(EnemyUnit luckyUnit) { bool notValidMod = true; while (notValidMod) { MonsterMod chosen = (MonsterMod)mod.generateModList()[UnityEngine.Random.Range(0, MonsterMod.NUM_MODS)]; if (!luckyUnit.hasModifier(chosen)) { luckyUnit.AddMobModifier(chosen); curCredits = curCredits - BASE_MODIFIER_COST; } } //} //Creates A list of potential enemies sorted by credit cost }