Not logged inOpenClonk Forum
Up Topic Minor improvements

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 Sven2
Looks good. But I would move this function to the flagpole:

// Interface for custom buy conditions
public func AllowBuyMenuEntries(){ return !ObjectCount(Find_ID(Rule_BuyAtFlagpole));}


and keep it as a simple "return true" in the vendor library. So we can have a dedicated market building in the future and just keep the rule for some special scenarios where this is not feasible (e.g. quick base melees where you want to combine both structures). Then the market could be a "high tier" building requiring advanced stuff like cloth to build.

Also remember to call indirectly (this->AllowBuyMenuEntries() instead of AllowBuyMenuEntries()) to allow runtime overloads.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill