Manage Pacts Hardcoded?
So I have two new races I am modding as add-ons to the game and wanted to move my wip mod over to diplomacy so I could add race specific pacts I have defined.
My problem is it appears that alliance types are hard coded to existing pact types only. I can setup my race specific pacts to re-use the existing alliance types which wouldn't be too bad, but...
The "Manage Pacts" screen under the diplomacy section is hard coded to show the pact names from the original races. I was hoping it would pull the pact name based on the research file for the race but it appears to be hard coded to go to specific string names based on allianceType.
The only work around I can come up with currently is to pull in the existing RESEARCH_PACTUNLOCK_XXXX entities and give them new name and description strings for their races respective diplomacy research trees. I can then modify the existing name and description strings to be more generic for the "Manage Pacts" screen. I'm also planning on using a generic pact button graphic for the "Manage Pact" screen as a result too.
Anyone else run into this and maybe come up with a better solution?
Thanks, ZombiesRus5
Example with the Trade Pact renamed to Pact 1: