eternaldensity / Sandcastle-Builder

xkcd: 1190: Time: The Game
Other
79 stars 65 forks source link

fix a couple issues with exit through the abattoir #1504

Closed dfriedenbach closed 6 years ago

dfriedenbach commented 6 years ago

The Abattoir multiplier is currently being applied even when the shadow dragon is greedy or when it runs with 0 logicats, which can happen via Shadow Coda. In the 0 logicats case, this results in mustard bonemeal if the Abattoir multiplier is infinite.

Checking for n > 1 fixes both these issues, but I felt it was sensible to also return early if there are no logicats since it shouldn't be running anyways.

eternaldensity commented 6 years ago

thanks