Skip to content

Commit

Permalink
Trait gaining fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plasma4 committed Aug 1, 2024
1 parent 4158cba commit fb0c31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magix.js
Original file line number Diff line number Diff line change
Expand Up @@ -1771,8 +1771,8 @@ if (getObj("civ") != "1") {
}
}

if (G.has('belief in the afterlife') && G.traitByName['belief in the afterlife'].yearOfObtainment > 100 && G.testCost('culture of the afterlife', 1)) G.gainTrait(G.traitByName['culture of the afterlife']);
if (G.has('belief in the beforelife') && G.traitByName['belief in the beforelife'].yearOfObtainment > 100 && G.testCost('culture of the beforelife', 1)) G.gainTrait(G.traitByName['culture of the beforelife']);
if (G.has('belief in the afterlife') && G.traitByName['belief in the afterlife'].yearOfObtainment > 100 && !G.has('culture of the afterlife') && G.testCost('culture of the afterlife', 1)) G.gainTrait(G.traitByName['culture of the afterlife']);
if (G.has('belief in the beforelife') && G.traitByName['belief in the beforelife'].yearOfObtainment > 100 && !G.has('culture of the beforelife') && G.testCost('culture of the beforelife', 1)) G.gainTrait(G.traitByName['culture of the beforelife']);

if (G.has("t5") && G.year > 0) {
G.fruitReq = parseInt((G.achievByName['unfishy'].won == 0 ? 1 : (0.8 + G.achievByName['unfishy'].won * 0.4)) * Math.pow((G.year - 1) * 0.6, 1.06) * G.getRes('population').amount * 3 + 1);
Expand Down

0 comments on commit fb0c31c

Please sign in to comment.