MaPaul1977 / KittensGame

Kittens Game Scripts
28 stars 22 forks source link

Rework autotrade algorithm #15

Closed macdjord closed 2 years ago

macdjord commented 6 years ago
macdjord commented 6 years ago
macdjord commented 6 years ago

Additional changes:

macdjord commented 6 years ago

Additional changes:

eliliam commented 2 years ago

It's been a while, but this would be so welcome, @MaPaul1977 what do we need to do to get this merged?

macdjord commented 2 years ago

Wow, this is a blast from the past.

FYI, I think I've spotted a bug on https://github.com/macdjord/KittensGame/blob/TradeImprovement/ScriptKitties.js#L849 - it should be looking at the minimum of iron and coal, not iron and iron again. But it's been too long to be sure that wasn't deliberate for some obscure reason, and I no longer play KittensGame so I can't test it.

macdjord commented 2 years ago

@eliliam Note that I have another PR, #16, which includes all the changes from this one plus some more.

MaPaul1977 commented 2 years ago

Woah. I forgot I wrote this. Look like there are no conflicts. Consider it merged.

MaPaul1977 commented 2 years ago

Let me know when PR 16 is up and I'll merge it too. Only 15 was available.