[GUI] Remove Roman numerals from bot names
commit2ddac36060804775c19e41cb2264fcfdfa4d8c3c
authorwowgetoffyourcellphone <wowgetoffyourcellphone@3db68df2-c116-0410-a063-a993310a9797>
Thu, 9 May 2024 18:31:33 +0000 (9 18:31 +0000)
committerwowgetoffyourcellphone <wowgetoffyourcellphone@3db68df2-c116-0410-a063-a993310a9797>
Thu, 9 May 2024 18:31:33 +0000 (9 18:31 +0000)
treec8fe4295250d9561ea7ebc4bfe4817d6e4697aba
parent3f04b4c5b242e58bcc7e770490ba7c86dcf6b3c1
[GUI] Remove Roman numerals from bot names

To avoid the appearance of two Roman numerals at the end of bot names (e.g. "Artaxshasha II II -> here "Artaxshasha II" was the name itself and the second "II" was added when the name was chosen for the second time), remove the addition of Roman numerals entirely.

Instead, if possible, a new name is chosen for each bot. If not, the suffix "(n)" is added counting the duplicates and warning is displayed. AINames are added to the Iberians, Gauls, and Mauryas bringing their totel to at least 8 each in order avoid any duplicates in regular 8-player games.

Credit to Norse_Harold for changing the condition for reusing names to not use a hardcoded assumption about the maximum number of player slots

Patch by @Vantha
Accepted by @phosit, @wowgetoffyourcellphone

Differential Revision: https://code.wildfiregames.com/D5256

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@28082 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/gamesettings/attributes/PlayerName.js
binaries/data/mods/public/gui/credits/texts/programming.json
binaries/data/mods/public/simulation/data/civs/gaul.json
binaries/data/mods/public/simulation/data/civs/iber.json
binaries/data/mods/public/simulation/data/civs/maur.json