Skip to content
Snippets Groups Projects
Commit 2ec43c90 authored by brickode's avatar brickode
Browse files

Nursery stuff

parent b1f45d05
No related branches found
No related tags found
No related merge requests found
...@@ -204,8 +204,29 @@ window.assignJob = function assignJob(slave, job) { ...@@ -204,8 +204,29 @@ window.assignJob = function assignJob(slave, job) {
break; break;
} }
break; break;
case "work as a nanny":
case "nursery":
slave.assignment = "work as a nanny";
slave.assignmentVisible = 0;
V.nurserySlaves++;
V.NurseryiIDs.push(slave.ID);
switch (V.nurseryDecoration) {
case "Chattel Religionist":
case "Chinese Revivalist":
slave.livingRules = "normal";
break;
case "Degradationist":
slave.livingRules = "spare";
break;
default:
slave.livingRules = "luxurious";
break;
}
break;
case "be the attendant": case "be the attendant":
case "be the matron":
case "be the dj": case "be the dj":
case "be the madam": case "be the madam":
case "be the milkmaid": case "be the milkmaid":
...@@ -315,6 +336,8 @@ window.removeJob = function removeJob(slave, assignment) { ...@@ -315,6 +336,8 @@ window.removeJob = function removeJob(slave, assignment) {
V.Schoolteacher = 0; V.Schoolteacher = 0;
if (V.Attendant !== 0 && slave.ID === V.Attendant.ID) if (V.Attendant !== 0 && slave.ID === V.Attendant.ID)
V.Attendant = 0; V.Attendant = 0;
if (V.Matron !== 0 && slave.ID === V.Matron.ID)
V.Matron = 0;
if (V.Nurse !== 0 && slave.ID === V.Nurse.ID) if (V.Nurse !== 0 && slave.ID === V.Nurse.ID)
V.Nurse = 0; V.Nurse = 0;
if (V.Stewardess !== 0 && slave.ID === V.Stewardess.ID) if (V.Stewardess !== 0 && slave.ID === V.Stewardess.ID)
......
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