Advertisement
Krythic

Epic Name Generator

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