openclonk/planet/Objects.ocd/Vegetation.ocd/Trees.ocd/Deciduous.ocd/Script.c

23 lines
500 B
C

/*-- Deciduous Tree --*/
#include Library_Plant
#include Library_Tree
local plant_seed_chance = 20;
local plant_seed_area = 400;
local plant_seed_amount = 10;
local plant_seed_offset = 30;
local lib_tree_burned = Tree_Deciduous_Burned;
public func GetTreetopPosition(pos)
{
return Shape->Rectangle(-28,-20, 46,40)->GetRandomPoint(pos);
}
local Name = "$Name$";
local Touchable = 0;
local BlastIncinerate = 2;
local ContactIncinerate = 6;
local NoBurnDecay = true;
local Components = {Wood = 5};