From c70c914eefbc525892b9c9f1ebe6a01060980772 Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Sun, 23 Sep 2018 19:06:06 -0700 Subject: [PATCH] Nursery stuff --- src/js/DefaultRules.tw | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/js/DefaultRules.tw b/src/js/DefaultRules.tw index 9c8e822f156..6002c389cd7 100644 --- a/src/js/DefaultRules.tw +++ b/src/js/DefaultRules.tw @@ -128,6 +128,15 @@ window.DefaultRules = (function() { } break; + case "work as a nanny": + if ((V.nurserySlaves < V.nursery) && (slave.health < 20) || (slave.trust < 60) || (slave.devotion <= 60) || (slave.fetish == "mindbroken") && (slave.devotion >= -20)) + break; + else { + RAFacilityRemove(slave, rule); // before deleting rule.setAssignment + delete rule.setAssignment; + } + break; + case "work in the brothel": if ((V.brothelSlaves < V.brothel && (slave.devotion > 50 || slave.trust > 50 || slave.trust < -50 || (slave.devotion >= -50 && slave.trust < -20)) && (slave.breedingMark != 1 || V.propOutcome === 0))) break; @@ -281,6 +290,9 @@ window.DefaultRules = (function() { case "rest in the spa": r += `<br>${slave.slaveName} has been automatically assigned to rest in ${V.spaName}.`; break; + case "work as a nanny": + r += `<br>${slave.slaveName} has been automatically assigned to work in ${V.nurseryName}.`; + break; case "work in the brothel": r += `<br>${slave.slaveName} has been automatically assigned to work in ${V.brothelName}.`; break; -- GitLab