Forester plants trees where probability to grow is nearly zero
Bug #1574379 reported by
kaputtnik
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
On mountains and other type of terrains the probability for growing trees is nearly zero. This means that a tree planted by a forester will rarely grow until it is mature or old and could be cut by a woodcutter. A forester waste a lot of time with planting trees on terrains where probability of growing is nearly zero.
So an idea is to prevent the forester to plant trees where the probability to grow is less than X percent.
See also forum thread: https:/
This isn't needed for build19
Related branches
lp:~widelands-dev/widelands/bug-1574379-forester-wit
- Klaus Halfmann: Approve (rerview, compile debug, test)
-
Diff: 292 lines (+138/-11)8 files modifieddata/tribes/workers/atlanteans/forester/init.lua (+1/-1)
data/tribes/workers/barbarians/ranger/init.lua (+1/-1)
data/tribes/workers/empire/forester/init.lua (+1/-1)
src/logic/game.cc (+1/-0)
src/logic/game.h (+24/-8)
src/logic/map_objects/tribes/worker.cc (+97/-0)
src/logic/map_objects/tribes/worker.h (+4/-0)
src/logic/map_objects/tribes/worker_program.cc (+9/-0)
Changed in widelands: | |
importance: | Undecided → Low |
Changed in widelands: | |
milestone: | none → build20-rc1 |
Changed in widelands: | |
assignee: | nobody → Teppo Mäenpää (kxq) |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | Teppo Mäenpää (kxq) → nobody |
To post a comment you must log in.
It's probably better to add an attribute to the mountain terrains so that the worker's findspace program can filter for it.