Follow-up Comment #3, patch #1148 (project wesnoth):
I have attached a new version of random village naming. The first .patch file
is obsolete.
bug fixes:
- village names (and all other labels of generated maps) do not show in game.
This is fixed at mapgen_dialog.cpp:387
- random village names rarely have influence from forests, as the algorithm
only checks for one type of forest terrain (out of 4). I changed it to check
for all types of forests, mountains and hills.
improvements:
After discussion with Ivanovic, it was decided to remove the second random
sylabus $name2.
Now the algorithm uses only one random variable (as before), but uses the
surrounding terrain much more. village names can now use nearby lake, river,
bridge, road, mountain, forest and swamp names (before: only lakes and
rivers). To achieve this, I added some code to name mountains, forests and
swamps, as they did not have any names themselves in the first place. Like
lakes, connected forest and lake tiles have the same name. Note that only a
few mountains are randomly selected to be named, most of them remain unnamed
(suggestion by YogiHH). This seemed to yield the most natural look of
mountain naming.
(file #5545)
_______________________________________________________
Additional Item Attachment:
File name: villagenaming_revised.patch Size:12 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1148>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs