diff --git a/src/endWeek/saBeYourHeadGirl.js b/src/endWeek/saBeYourHeadGirl.js index 9dbb04fd7786853e5b7b712e627ad13597bba9ed..6911f7829b4a50e4f15ce8b2d4e2acaa32641531 100644 --- a/src/endWeek/saBeYourHeadGirl.js +++ b/src/endWeek/saBeYourHeadGirl.js @@ -66,65 +66,67 @@ window.saBeYourHeadGirl = (function saBeYourHeadGirl() { slave.devotion += 1; slave.trust += 1; saPleaseYou(slave); - if (slave.relationship > 4 && slave.relationshipTarget === V.Concubine.ID) { - if (areRelated(V.Concubine, slave)) { - const concubinePronouns = getPronouns(V.Concubine); - if (V.Concubine.mother === slave.ID || V.Concubine.father === slave.ID) { - r.push(`Your Concubine is your Consort's ${concubinePronouns.daughter}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - } else if (slave.mother === V.Concubine.ID) { - r.push(`Your Concubine is your Consort's mother-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - } else if (slave.father === V.Concubine.ID) { - r.push(`Your Concubine is your Consort's father-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - } else { - switch (areSisters(slave, V.Concubine)) { - case 1: - r.push(`Your Concubine is your Consort's twin-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - break; - case 2: - r.push(`Your Concubine is your Consort's ${concubinePronouns.sister}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - break; - case 3: - r.push(`Your Concubine is your Consort's half-${concubinePronouns.sister}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); - repX(1000, "headGirl", slave); - break; - default: - r.push(`<span style="bold">Shit went wrong! Post this in a bug report!</span> This is <span class="red">NOT as it should be.</span>`); - repX(500, "headGirl", slave); + if (slave.relationship > 4) { + if (slave.relationshipTarget === V.Concubine.ID) { + if (areRelated(V.Concubine, slave)) { + const concubinePronouns = getPronouns(V.Concubine); + if (V.Concubine.mother === slave.ID || V.Concubine.father === slave.ID) { + r.push(`Your Concubine is your Consort's ${concubinePronouns.daughter}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + } else if (slave.mother === V.Concubine.ID) { + r.push(`Your Concubine is your Consort's mother-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + } else if (slave.father === V.Concubine.ID) { + r.push(`Your Concubine is your Consort's father-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + } else { + switch (areSisters(slave, V.Concubine)) { + case 1: + r.push(`Your Concubine is your Consort's twin-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + break; + case 2: + r.push(`Your Concubine is your Consort's ${concubinePronouns.sister}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + break; + case 3: + r.push(`Your Concubine is your Consort's half-${concubinePronouns.sister}-${concubinePronouns.wife}. Truly, ${arcology.name} looks up to you <span class="green">as children to a father.</span>`); + repX(1000, "headGirl", slave); + break; + default: + r.push(`<span style="bold">Shit went wrong! Post this in a bug report!</span> This is <span class="red">NOT as it should be.</span>`); + repX(500, "headGirl", slave); + } } } - } - } else { - if (totalRelatives(slave) > 0) { - let relation = getSlave(slave.relationshipTarget); - const relationPronouns = getPronouns(relation); - if (relation.mother === slave.ID || relation.father === slave.ID) { - r.push(`Your Consort has a ${relationPronouns.daughter}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - } else if (slave.mother === relation.ID) { - r.push(`Your Consort has a mother-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - } else if (slave.father === relation.ID) { - r.push(`Your Consort has a father-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - } else { - switch (areSisters(slave, relation)) { - case 1: - r.push(`Your Consort has a twin-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - break; - case 2: - r.push(`Your Consort has a ${relationPronouns.sister}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - break; - case 3: - r.push(`Your Consort has a half-${relationPronouns.sister}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); - repX(500, "headGirl", slave); - break; + } else { + if (totalRelatives(slave) > 0) { + let relation = getSlave(slave.relationshipTarget); + const relationPronouns = getPronouns(relation); + if (relation.mother === slave.ID || relation.father === slave.ID) { + r.push(`Your Consort has a ${relationPronouns.daughter}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + } else if (slave.mother === relation.ID) { + r.push(`Your Consort has a mother-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + } else if (slave.father === relation.ID) { + r.push(`Your Consort has a father-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + } else { + switch (areSisters(slave, relation)) { + case 1: + r.push(`Your Consort has a twin-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + break; + case 2: + r.push(`Your Consort has a ${relationPronouns.sister}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + break; + case 3: + r.push(`Your Consort has a half-${relationPronouns.sister}-${relationPronouns.wife}. This is <span class="green">as it should be.</span>`); + repX(500, "headGirl", slave); + break; + } } } }