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
Mark 2016-03-17 22:42:49 +01:00
parent a24ec9f0ac
commit a95694ea23
1 changed files with 2 additions and 0 deletions

View File

@ -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.