loathers / yorick

4 stars 8 forks source link

melodramedary support #49

Closed docrostov closed 2 years ago

docrostov commented 2 years ago

resolves #28

image

here i used a method that is (probably) overkill for the camel tile in particular but i wanted to propose as a possible way to do recommendation-based logic on some of the more complicated recommendation tiles we'll have coming up. basically, i made a class that is a relatively sparse class, but can be iterated through to select accessible recommendations out of a universe of possible options.

once we have tooltip support, the class can organize/format the data in each entry into a formatted tooltip that it passes to the <Line> after the quick recommendation iterator ensures access before adding it to our reccs. there are a few small oddities here but it is maybe an OK starting point? please take a look and tell me what y'all think 🙂