forked from Mirrors/openclonk
wheat: made only harvestable with sickle & cast particles when harvested
According to Clonkonaut (and the Library_Crop script) it has always been intended to only be able to harvest wheat with a sickle.shapetextures
parent
4b3db94e0b
commit
f3f1eb10eb
|
@ -14,6 +14,7 @@ private func SeedArea() { return 60; }
|
|||
private func SeedChance() { return 250; }
|
||||
private func SeedAmount() { return 4; } // small seed area -> don't allow too many plants
|
||||
private func SeedOffset() { return 20; }
|
||||
public func SickleHarvesting() { return true; }
|
||||
|
||||
private func Construction()
|
||||
{
|
||||
|
@ -30,6 +31,13 @@ private func Initialize()
|
|||
_inherited(...);
|
||||
}
|
||||
|
||||
// Create some particles when harvested so it doesn't look as awkward.
|
||||
public func Harvest()
|
||||
{
|
||||
CreateParticle("Straw", PV_Random(-15, 15), PV_Random(-7, 7), PV_Random(-5, 5), PV_Random(-15, 5), PV_Random(30, 120), Particles_Straw(), 150);
|
||||
return _inherited(...);
|
||||
}
|
||||
|
||||
// Reverts the mesh material to the unripe green
|
||||
public func Unripe()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue