openclonk/planet/BackToTheRocks.c4f/Boomrace.ocs/System.ocg/Clonk.c

16 lines
256 B
C

// The clonk can only hold one item and only collect boompacks.
#appendto Clonk
protected func RejectCollect(id objid, object obj)
{
if (objid != Boompack)
return true;
return _inherited(objid, obj);
}
public func MaxContentsCount()
{
return 1;
}