Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trap Trimps: minTraps not respected in gather.js #175

Open
Patashu opened this issue Jul 4, 2018 · 0 comments
Open

Trap Trimps: minTraps not respected in gather.js #175

Patashu opened this issue Jul 4, 2018 · 0 comments

Comments

@Patashu
Copy link

Patashu commented Jul 4, 2018

At the top of father.js we have:

MODULES["gather"].minTraps = 100;

Which is used in two other places. But the other place you'd expect this to be used, instead 100 is hard-coded:

 if (game.buildings.Trap.owned < 100 && canAffordBuilding('Trap')) {

Instead it should be:

 if (game.buildings.Trap.owned < MODULES["gather"].minTraps && canAffordBuilding('Trap')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant