Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Promote underranked engineers #114

Open
Jian-Wuyou opened this issue Jul 9, 2022 · 2 comments
Open

Promote underranked engineers #114

Jian-Wuyou opened this issue Jul 9, 2022 · 2 comments
Labels
prio:accepted Tickets under active consideration for implementation type:feature Completely new behavior

Comments

@Jian-Wuyou
Copy link

Jian-Wuyou commented Jul 9, 2022

If an engineer is crafting, for example, steel (which has an optimal rank of 2), and they are of a lower rank, then attempt to promote them to the proper rank.

Code I've manually been pasting onto the console for this:

game.village.sim.kittens.filter(kitten => kitten.job == "engineer").forEach(
    kitten => game.village.sim.promote(
        kitten,
        game.workshop.getCraft(kitten.engineerSpeciality).tier
    )
)

Edit to account for engineers not working on anything:

game.village.sim.kittens.filter(kitten => kitten.job == "engineer").forEach(
    kitten => {
        var resource = kitten.engineerSpeciality;
        var tier = resource == null ? -1 : game.workshop.getCraft(resource).tier;
        game.village.sim.promote(kitten, tier);
    }
)
@oliversalzburg oliversalzburg added prio:accepted Tickets under active consideration for implementation type:feature Completely new behavior labels Jul 11, 2022
@oliversalzburg
Copy link
Owner

That sounds like a reasonable addition and thanks for already providing the code! It'll take some time before I would be able to integrate this though.

I'm wondering though, what's the point of using Engineers if you can already automate crafting?

@Jian-Wuyou
Copy link
Author

Jian-Wuyou commented Jul 11, 2022

I'm wondering though, what's the point of using Engineers if you can already automate crafting?

Personally, I've been using Engineers for offline progression stuff.
idk if Engineers also craft when you shatter TCs (since I have not reached that stage of the game yet)

In any case, using Promote Kittens button is just annoying since it promotes kittens indiscriminately (wasted player time having to wait for the gold to build up again) and by at most one rank at a time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
prio:accepted Tickets under active consideration for implementation type:feature Completely new behavior
Projects
None yet
Development

No branches or pull requests

2 participants