caladriusNames.js (5281B)
1 var nm1 = [ 2 ["Absolutorius", "(Effecting A Cure)"], 3 ["Adlevo", "(to Alleviate)"], 4 ["Allevo", "(to Alleviate)"], 5 ["Ambrosia", "(Healing Plant)"], 6 ["Apsolutorius", "(Effecting A Cure)"], 7 ["Archiater", "(Court Physician)"], 8 ["Archiatia", "(Chief Physician)"], 9 ["Asteriacce", "(Simple Medicine)"], 10 ["Auxilio", "(to Give Help/Heal)"], 11 ["Auxilior", "(to Help/Heal)"], 12 ["Chlora", "(Medicament)"], 13 ["Confervesco", "(to Heal Bones)"], 14 ["Confervo", "(to Heal Bones)"], 15 ["Consanesco", "(to Be Healed)"], 16 ["Consano", "(to Heal/Make Whole)"], 17 ["Convalesco", "(to Recover)"], 18 ["Convalo", "(to Regain Health)"], 19 ["Curans", "(Physician)"], 20 ["Curare", "(to Cure)"], 21 ["Curatio", "(Curing)"], 22 ["Curatio", "(Healing)"], 23 ["Curatus", "(Treatment)"], 24 ["Curavi", "(to Cure)"], 25 ["Curo", "(to Cure)"], 26 ["Dannaustra", "(Cure Charm)"], 27 ["Delenio", "(to Soothe)"], 28 ["Diachylon", "(Medicine Type)"], 29 ["Diacodion", "(Medicine Type)"], 30 ["Diaetetica", "(Art Of Medicine)"], 31 ["Diamoron", "(Medicine Type)"], 32 ["Diapente", "(Medicine Type)"], 33 ["Diatessaron", "(Medicine Type)"], 34 ["Elixir", "(Elixir)"], 35 ["Emendo", "(to Ameliorate)"], 36 ["Focilo", "(to Keep Alive)"], 37 ["Lenio", "(to Ease)"], 38 ["Lenire", "(to Ease)"], 39 ["Linteolum", "(Bandage)"], 40 ["Medela", "(Cure)"], 41 ["Medella", "(Cure)"], 42 ["Medens", "(Physician)"], 43 ["Medeor", "(to Heal)"], 44 ["Medeor", "(to Heal/Remedy)"], 45 ["Medicari", "(to Heal)"], 46 ["Medice", "(Doctor)"], 47 ["Medicina", "(Medicine)"], 48 ["Medico", "(to Heal)"], 49 ["Medicor", "(to Heal)"], 50 ["Medicus", "(Curative)"], 51 ["Medicus", "(Doctor)"], 52 ["Melioro", "(to Ameliorate)"], 53 ["Mitigo", "(to Lighten/Soothe)"], 54 ["Opopanax", "(Heal-All)"], 55 ["Paeonius", "(Healing)"], 56 ["Panaces", "(Heal-All)"], 57 ["Panax", "(Heal-All)"], 58 ["Percuro", "(to Heal Completely)"], 59 ["Permulceo", "(to Soothe)"], 60 ["Persanare", "(to Cure Completely)"], 61 ["Persano", "(to Cure Completely)"], 62 ["Praemedicatus", "(Protected By Medicine)"], 63 ["Recupero", "(to Restore Health)"], 64 ["Recuro", "(to Cure/Restore)"], 65 ["Relevo", "(to Alleviate)"], 66 ["Remedi", "(Medicine)"], 67 ["Remedium", "(Remedy)"], 68 ["Saluber", "(Healthy)"], 69 ["Salubritas", "(Good Health)"], 70 ["Salutifer", "(Salutary/Healing)"], 71 ["Sanesco", "(to Recover)"], 72 ["Sano", "(to Cure/Heal)"], 73 ["Therapia", "(Therapy)"], 74 ["Unguentum", "(Balm)"], 75 ["Valeo", "(to Be Healthy)"], 76 ["Valesco", "(to Become Healthy)"], 77 ["Valetudo", "(Good Health)"] 78 ]; 79 var nm2 = ["aius", "er", "ius", "o", "uns", "us"]; 80 var nm3 = ["c", "d", "f", "l", "ll", "m", "n", "nd", "nt", "r", "rg", "rt", "s", "st", "t", "v"]; 81 var nm4 = ["a", "as", "ea", "es", "ia", "ian", "iana", "ias", "ica", "iens", "illa", "ina", "is", "ita", "o", "ula"]; 82 var nm5 = ["b", "c", "d", "f", "l", "ll", "m", "n", "nd", "ns", "ph", "r", "rc", "rn", "s", "t", "tr", "z"]; 83 var nm6 = ["a", "as", "er", "es", "ien", "in", "is", "iuns", "o", "us"]; 84 var nm7 = ["c", "d", "f", "l", "ll", "m", "n", "nd", "r", "rn", "rt", "s", "st", "t", "v", "z"]; 85 var nm8 = ["a", "e", "i", "o", "u", "y"]; 86 87 function nameGen(type) { 88 var tp = type; 89 var br = ""; 90 var element = document.createElement("div"); 91 element.setAttribute("id", "result"); 92 for (i = 0; i < 5; i++) { 93 rnd = Math.random() * nm1.length | 0; 94 nFl = nm1[rnd][0] + " " + nm1[rnd][1]; 95 nTmp = nm1[rnd][0]; 96 if (nTmp.length > 4) { 97 nC = (Math.random() * 4 | 0) + 1; 98 } else { 99 nC = 1; 100 } 101 nTmp = nTmp.slice(0, nTmp.length - nC); 102 nChk = nTmp.slice(nTmp.length - 1); 103 if (nm8.includes(nChk)) { 104 if (tp === 1) { 105 rnd3 = Math.random() * nm4.length | 0; 106 rnd4 = Math.random() * nm5.length | 0; 107 names = nTmp + nm5[rnd4] + nm4[rnd3]; 108 } else if (tp === 2) { 109 rnd3 = Math.random() * nm6.length | 0; 110 rnd4 = Math.random() * nm7.length | 0; 111 names = nTmp + nm7[rnd4] + nm6[rnd3]; 112 } else { 113 rnd3 = Math.random() * nm2.length | 0; 114 rnd4 = Math.random() * nm3.length | 0; 115 names = nTmp + nm3[rnd4] + nm2[rnd3]; 116 } 117 } else { 118 if (tp === 1) { 119 rnd3 = Math.random() * nm2.length | 0; 120 names = nTmp + nm2[rnd3]; 121 } else if (tp === 2) { 122 rnd3 = Math.random() * nm4.length | 0; 123 names = nTmp + nm4[rnd3]; 124 } else { 125 rnd3 = Math.random() * nm6.length | 0; 126 names = nTmp + nm6[rnd3]; 127 } 128 } 129 br = document.createElement('br'); 130 element.appendChild(document.createTextNode(names)); 131 element.appendChild(br); 132 br2 = document.createElement('br'); 133 element.appendChild(document.createTextNode(nFl)); 134 element.appendChild(br2); 135 } 136 if (document.getElementById("result")) { 137 document.getElementById("placeholder").removeChild(document.getElementById("result")); 138 } 139 document.getElementById("placeholder").appendChild(element); 140 }