mindstorm8191 / danidle

Factory Idle style game, that doesn't yet have a name. Combine basic resources to get more advanced resources, and climb up the tech ladder
4 stars 0 forks source link

Todo: Allow multiple requirements to unlock certain blocks #21

Open mindstorm8191 opened 6 years ago

mindstorm8191 commented 6 years ago

With the addition of the butcher shop, we now have a block that has two unlocking requirements: one, to have flint knives, and the other is to have wood-point spears and be hunting. Both of these are not related to each other, but the butcher shop requires both.

We need to update the panel class to allow multiple requirement fields to be included in them. We also need to track what aspects of a given panel have been unlocked already, since we will only run findunlocks() on one item at a time. Perhaps when requirements are met, they can be removed from the list for a given panel; when there are none left, the panel becomes unlocked.