Skip to content

Commit

Permalink
Merge pull request #47 from SilenceFactor/relations-bugfix
Browse files Browse the repository at this point in the history
Spider Chemist bug fix
Brent-Call authored Mar 21, 2024
2 parents 7e9d341 + f610eb5 commit 41e97c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/science.js
Original file line number Diff line number Diff line change
@@ -1675,11 +1675,11 @@ dojo.declare("classes.managers.ScienceManager", com.nuclearunicorn.core.TabManag
for (var i = 0; i < spiders.sells.length; i++) {
var sell = spiders.sells[i]["name"];
sells.push(sell);
if(!spiderRelations && sell == "kerosene"){
if(sell == "kerosene"){
spiders.sells.splice(i); //Remove kerosene on load
}
}
if(spiderRelations && !spiders.sells.includes("kerosene")) {
if(spiderRelations) {
spiders.sells.push({name: "kerosene", value: 5, chance: 0.1, width: 0.1, minLevel: 10});
}
}

0 comments on commit 41e97c9

Please sign in to comment.