FreeCol / freecol

FreeCol: FreeCol is a turn-based strategy game based on the old game Colonization, and similar to Civilization. The objective of the game is to create an independent nation.
GNU General Public License v2.0
585 stars 170 forks source link

Added "New" town name functionality #73

Closed AdamClobes closed 3 years ago

AdamClobes commented 3 years ago

The purpose of this change is to get the best of both worlds and to create a more realistic experience when naming towns names that have already been used. I added a functionality to settlement.java that calls a recursive function to concatenate "New " onto any town name that has already been used. In the rare and unusual case that a player wants to use a town for a third time, it will continue to add "New " to the name, but this is to avoid repeated names while also allowing users to continue to use names they have before.

This was the ticket I made the fix for. https://sourceforge.net/p/freecol/improvement-requests/187/