Skip to content
Snippets Groups Projects
Commit 87cc7bb5 authored by vas's avatar vas
Browse files

fix missing servant quarters, bad checkbox initialisation

parent 2cc51f5e
No related branches found
No related tags found
1 merge request!2195another batch of RA fixes
...@@ -286,9 +286,6 @@ window.DefaultRules = (function() { ...@@ -286,9 +286,6 @@ window.DefaultRules = (function() {
case "work as a servant": case "work as a servant":
r += `<br>${slave.slaveName} has been automatically assigned to work in ${V.servantsQuartersName}.`; r += `<br>${slave.slaveName} has been automatically assigned to work in ${V.servantsQuartersName}.`;
break; break;
case "work as a servant":
r += `<br>${slave.slaveName} has been automatically assigned to work in ${V.servantsQuartersName}.`;
break;
case "learn in the schoolroom": case "learn in the schoolroom":
r += `<br>${slave.slaveName} has been automatically assigned to study in ${V.schoolroomName}.`; r += `<br>${slave.slaveName} has been automatically assigned to study in ${V.schoolroomName}.`;
break; break;
......
...@@ -773,14 +773,14 @@ window.rulesAssistantOptions = (function() { ...@@ -773,14 +773,14 @@ window.rulesAssistantOptions = (function() {
if (V.club > 0) items.push("Club"); if (V.club > 0) items.push("Club");
if (V.arcade > 0) items.push("Arcade"); if (V.arcade > 0) items.push("Arcade");
if (V.dairy > 0) items.push("Dairy"); if (V.dairy > 0) items.push("Dairy");
if (V.servantQuarters > 0) items.push("Servant Quarters"); if (V.servantsQuarters > 0) items.push("Servant Quarters");
if (V.masterSuite > 0) items.push("Master Suite"); if (V.masterSuite > 0) items.push("Master Suite");
if (V.schoolroom > 0) items.push("Schoolroom"); if (V.schoolroom > 0) items.push("Schoolroom");
if (V.spa > 0) items.push("Spa"); if (V.spa > 0) items.push("Spa");
if (V.clinic > 0) items.push("Clinic"); if (V.clinic > 0) items.push("Clinic");
if (V.cellblock > 0) items.push("Cellblock"); if (V.cellblock > 0) items.push("Cellblock");
items.forEach( items.forEach(
i => this.appendChild(new ButtonItem(i, this.getAttribute(i), current_rule.condition.assignment.includes(i)))); i => this.appendChild(new ButtonItem(i, this.getAttribute(i), current_rule.condition.assignment.includes(this.getAttribute(i)))));
} }
onchange() { onchange() {
......
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