Slimmmo.github.io
Slimmmo.github.io copied to clipboard
Collapsing several similar recommendations
If there are multiple recommendations one after another for the same production item (lemonade stand, newspaper, etc.), such as "Moon Shoe: 2" and then (directly afterwards), "Moon Shoe: 10", it would probably be a good idea to collapse it into a single "Moon Shoe: 10" value.
Example: http://puu.sh/kcoyb/747aa71ef9.png Could become: http://puu.sh/kcoI8/6edb22859a.png
Similarly, if (when you apply a recommendation), another recommendation for the same stand would appear right after it, it would be a good idea to simply calculate the value of the highest upgrade for the item which would still have the highest upgrade score.
Instead of, upon clicking "Apply this row", the 'To' number incrementing by one: http://puu.sh/kcoR3/14eb6cb1c5.png → http://puu.sh/kcoSc/1ca9fc9dd4.png → http://puu.sh/kcoTa/ead10dbdaa.png Like suggested earlier, collapsing it into: http://puu.sh/kcpAG/7197139ca5.png (with the values calculated, though) Or at least collapsing the top value, like such: http://puu.sh/kcpLE/fd183387de.png
Unfortunately, I'm not sure how easy this would be to implement - it seems as though you're currently checking +1, +10, and up to the next multiplier value; perhaps you could use a while loop to find the top continuous value and just perform it on the first instance of each suggested upgrade, so if you have "Moon Shoe: 12" at one point, and later on "Moon Shoe: 21", it only checks for "Moon Shoe: 12" (and gives a suggestion of like "Moon Shoe: 14", if applicable), and not "Moon Shoe: 21" (which would otherwise become "Moon Shoe: 22" or something). Or, if that's still too bad, just collapsing the top value. Hopefully it will be doable, though I can see it being difficult.
Unfortunately the upgrade score will steadily decline from it's highest at +1 all the way to the next level that unlocks a multiplier; so finding the highest value will always return +1 unless the multiplier is close.
A better way would be to finding the highest level that's higher than the next highest recommendation. That would fix the +1, +10 and +100 being in a row. However, there could still be that collapsed value and then the next multiplier level right next to it if the multiplier level comes first. Collapsing those two wouldn't be too hard though, just check side by side recommendations for the same business and keep the highest level.
However, all of this is adding a lot of complexity, both logically and computationally, for a purely aesthetic change. Personally, I don't think it's worth it.
Ok! I just find it annoying with the thing where it recommends upgrading it by 1 to level... like, level 11, and then you say you've done that, and it suggests 12, then 13, for about 14, then goes on to suggest other upgrades.
It doesn't happen all the time, and I usually resolve it by telling it I've already bought something until it shows me the highest value, but it could be useful. Not necessary, of course, and I would have expected it to add complexity, but oh well.
Feel free to close this.
If you code it up I'll happily look at it and see how it is.