forked from Mirrors/openclonk
various foodstuff: handle ControlUse properly
Otherwise other things might happen after consumption. Like, collecting rocks.shapetextures
parent
0fc114c075
commit
fb32270106
|
@ -10,6 +10,7 @@ protected func Hit()
|
||||||
protected func ControlUse(object clonk, int iX, int iY)
|
protected func ControlUse(object clonk, int iX, int iY)
|
||||||
{
|
{
|
||||||
clonk->Eat(this);
|
clonk->Eat(this);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public func NutritionalValue() { return 50; }
|
public func NutritionalValue() { return 50; }
|
||||||
|
|
|
@ -16,6 +16,7 @@ func Hit()
|
||||||
protected func ControlUse(object clonk)
|
protected func ControlUse(object clonk)
|
||||||
{
|
{
|
||||||
clonk->Eat(this);
|
clonk->Eat(this);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public func NutritionalValue() { return 25; }
|
public func NutritionalValue() { return 25; }
|
||||||
|
|
|
@ -15,6 +15,7 @@ public func Construction()
|
||||||
protected func ControlUse(object clonk, int iX, int iY)
|
protected func ControlUse(object clonk, int iX, int iY)
|
||||||
{
|
{
|
||||||
clonk->Eat(this);
|
clonk->Eat(this);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public func NutritionalValue() { return 5; }
|
public func NutritionalValue() { return 5; }
|
||||||
|
|
|
@ -179,6 +179,7 @@ func IsPlant(){return true;}
|
||||||
protected func ControlUse(object clonk, int iX, int iY)
|
protected func ControlUse(object clonk, int iX, int iY)
|
||||||
{
|
{
|
||||||
clonk->Eat(this);
|
clonk->Eat(this);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
func NutritionalValue_() { return 5; }
|
func NutritionalValue_() { return 5; }
|
||||||
|
|
|
@ -41,6 +41,7 @@ public func RootSurface()
|
||||||
protected func ControlUse(object clonk)
|
protected func ControlUse(object clonk)
|
||||||
{
|
{
|
||||||
clonk->Eat(this);
|
clonk->Eat(this);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nutritional value depends on the completion of the mushroom.
|
// Nutritional value depends on the completion of the mushroom.
|
||||||
|
|
Loading…
Reference in New Issue