add tree life cycle dynamics to game data
Bug #536511 reported by
Sigra
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Implement an immovable program command for seeding an immovable in a nearby location. The command has 2 parameters; the immovable type to seed and the probability of spreading one step further away.
The attached patch implements the game logic part. With this patch, game designers can experiment with trees that reproduce. Note that execution of immovable programs may not take place as intended because of bug #1792379. So if trees do not grow, they will not seed either. Test with a map where where tree growth actually works, such as tree-growth.wmf (attached to the mentioned bug). Note that game data must be modified to see any effect of this patch.
To post a comment you must log in.
Revision 3317 enhanced the capabilities of the game engine to handle this. Now the game data part remains.
The attached patch implements this for the trees in greenland. The implementation is still quite boring and unbalanced. All trees have very similar life cycles and trees are generally a bit too successful. This should be adjusted so that the different trees have different advantages and disadvantages. Some should seed often, some should spread their seeds far, some should live long, some should grow fast. (Those who have used the editor are familiar with the rule that trees can be on any terrain type, so do not let that surprise you. The only reason that trees were not so often seen on water in the past was that the map designers did not put them there and the forester could not go there.) tree_dynamics- 1.diff
File Added: game_data_