Not logged inOpenClonk Forum
Up Topic Liquid container branch

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Marky
Something else: At the moment I am struggling with the fact that the stacks can contain any amount of items, but the barrel has an upper limit for the contained amount.
At first I overloaded MaxStackCount() in the liquid object, so that it regards the liquid container capacity. This still lets the object enter an empty liquid container with the capacity exceeded (i.e. put a stack 500 water into a barrel, the barrel should contain a stack with 300 water and the other water should be reduced to 200 -> now the 500 water simply enter the barrel).
Is it ok if I implement this in the stackable library right away, because it could also be a use case in other objects (infinite arrow dispenser or whatever?)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill