religions-generator.js (#724)

Sorted the lists, arrays and weighted arrays of items in alphabetical order. Some remain in the order assigned by weighted random.
I think this helps people spot missing items on the list if they check by name.
The number of items is the same, they just got reordered.
This commit is contained in:
Ángel Montero Lamas 2022-01-10 14:13:29 +01:00 committed by Peter
parent 0f1e86fab6
commit a51d2e6403
2 changed files with 117 additions and 165 deletions

View file

@ -783,12 +783,7 @@ async function generate(options) {
const parsedError = parseError(error); const parsedError = parseError(error);
clearMainTip(); clearMainTip();
<<<<<<< HEAD
alertMessage.innerHTML = /* html */ `An error has occurred on map generation. Please retry. <br />If error is critical, clear the stored data and try again. alertMessage.innerHTML = /* html */ `An error has occurred on map generation. Please retry. <br />If error is critical, clear the stored data and try again.
=======
alertMessage.innerHTML = `An error has occurred on map generation. Please retry.
<br>If error is critical, clear the stored data and try again.
>>>>>>> ffb073fe (Update main.js (#722))
<p id="errorBox">${parsedError}</p>`; <p id="errorBox">${parsedError}</p>`;
$("#alert").dialog({ $("#alert").dialog({
resizable: false, resizable: false,

View file

@ -30,7 +30,6 @@ window.Religions = (function () {
const base = { const base = {
number: ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"], number: ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"],
being: [ being: [
<<<<<<< HEAD
"Ancestor", "Ancestor",
"Ancient", "Ancient",
"Brother", "Brother",
@ -72,43 +71,20 @@ window.Religions = (function () {
"Deity", "Deity",
"Creator", "Creator",
"Maker", "Maker",
"Overlord",
"Ruler",
"Chief",
"Master", "Master",
"Spirit",
"Ancestor",
"Father",
"Forebear",
"Forefather",
"Mother", "Mother",
"Brother",
"Sister",
"Elder",
"Numen", "Numen",
"Ancient", "Overlord",
"Virgin",
"Giver",
"Council",
"Guardian",
"Reaper" "Reaper"
"Ruler",
"Sister",
"Spirit",
"Virgin",
], ],
animal: [ animal: [
"Dragon",
"Wyvern",
"Phoenix",
"Unicorn",
"Sphinx",
"Centaur",
"Pegasus",
"Kraken",
"Basilisk",
"Chimera",
"Cyclope",
"Antelope", "Antelope",
"Ape", "Ape",
"Badger", "Badger",
>>>>>>> c6917a14 (religion gen fix)
"Bear", "Bear",
"Beaver", "Beaver",
"Bison", "Bison",
@ -134,12 +110,10 @@ window.Religions = (function () {
"Eagle", "Eagle",
"Elk", "Elk",
"Falcon", "Falcon",
=======
"Deer", "Deer",
"Dog", "Dog",
"Eagle", "Eagle",
"Elk", "Elk",
>>>>>>> c6917a14 (religion gen fix)
"Fox", "Fox",
"Goat", "Goat",
"Goose", "Goose",
@ -147,18 +121,12 @@ window.Religions = (function () {
"Hawk", "Hawk",
"Heron", "Heron",
"Horse", "Horse",
<<<<<<< HEAD
"Hound", "Hound",
=======
>>>>>>> c6917a14 (religion gen fix)
"Hyena", "Hyena",
"Ibis", "Ibis",
"Jackal", "Jackal",
"Jaguar", "Jaguar",
<<<<<<< HEAD
"Kraken", "Kraken",
=======
>>>>>>> c6917a14 (religion gen fix)
"Lark", "Lark",
"Leopard", "Leopard",
"Lion", "Lion",
@ -168,44 +136,34 @@ window.Religions = (function () {
"Mule", "Mule",
"Narwhal", "Narwhal",
"Owl", "Owl",
<<<<<<< HEAD
"Ox", "Ox",
"Panther", "Panther",
"Pegasus", "Pegasus",
"Phoenix", "Phoenix",
=======
"Panther", "Panther",
>>>>>>> c6917a14 (religion gen fix)
"Rat", "Rat",
"Raven", "Raven",
"Rook", "Rook",
"Scorpion", "Scorpion",
<<<<<<< HEAD
"Serpent", "Serpent",
"Shark", "Shark",
"Sheep", "Sheep",
"Snake", "Snake",
"Sphinx", "Sphinx",
=======
"Shark", "Shark",
"Sheep", "Sheep",
"Snake", "Snake",
>>>>>>> c6917a14 (religion gen fix)
"Spider", "Spider",
"Swan", "Swan",
"Tiger", "Tiger",
"Turtle", "Turtle",
<<<<<<< HEAD
"Unicorn", "Unicorn",
=======
>>>>>>> c6917a14 (religion gen fix)
"Viper", "Viper",
"Vulture", "Vulture",
"Walrus", "Walrus",
"Wolf", "Wolf",
"Wolverine", "Wolverine",
"Worm", "Worm",
<<<<<<< HEAD
"Wyvern" "Wyvern"
], ],
adjective: [ adjective: [
@ -380,153 +338,152 @@ window.Religions = (function () {
"Serpent" "Serpent"
], ],
adjective: [ adjective: [
"New",
"Good",
"High",
"Old",
"Great",
"Big",
"Young",
"Major",
"Strong",
"Happy",
"Last",
"Main",
"Huge",
"Far",
"Beautiful",
"Wild",
"Fair",
"Prime",
"Crazy",
"Ancient",
"Proud",
"Secret",
"Lucky",
"Sad",
"Silent",
"Latter",
"Severe",
"Fat",
"Holy",
"Pure",
"Aggressive", "Aggressive",
"Honest", "Almighty",
"Giant", "Ancient",
"Mad", "Beautiful",
"Pregnant", "Benevolent",
"Distant", "Big",
"Lost",
"Broken",
"Blind", "Blind",
"Friendly", "Blond",
"Unknown", "Bloody",
"Sleeping", "Brave",
"Slumbering", "Broken",
"Loud", "Brutal",
"Hungry", "Burning",
"Wise", "Calm",
"Worried", "Cheerful",
"Sacred", "Crazy",
"Magical", "Cruel",
"Superior",
"Patient",
"Dead", "Dead",
"Deadly", "Deadly",
"Peaceful",
"Grateful",
"Frozen",
"Evil",
"Scary",
"Burning",
"Divine",
"Bloody",
"Dying",
"Waking",
"Brutal",
"Unhappy",
"Calm",
"Cruel",
"Favorable",
"Blond",
"Explicit",
"Disturbing",
"Devastating", "Devastating",
"Brave", "Distant",
"Sunny", "Disturbing",
"Troubled", "Divine",
"Flying", "Dying",
"Sustainable",
"Marine",
"Fatal",
"Inherent",
"Selected",
"Naval",
"Cheerful",
"Almighty",
"Benevolent",
"Eternal", "Eternal",
"Evil",
"Explicit",
"Fair",
"Far",
"Fat",
"Fatal",
"Favorable",
"Flying",
"Friendly",
"Frozen",
"Giant",
"Good",
"Grateful",
"Great",
"Happy",
"High",
"Holy",
"Honest",
"Huge",
"Hungry",
"Immutable", "Immutable",
"Infallible" "Infallible"
"Inherent",
"Last",
"Latter",
"Lost",
"Loud",
"Lucky",
"Mad",
"Magical",
"Main",
"Major",
"Marine",
"Naval",
"New",
"Old",
"Patient",
"Peaceful",
"Pregnant",
"Prime",
"Proud",
"Pure",
"Sacred",
"Sad",
"Scary",
"Secret",
"Selected",
"Severe",
"Silent",
"Sleeping",
"Slumbering",
"Strong",
"Sunny",
"Superior",
"Sustainable",
"Troubled",
"Unhappy",
"Unknown",
"Waking",
"Wild",
"Wise",
"Worried",
"Young",
], ],
genitive: [ genitive: [
"Day",
"Life",
"Death",
"Night",
"Home",
"Fog",
"Snow",
"Winter",
"Summer",
"Cold", "Cold",
"Springs", "Day",
"Gates", "Death",
"Nature",
"Thunder",
"Lightning",
"War",
"Ice",
"Frost",
"Fire",
"Doom", "Doom",
"Fate", "Fate",
"Pain", "Fire",
"Fog",
"Frost",
"Gates",
"Heaven", "Heaven",
"Home",
"Ice",
"Justice", "Justice",
"Life",
"Light", "Light",
"Lightning",
"Love", "Love",
"Nature",
"Night",
"Pain",
"Snow",
"Springs",
"Summer",
"Thunder",
"Time", "Time",
"Victory" "Victory"
"War",
"Winter",
], ],
theGenitive: [ theGenitive: [
"World",
"Word",
"South",
"West",
"North",
"East",
"Sun",
"Moon",
"Peak",
"Fall",
"Dawn",
"Eclipse",
"Abyss", "Abyss",
"Blood", "Blood",
"Tree", "Dawn",
"Earth", "Earth",
"East",
"Eclipse",
"Fall",
"Harvest", "Harvest",
"Moon",
"North",
"Peak",
"Rainbow", "Rainbow",
"Sea", "Sea",
"Sky", "Sky",
"South",
"Stars", "Stars",
"Storm", "Storm",
"Sun",
"Tree",
"Underworld", "Underworld",
"West",
"Wild" "Wild"
"Word",
"World",
], ],
color: ["Dark", "Light", "Bright", "Golden", "White", "Black", "Red", "Pink", "Purple", "Blue", "Green", "Yellow", "Amber", "Orange", "Brown", "Grey"] color: ["Dark", "Light", "Bright", "Golden", "White", "Black", "Red", "Pink", "Purple", "Blue", "Green", "Yellow", "Amber", "Orange", "Brown", "Grey"]
>>>>>>> c6917a14 (religion gen fix)
}; };
const forms = { const forms = {