forked from Mirrors/openclonk
Bugfix: Earth is not initialized properly.
This bug did previously not appear, because the stack count did always return a minimum of 1. May add unit test with all stackable items later.liquid_container
parent
a24ec9f0ac
commit
a95694ea23
|
@ -8,6 +8,7 @@ protected func Construction()
|
|||
var graphic = Random(5);
|
||||
if(graphic)
|
||||
SetGraphics(Format("%d",graphic));
|
||||
_inherited(...);
|
||||
}
|
||||
|
||||
protected func Hit()
|
||||
|
@ -40,6 +41,7 @@ func RejectEntrance(object into)
|
|||
|
||||
// Only X earth objects fit in one bucket.
|
||||
public func MaxStackCount() { return 5; }
|
||||
public func InitialStackCount() { return 1;}
|
||||
// Can only be collected with a bucket! The Clonk will put this into a bucket or directly remove it when digging.
|
||||
public func IsBucketMaterial() { return true; }
|
||||
// When using the bucket, you will create this material.
|
||||
|
|
Loading…
Reference in New Issue