Liquid objects: Enter liquid containers only

liquid_container
Mark 2016-02-16 18:14:54 +01:00
parent 9b17e41900
commit 1cf04d24c5
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,14 @@ protected func Construction()
SetStackCount(1); // not max stack!
}
protected func RejectEntrance(object into)
{
// enter liquid containers only
if (!into->~IsLiquidContainer()) return true;
return _inherited(into, ...);
}
// 10 liquid items count as 1 mass unit
// this may have to be tuned or made object-specific?