Krythic

Epic Name Generator

Jul 22nd, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using VoidwalkerEngine.Framework.Utilities;
  7.  
  8. namespace VoidwalkerEngine.Framework.Algorithms
  9. {
  10.     public partial class LootGenerator
  11.     {
  12.  
  13.         public static string[] _allEpicNames = new string[]
  14.         {
  15.             "Voh","Mur","Val","Rai","Kai","Sol","Zol","Tal","Tir","Tyr","Zod","El",
  16.             "Lok","Ith","Kar","Kol","Wyr","Thon","Nax","Nak","Dag","Kal","Gan","Ort",
  17.             "Nef","Mal","Ur","Iza","Ual","Zul","Zon","Asha","Lum","Inos","Kyn","Deth",
  18.             "Ohn","Lof","Wyn","Zor","Zin","Eon","Sur","Sai","Syn","Rok","Tor","Vex",
  19.             "Hex","Ruuk","Quel","Erth","Yol","Ahrk","Alun","Drim","Nok","Nix","Ald",
  20.             "Ruhn","Orth","Orst","Wey","Non", "Hal", "Rey", "Oros", "Urd", "Maka",
  21.             "Orph", "Asca", "Velo", "Thi", "Bal", "Orb", "Ala","Bish", "Bosh", "Ius",
  22.             "Ial", "Lana", "Eck", "Quar","Yor","Bim","One","Assa","Kau", "Lith", "Ium",
  23.             "Gni", "Pok","Nyr","Lion","Luc","Wyt","Don","Ord","Than","Ture","Dun","Dus",
  24.             "Dae","Sha","Fyr","Erst","Bry","Eve","Oria","Stad","Kyne","Noct","Atro","Sum",
  25.             "Ark","Theim","Lor","Trev","Neu","Ower","Nil","Nar","Nos","Riah","Fal","Ansi",
  26.             "Ust","Fro"
  27.         };
  28.  
  29.         public string GenerateEpicName()
  30.         {
  31.             string part1 = _random.Choose(_allEpicNames);
  32.             string part2 = null;
  33.             while (part2 == null || part2.Equals(part1) || part2.StartsWith(part1.Substring(0, 1)))
  34.             {
  35.                 part2 = _random.Choose(_allEpicNames);
  36.             }
  37.             return Char.ToUpper(part1[part1.Length - 1]) == Char.ToUpper(part2[0])
  38.                 ? part1 + "'" + part2.ToLower()
  39.                 : part1 + part2.ToLower();
  40.         }
  41.     }
  42. }
Add Comment
Please, Sign In to add comment