forked from Mirrors/openclonk
Allow repeated ejection of infinite material stack counts in bucket and barrel
parent
3330c592e3
commit
db986e3dd7
|
@ -67,7 +67,7 @@ public func ControlUse(object clonk, int iX, int iY)
|
|||
if (IsBucketFilled())
|
||||
{
|
||||
Spill(angle);
|
||||
EmptyBucket();
|
||||
if (Contents(0) && !Contents(0)->IsInfiniteStackCount()) EmptyBucket();
|
||||
PlayBucketAnimation(clonk);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -80,8 +80,8 @@ func FxIntLiquidDispersionTimer(object target, proplist fx, int timer)
|
|||
|
||||
func Disperse(int angle, int strength)
|
||||
{
|
||||
// does nothing but remove the object - overload if you want special effects
|
||||
RemoveObject();
|
||||
// does nothing but remove the object (unless it's an infinite stack) - overload if you want special effects
|
||||
if (!IsInfiniteStackCount()) RemoveObject();
|
||||
}
|
||||
|
||||
func DisperseMaterial(string material_name, int amount, int strength, int angle, int angle_variance)
|
||||
|
|
Loading…
Reference in New Issue