forked from Mirrors/openclonk
Steamengine can now be accessed for contents
parent
e3d84a550a
commit
dd2f93b3e4
|
@ -13,7 +13,7 @@ VertexFriction=50,50,100,100
|
|||
Value=180
|
||||
Mass=4000
|
||||
Components=Rock=6;Metal=3
|
||||
Collection=-69,20,20,22
|
||||
Collection=-31,9,10,10
|
||||
Exclusive=1
|
||||
BlastIncinerate=130
|
||||
Construction=1
|
||||
|
|
|
@ -15,6 +15,21 @@ func Construction()
|
|||
return _inherited(...);
|
||||
}
|
||||
|
||||
public func IsContainer() { return true; }
|
||||
|
||||
protected func RejectEntrance(object obj)
|
||||
{
|
||||
if (obj->~IsFuel())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
protected func RejectCollect(id item, object obj)
|
||||
{
|
||||
// Just return RejectEntrance for this object.
|
||||
return RejectEntrance(obj);
|
||||
}
|
||||
|
||||
func ContentsCheck()
|
||||
{
|
||||
//Ejects non fuel items immediately
|
||||
|
|
Loading…
Reference in New Issue