Skip to content
Snippets Groups Projects
Commit cfbb3ef6 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

index fix

parent e8b537fc
No related branches found
No related tags found
No related merge requests found
......@@ -116,9 +116,9 @@ App.EndWeek.spaReport = function() {
slave.behavioralFlaw = either("hates men", "odd");
slave.fetish = "none";
slave.fetishKnown = 1;
const spr = V.genePool.findIndex(function(s) { return s.ID === slave.ID; });
if (V.genePool[spr].intelligence >= -95) {
slave.intelligence = V.genePool[spr].intelligence - 30;
const gp = V.genePool.find(s => s.ID === slave.ID);
if (gp.intelligence >= -95) {
slave.intelligence = gp.intelligence - 30;
}
if (V.arcologies[0].FSPaternalist !== "unset" && V.arcologies[0].FSPaternalist > 0) {
curedArray.push(`Society <span class="green">strongly approves</span> of${slave.slaveName} being restored to sanity, which advances ideals about enlightened slaveownership.`);
......
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