DeletedUser
Guest
- Author
- cheesasaurus
- Contributors
- N/A
- Quickbar Entry
-
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) || $.getScript('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new Date())/3e5),{cache:1,dataType:"script"});void 0;
- Public?
- Public
Use this at the scavenging screen.
What it does
Recommended usage
Hotkey it in your quickbar (e.g. the 2 key). Go to your first village.
1) Run the script. (Press 2)
2) Start scavenging with all wanted options. (Press enter four times) You must wait for each used option to successfully start before proceeding to the next
3) Switch to next village (Press d)
repeat for all villages
Distributable
It's suboptimal, but if you want everything in one file, here it is:
https://cheesasaurus.github.io/twcheese/dist/tool/ASS.js
Contributing
Bugfixes & maintenance are welcome.
https://github.com/cheesasaurus/twcheese/tree/develop/docs/developer
Fork it, make your changes, then submit a pull request.
If the tests don't pass: either fix your "fix", or update the tests.
Known issues
There are some edge cases with troop order that I'm not sure how best to handle.
Currently it prioritizes closeness to the target runtime a little more than troop order.
E.g. if you want spears sent before swords, it'll get as close as it can with spears. But it can sometimes chuck in a lone sword since swords have lower haul than spears which allows getting closer to the target runtime.
I don't think it really matters either way, but if somebody has a compelling argument I'll change it.
Troop assignment is all handled by this module:
https://github.com/cheesasaurus/twcheese/blob/master/src/Models/ScavengeTroopsAssigner.js
Code:
javascript: (window.TwCheese && TwCheese.tryUseTool('ASS')) || $.ajax('https://cheesasaurus.github.io/twcheese/launch/ASS.js?' +~~((new Date())/3e5),{cache:1,dataType:"script"});void 0;
What it does
- Fills in troops to scavenge
- Focuses the start button of the option your troops are intended to be used for
Recommended usage
Hotkey it in your quickbar (e.g. the 2 key). Go to your first village.
1) Run the script. (Press 2)
2) Start scavenging with all wanted options. (Press enter four times) You must wait for each used option to successfully start before proceeding to the next
3) Switch to next village (Press d)
repeat for all villages
Distributable
It's suboptimal, but if you want everything in one file, here it is:
https://cheesasaurus.github.io/twcheese/dist/tool/ASS.js
Contributing
Bugfixes & maintenance are welcome.
https://github.com/cheesasaurus/twcheese/tree/develop/docs/developer
Fork it, make your changes, then submit a pull request.
If the tests don't pass: either fix your "fix", or update the tests.
Known issues
There are some edge cases with troop order that I'm not sure how best to handle.
Currently it prioritizes closeness to the target runtime a little more than troop order.
E.g. if you want spears sent before swords, it'll get as close as it can with spears. But it can sometimes chuck in a lone sword since swords have lower haul than spears which allows getting closer to the target runtime.
I don't think it really matters either way, but if somebody has a compelling argument I'll change it.
Troop assignment is all handled by this module:
https://github.com/cheesasaurus/twcheese/blob/master/src/Models/ScavengeTroopsAssigner.js
Last edited by a moderator:
Upvote
3