Skip to content
Snippets Groups Projects
Commit 63fe0ae3 authored by Skriv's avatar Skriv
Browse files

minor cleaning

parent d44ad4e4
No related branches found
No related tags found
No related merge requests found
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ function minorInjuryResponse(slave) {
const arcology = State.variables.arcologies[0];
const arcologyUpgrade = State.variables.arcologyUpgrade;
let pronouns = getPronouns(slave);
const pronouns = getPronouns(slave);
const he = pronouns.pronoun;
const himself = pronouns.objectReflexive;
const He = capFirstChar(he);
let r = "";
if (arcology.FSDegradationist > 20) {
r += ` ${He} carries on, knowing that in your degradationist arcology, this is accepted behavior.`;
} else if (arcology.FSPaternalist > 20) {
if (arcologyUpgrade.drones === 1 && jsRandom(1, 100) > 50) {
r += ` The security drones successfully detain him and oblige him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`;
r += " The security drones successfully detain him and oblige him to pay significant <span class=\"yellowgreen\">compensation,</span> since abusing slaves is discouraged here.";
cashX(50, "slaveUpkeep", slave);
} else if (arcologyUpgrade.grid === 1 && jsRandom(1, 100) > 50) {
r += ` The computer systems successfully detain him and require him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`;
r += " The computer systems successfully detain him and require him to pay significant <span class=\"yellowgreen\">compensation,</span> since abusing slaves is discouraged here.";
cashX(50, "slaveUpkeep", slave);
} else if (slave.whoreSkill > jsRandom(1, 100)) {
r += ` ${slave.slaveName} is used to this sort of thing, and convinces him to pay significant <span class="yellowgreen">compensation,</span> since abusing slaves is discouraged here.`;
......@@ -27,10 +26,10 @@ window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ functio
}
} else {
if (arcologyUpgrade.drones === 1 && jsRandom(1, 100) > 50) {
r += ` The security drones successfully detain him and oblige him to pay minor <span class="yellowgreen">compensation.</span>`;
r += " The security drones successfully detain him and oblige him to pay minor <span class=\"yellowgreen\">compensation.</span>";
cashX(10, "slaveUpkeep", slave);
} else if (arcologyUpgrade.grid === 1 && jsRandom(1, 100) > 50) {
r += ` The computer systems successfully detain him and require him to pay minor <span class="yellowgreen">compensation.</span>`;
r += " The computer systems successfully detain him and require him to pay minor <span class=\"yellowgreen\">compensation.</span>";
cashX(10, "slaveUpkeep", slave);
} else if (slave.whoreSkill > jsRandom(1, 100)) {
r += ` ${slave.slaveName} is used to this sort of thing, and convinces him to pay minor <span class="yellowgreen">compensation.</span>`;
......@@ -40,6 +39,6 @@ window.minorInjuryResponse = /** @param {App.Entity.SlaveState} slave */ functio
cashX(10, "slaveUpkeep", slave);
}
}
return r;
}
};
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