summaryrefslogtreecommitdiff
path: root/tree_models.lua
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2016-05-18 22:54:19 +0200
committerRogier <rogier777@gmail.com>2016-06-27 23:23:54 +0200
commitafab0692df2d99c36473568602d1cc4059aa2e65 (patch)
tree0da1e864c4dfad53e4f43dbe375cc342f51428c7 /tree_models.lua
parent9ced339ce5cbdc48a7d9417786585f6f9c968ce1 (diff)
Add date palm
Spawns in hot and dry desert, but requires water. This makes it a bit harder to find, but where found, it can be more abundant. If found in the middle of a desert, its presence indicates a water source below the surface. As an additional optional feature, dates (slowly) grow back after harvesting.
Diffstat (limited to 'tree_models.lua')
-rw-r--r--tree_models.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/tree_models.lua b/tree_models.lua
index c534089..a2bfe25 100644
--- a/tree_models.lua
+++ b/tree_models.lua
@@ -105,6 +105,31 @@ moretrees.palm_model={
fruit_chance=0
}
+-- Dates can't be generated as fruit, because there is no support for the
+-- special (male and female) fruit trunks that allow dates to regrow at the
+-- correct position in the tree.
+-- So, a generic fruit trunk is spawned. An ABM will convert it to a male
+-- or female fruit trunk, and generate the actual dates.
+moretrees.date_palm_model={
+ axiom="TTTTddddddddddccccccccccRT[TGGGGT]"..
+ "ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]"..
+ "GGccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]"..
+ "GGccccc[a]ccccc[a]ccccc[a]ccccc[a]ccccc[a]ccccc[a]",
+ rules_a="Gffb&bbb[++f--&ffff&ff][--f++&ffff&ff]&ff&ff&bb&bb&bb",
+ rules_b="f",
+ rules_c="/",
+ rules_d="F",
+ trunk="moretrees:date_palm_trunk",
+ leaves="moretrees:date_palm_leaves",
+ angle=18,
+ iterations=1,
+ random_level=0,
+ trunk_type="single",
+ thin_branches=false,
+ fruit="moretrees:date_palm_fruit_trunk",
+ fruit_chance=0
+}
+
moretrees.spruce_model1={
axiom="FFFFFAFFFFFFBFFFFFFCFFFFFFDFFFFFF[&&&F^^FF][&&&++F^^FF][&&&++++F^^FF][&&&++++++F^^FF][&&&--F^^FF][&&&----F^^FF][FFFFf]",
rules_a="[&&&FFFFFF^^FFF][&&&++FFFFFF^^FFF][&&&++++FFFFFF^^FFF][&&&++++++FFFFFF^^FFF][&&&--FFFFFF^^FFF][&&&----FFFFFF^^FFF]",