summaryrefslogtreecommitdiff
path: root/tree_models.lua
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2016-05-19 13:26:52 +0200
committerRogier <rogier777@gmail.com>2016-06-27 23:23:54 +0200
commit75e8027bf7ca581556f91e8c1444c865a77c482d (patch)
treefd73b231ab301f59a73f8368bfe791564fd92dd8 /tree_models.lua
parentc87a169fdd1ff0b6a08407ff2564f52c15def3cf (diff)
Make cocos palm regrow coconuts.
This feature is optional, and can be turned off. Existing cocos trees are converted.
Diffstat (limited to 'tree_models.lua')
-rw-r--r--tree_models.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/tree_models.lua b/tree_models.lua
index a2bfe25..791bddb 100644
--- a/tree_models.lua
+++ b/tree_models.lua
@@ -88,8 +88,13 @@ moretrees.birch_model2={
thin_branches=true
}
+-- Coconuts can't be generated as fruit, because there is no support for the
+-- special fruit trunks that allow coconuts to regrow at the correct position
+-- in the tree.
+-- So, a placeholder fruit trunk is spawned. An ABM will convert it to the final
+-- fruit trunk, and generate the actual coconuts.
moretrees.palm_model={
- axiom="FFcccccc&FFFFFddd[^&&&GR][^///&&&GR][^//////&&&GR][^***&&&GR]FA//A//A//A//A//A",
+ axiom="FFcccccc&FFFFFdddRA//A//A//A//A//A",
rules_a="[&fb&bbb[++f--&ffff&ff][--f++&ffff&ff]&ffff&bbbb&b]",
rules_b="f",
rules_c="/",
@@ -101,7 +106,7 @@ moretrees.palm_model={
random_level=0,
trunk_type="single",
thin_branches=true,
- fruit="moretrees:coconut",
+ fruit="moretrees:palm_fruit_trunk_gen",
fruit_chance=0
}