offline-fantasy-name-generators

Offline version of www.fantasynamegenerators.com
git clone https://git.neptards.moe/neptards/offline-fantasy-name-generators.git
Log | Files | Refs | README

mcWithers.js (2039B)


      1 var br = "";
      2 
      3 function nameGen() {
      4     var nm1 = ["Atrophy", "Bilge", "Blemish", "Blight", "Blot", "Breakdown", "Caries", "Carious", "Carrion", "Collapse", "Contagion", "Corrosion", "Corrupt", "Corruption", "Crumble", "Decay", "Degeneracy", "Deprave", "Desiccate", "Diluo", "Disintegrate", "Dissolution", "Dissolve", "Drain", "Drivel", "Droop", "Dwindle", "Ebb", "Extinction", "Fade", "Fall", "Fester", "Fetid", "Fetor", "Foul", "Fume", "Funk", "Gangrene", "Garbage", "Gnaw", "Grody", "Harm", "Hogwash", "Ichor", "Icky", "Insipid", "Languish", "Macula", "Malodor", "Mephitis", "Mildew", "Mold", "Musty", "Odor", "Parch", "Perish", "Pestilence", "Plague", "Pus", "Putisco", "Putor", "Putrefaction", "Putrefy", "Putresce", "Putrescent", "Putrid", "Putridity", "Putro", "Rank", "Recede", "Redolence", "Reek", "Robigo", "Rot", "Rubigo", "Ruin", "Rust", "Seep", "Shrivel", "Shrunk", "Smear", "Smog", "Smudge", "Spoil", "Sputter", "Stagnant", "Stain", "Stale", "Starvation", "Starve", "Stench", "Stigma", "Stuffy", "Succumb", "Tabus", "Taint", "Toxic", "Uredo", "Vanish", "Wane", "Waste", "Wilt", "Yucky"];
      5     var element = document.createElement("div");
      6     element.setAttribute("id", "result");
      7     nTp = Math.random() * 50 | 0;
      8     if (nTp === 0 && first !== 0 && triggered === 0) {
      9         nTp = Math.random() * 5 | 0;
     10         if (nTp === 0) {
     11             creeper();
     12         } else if (nTp < 3) {
     13             herobrine();
     14         } else {
     15             enderman();
     16         }
     17     } else {
     18         for (i = 0; i < 10; i++) {
     19             rnd = Math.random() * nm1.length | 0;
     20             nMs = nm1[rnd];
     21             nm1.splice(rnd, 1);
     22             br = document.createElement('br');
     23             element.appendChild(document.createTextNode(nMs));
     24             element.appendChild(br);
     25         }
     26         first++;
     27         if (document.getElementById("result")) {
     28             document.getElementById("placeholder").removeChild(document.getElementById("result"));
     29         }
     30         document.getElementById("placeholder").appendChild(element);
     31     }
     32 }