garbage-collector
garbage-collector copied to clipboard
[micro-optimization] place the shortest digitize first
in the current logic, garbo tends to make the last digitize of the day the shortest one due to how the untangle/chunking works and how garbo determines whether it should or should not digitize. (it is sometimes actually much, much shorter than the first two due to some of the approximations used for thumb ring, which is a slightly separate issue, but not the end of the world.)
if you have kremlin's greatest briefcase, it likely would be better for the end-user to make the shortest digitize of the day your -first- digitize, because then you are getting the maximal number of embezzlers in during the KGB buff duration, as well as any limited buffs that were cost-effective in your first X turns with high embezzler concentration and not so much in your next Y turns. i have a headache and cannot figure out exactly how you would patch this so the garbo logic understands this immutable truth, but it is located in some combination of the two functions linked below and would be a (likely) relatively simple PR for someone in order to actualize, i dunno, maybe 1-2k of gain?
https://github.com/loathers/garbage-collector/blob/4dca85dc1c41838203219befa8811a4708bc5eb2/src/turns.ts#L92 https://github.com/loathers/garbage-collector/blob/4dca85dc1c41838203219befa8811a4708bc5eb2/src/combat.ts#L147