forked from Mirrors/openclonk
31 lines
548 B
C
31 lines
548 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 0;
|
|
}
|
|
|
|
public func ObjectControl(int plr, int ctrl)
|
|
{
|
|
if(IsThrowControl(ctrl))
|
|
return;
|
|
if(IsDropControl(ctrl))
|
|
return;
|
|
|
|
return _inherited(plr, ctrl, ...);
|
|
}
|
|
|
|
// no extra interactions in this scenario. like dropping carry-heavy objects. :(
|
|
public func GetExtraInteractions()
|
|
{
|
|
return nil;
|
|
} |