You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
2.0 KiB
JavaScript
33 lines
2.0 KiB
JavaScript
var br = "";
|
|
|
|
function nameGen() {
|
|
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"];
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
nTp = Math.random() * 50 | 0;
|
|
if (nTp === 0 && first !== 0 && triggered === 0) {
|
|
nTp = Math.random() * 5 | 0;
|
|
if (nTp === 0) {
|
|
creeper();
|
|
} else if (nTp < 3) {
|
|
herobrine();
|
|
} else {
|
|
enderman();
|
|
}
|
|
} else {
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
nMs = nm1[rnd];
|
|
nm1.splice(rnd, 1);
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(nMs));
|
|
element.appendChild(br);
|
|
}
|
|
first++;
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
}
|