mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-05 18:31:59 +01:00
b3ce8f52f5
Implement ability to complete challenge multiple times at once. To do it, I split everything in checking/removing/rewarding steps. In checking step, it calculates if it is possible to complete with minimal requirements and then calculates maximal repeating factor. In removing step, it removes everything that is necessary. In rewarding step, it give rewards by necessary factor (multilayer). I rework item/block/entity removing as factors may be influenced at the last element, so I improve everything by memory usage. Create necessary sets/lists/queues for faster access to already collected items. |
||
---|---|---|
.. | ||
object |