Skip to content
Snippets Groups Projects
Commit 75a80bfa authored by Blank_Alt's avatar Blank_Alt Committed by Pregmodder
Browse files

Encyclopedia Slave Leadership

parent 6a048de1
No related branches found
No related tags found
1 merge request!10946Encyclopedia Slave Leadership
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
......@@ -10,11 +10,11 @@ App.Encyclopedia.Dialog = (function() {
/** Create a link to an encyclopedia dialog for a given article with the given text
* @param {string} text Text for link
* @param {string} article Encyclopedia article to link to
* @param {string} [article] Encyclopedia article to link to (if not supplied defaults to capFirstChar version of text)
* @param {string} [classNames] CSS Class to add to the link
* @returns {HTMLElement} DOM link element
*/
function makeLinkDOM(text, article, classNames) {
function makeLinkDOM(text, article = capFirstChar(text), classNames) {
const link = App.UI.DOM.link(text, () => showArticleInDialog(article));
if (!classNames) {
return link;
......@@ -44,6 +44,5 @@ App.Encyclopedia.Dialog = (function() {
return {
linkSC: makeLinkSC,
linkDOM: makeLinkDOM,
showArticleInDialog: showArticleInDialog
};
})();
......@@ -16,23 +16,6 @@
/**********
SLAVE LEADERS:
**********/
<<case "Attendant" "Bodyguard" "Career Experience" "Concubine" "DJ" "Farmer" "Head Girl" "Leadership Positions" "Madam" "Matron" "Milkmaid" "Nurse" "Recruiter" "Schoolteacher" "Stewardess" "Wardeness">>
<<= App.Encyclopedia.Dialog.linkSC("Leadership Positions", "Leadership Positions")>>
| <<= App.Encyclopedia.Dialog.linkSC("Career Experience", "Career Experience")>>
| <<= App.Encyclopedia.Dialog.linkSC("Attendant", "Attendant")>>
| <<= App.Encyclopedia.Dialog.linkSC("Bodyguard", "Bodyguard")>>
| <<= App.Encyclopedia.Dialog.linkSC("Concubine", "Concubine")>>
| <<= App.Encyclopedia.Dialog.linkSC("DJ", "DJ")>>
| <<= App.Encyclopedia.Dialog.linkSC("Farmer", "Farmer")>>
| <<= App.Encyclopedia.Dialog.linkSC("Head Girl", "Head Girl")>>
| <<= App.Encyclopedia.Dialog.linkSC("Madam", "Madam")>>
| <<= App.Encyclopedia.Dialog.linkSC("Matron", "Matron")>>
| <<= App.Encyclopedia.Dialog.linkSC("Milkmaid", "Milkmaid")>>
| <<= App.Encyclopedia.Dialog.linkSC("Nurse", "Nurse")>>
| <<= App.Encyclopedia.Dialog.linkSC("Recruiter", "Recruiter")>>
| <<= App.Encyclopedia.Dialog.linkSC("Schoolteacher", "Schoolteacher")>>
| <<= App.Encyclopedia.Dialog.linkSC("Stewardess", "Stewardess")>>
| <<= App.Encyclopedia.Dialog.linkSC("Wardeness", "Wardeness")>>
/**********
SLAVE SKILLS
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment